You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scope.write("MEASurement:DELete:ALL")
scope.write("MEASUREMENT:DELETEALL")
scope.commands.measurement.deleteall.write()
scope.commands.measurement.delete.write(num_measurements)
all the upper commends can't work effectively on MSO5
Steps To Reproduce
1.connect to the ocs using IP
2.set meausrement on the MSO5
3.run the upper commend to delete the measurement, none of them works.
fromtm_devicesimportDeviceManagerfromtm_devices.driversimportMSO5fromtm_devices.helpersimportPYVISA_PY_BACKENDimporttimewithDeviceManager(verbose=True) asdevice_manager:
# Enable resetting the devices when connecting and closingdevice_manager.setup_cleanup_enabled=Truedevice_manager.teardown_cleanup_enabled=True# Use the PyVISA-py backenddevice_manager.visa_library=PYVISA_PY_BACKEND# Creating Scope driver object by providing ip address.scope: MSO5=device_manager.add_scope("192.168.1.100",alias="scope1")
print(scope) # print scope relagated informationprint("add measurement manually and then press Enter to continue...")
input()
time.sleep(2)
list_measurements=scope.commands.measurement.list.query()
print(list_measurements)
num_measurements=len(scope.commands.measurement.list.query().split(","))
print(num_measurements)
try:
#scope.write("MEASurement:DELete:ALL") # CANNOT DELETE ALL MEASUREMENTS#scope.write("MEASUREMENT:DELETEALL") # CANNOT DELETE ALL MEASUREMENTS#scope.commands.measurement.deleteall.write() # CANNOT DELETE ALL MEASUREMENTS#scope.commands.measurement.delete.write(num_measurements)# CANNOT DELETE ALL MEASUREMENTSexceptExceptionase:
print(f"Error executing command: {e}")
print("Executing deleteall command...")
time.sleep(200)
Environment Information
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
@HippeLv, can you edit the description to include the code as text instead of an image? That way it can be copy-pasted to verify and try to solve the issue.
Description of the bug
scope.write("MEASurement:DELete:ALL")
scope.write("MEASUREMENT:DELETEALL")
scope.commands.measurement.deleteall.write()
scope.commands.measurement.delete.write(num_measurements)
all the upper commends can't work effectively on MSO5
Steps To Reproduce
1.connect to the ocs using IP
2.set meausrement on the MSO5
3.run the upper commend to delete the measurement, none of them works.
Environment Information
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: