10-30-2018 04:17 PM
Hello community!
I am currently using a gpib-usb-hs to communicate with my Agilent 6611C via python but when I run the code I get the following error:
"pyvisa.errors.VisaIOError: VI_ERROR_INV_SETUP (-1073807302): Unable to start operation because setup is invalid (usually due to attributes being set to an inconsistent state)."
Code used:
10-30-2018 09:12 PM
Can you communicate with the device via NI-MAX?
Is the GPIB address really 0? ( 0 is allowed just uncommon.)
Does this instrument need a secondary address? GPIB0::0::2::INSTR? Some PSU are chainable and have secondary address you need to use to address them.
Should you have a termination character with that "*IDN?" like "*IDN?\r".
I haven'r used PyVISA in a long time, and you are likely to get better answers on its use elsewhere.
11-05-2018 11:39 AM - edited 11-05-2018 11:41 AM
Typically your GPIB0::0 is the controller and it will not respond to a command to itself. Do you know the address of your controller? Can you Poll for instruments on the GPIB0 bus? It may give you the answers or at least a direction to follow.
Additionally, older pieces of equipment or firmware will not respond to the "*IDN?\n", but will to the previous "ID?\n".