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
This bug appears to be the result of the documentation being incorrect. This query does not support an argument.
Steps To Reproduce
NOTE: Reproducing this bug does not require a probe supporting selfcal connected to the instrument. The valid query will always return PASSED on any channel without a probe.
Using the query without an argument:
fromtm_devicesimportDeviceManagerfromtm_devices.driversimportMSO6fromtm_devices.helpersimportPYVISA_PY_BACKENDwithDeviceManager(verbose=False) asdm:
# Enable resetting the devices when connecting and closingdm.setup_cleanup_enabled=Truedm.teardown_cleanup_enabled=True# Use the PyVISA-py backenddm.visa_library=PYVISA_PY_BACKENDscope: MSO6=dm.add_scope("mso64-qu100004", alias="scope1")
print(scope.commands.ch[1].probe.selfcal.state.query())
Results in an error from tm_devices: builtins.TypeError: SCPICmdReadWithArguments.query() missing 1 required positional argument: 'argument'
Using the query with the documented argument:
fromtm_devicesimportDeviceManagerfromtm_devices.driversimportMSO6fromtm_devices.helpersimportPYVISA_PY_BACKENDimportpyvisawithDeviceManager(verbose=False) asdm:
# Enable resetting the devices when connecting and closingdm.setup_cleanup_enabled=Truedm.teardown_cleanup_enabled=True# Use the PyVISA-py backenddm.visa_library=PYVISA_PY_BACKENDscope: MSO6=dm.add_scope("mso64-qu100004", alias="scope1")
try:
print(scope.commands.ch[1].probe.selfcal.state.query("EXECUTE"))
exceptpyvisa.errors.Error:
esr=scope.ieee_cmds.esr()
allev=scope.commands.allev.query()
raiseRuntimeError(f"{esr}, {allev}")
Results in a visa timeout (query does not return)
Catching this and then checking ESR/ALLEV shows that the query does not allow a parameter: ESR: 32, ALLEV: 108,"Parameter not allowed; Too many parameters; CH1:PRObe:SELFCal:State? E"
Using the raw PI query:
fromtm_devicesimportDeviceManagerfromtm_devices.driversimportMSO6fromtm_devices.helpersimportPYVISA_PY_BACKENDimportpyvisawithDeviceManager(verbose=False) asdm:
# Enable resetting the devices when connecting and closingdm.setup_cleanup_enabled=Truedm.teardown_cleanup_enabled=True# Use the PyVISA-py backenddm.visa_library=PYVISA_PY_BACKENDscope: MSO6=dm.add_scope("mso64-qu100004", alias="scope1")
print(scope.query("CH1:PROBE:SELFCAL:STATE?"))
Results in PASSED being printed
Environment Information
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description of the bug
This bug appears to be the result of the documentation being incorrect. This query does not support an argument.
Steps To Reproduce
NOTE: Reproducing this bug does not require a probe supporting selfcal connected to the instrument. The valid query will always return
PASSED
on any channel without a probe.Results in an error from
tm_devices
:builtins.TypeError: SCPICmdReadWithArguments.query() missing 1 required positional argument: 'argument'
Results in a visa timeout (query does not return)
Catching this and then checking ESR/ALLEV shows that the query does not allow a parameter:
ESR: 32, ALLEV: 108,"Parameter not allowed; Too many parameters; CH1:PRObe:SELFCal:State? E"
Results in
PASSED
being printedEnvironment Information
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: