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
With zhinst-qcodes however, daq.subscribe takes a ZIParameter, which I cannot seem to get:
session=ZISession("localhost")
device=session.connect_device("devXXXX")
daq=session.modules.daqdaq.subscribe(device.demods[0].sample.x)
# AttributeError: 'ZIParameter' object has no attribute 'x'daq.subscribe(device.demods[0].sample.tk_node.x)
# Tries to subscribe to /devXXXX/demods/0/sample.x.tk_node, which ends up not workingdaq._tk_object.subscribe(device.demods[0].sample.tk_node.x)
# This works
What is the preferred way of subscribing to those nodes? What is with .avg and the like?
What is the reason, that the daq module does not have execute() and read() functions? Is there a more elegant way than calling daq._tk_object.execute() and daq._tk_object.read()?
Thank you and best regards
The text was updated successfully, but these errors were encountered:
Currently our QCoDeS driver does not have a adapted version like the zhinst-toolkit does. Meaning it just is just a ZIBaseModule that works for all LabOne modules. That is why your observations are correct both in terms of subscribing and of the execute and read function.
But technically nothing speaks against implementing it. One challenge would be to integrate the signal selection (.x.avg...) but the ZIParameter class could handle that. The only reason the QCoDeS driver does not support this at the moment is because no one asked for it 😇 and the driver is still in its developing stage.
For now you have two options falling back to toolkit like you describe or use the underlying ziPython module directly:
Using the daq module on a MFLI, I have several questions regarding the workflow:
With zhinst-qcodes however,
daq.subscribe
takes a ZIParameter, which I cannot seem to get:What is the preferred way of subscribing to those nodes? What is with .avg and the like?
execute()
andread()
functions? Is there a more elegant way than callingdaq._tk_object.execute()
anddaq._tk_object.read()
?Thank you and best regards
The text was updated successfully, but these errors were encountered: