pyvisa instrument initialization error #4251
-
I'm trying to use a Yokogawa GS200 via the visapy-py backend with QCoDeS following the example in the docs, but I'm getting the following error for some reason:
Here what I have done step-by-step to get to this point:First, I imported the necessary packages:
Then, I tested to make sure that the GS200 was detected over USB:
Which gave the following output:
And then, when I tried initializing it with the driver through QCoDeS:
Here is the full output of the error:
Additionally, I verified the output of the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you look at the output of In this particular case we are using a visa feature to reset the buffer of the instrument on connection to prevent you connecting to an instrument that already has messages in its output buffer since that would create a situation where the output from the instrument does not match the input that you read. It seems like the python visa backend does not support this. You can disable that by passing e.g. on my windows computer with the NI libraries installed I see something like this |
Beta Was this translation helpful? Give feedback.
If you look at the output of
visa info
(btw you should runpyvisa-info
and you will not get the deprecation warning) you can see that you don't have any binary libraries for the IVI backend (NI, Keysight etc) you however have the python backend. We generally do not recommend or support the python backend https://qcodes.github.io/Qcodes/start/index.html#other-dependencies. Any of the IVI backends should work mostly equally but we have seen some issues with the NI backend that seems to go away with the Keysight one so that is what we recommend at the moment.In this particular case we are using a visa feature to reset the buffer of the instrument on connection to prevent you connecting to a…