Menu

#16 visa command error

open
nobody
None
5
2013-04-03
2013-03-13
thomas
No

Hi everyone,

I use a simple command to detect all instrument connected:

import visa as vi
print vi.get_instruments_list()

On this computer, I have an error:

print vi.get_instruments_list()
File "C:\Python25\Lib\site-packages\pyvisa\visa.py", line 254, in get_instrume
nts_list
vpp43.find_resources(resource_manager.session, "?*::INSTR")
File "C:\Python25\Lib\site-packages\pyvisa\vpp43.py", line 583, in find_resour
ces
instrument_description)
File "C:\Python25\Lib\site-packages\pyvisa\vpp43.py", line 398, in check_statu
s
raise visa_exceptions.VisaIOError, status
pyvisa.visa_exceptions.VisaIOError: VI_ERROR_INV_SETUP: Unable to start operatio
n because setup is invalid (usually due to attributes being set to an inconsiste
nt state).

I use python 25 with pyvisa 1.3. This configuration function on 4/5 PC. I have already test to reinstall python and pyvisa.

Discussion

  • thomas

    thomas - 2013-03-13
    • priority: 5 --> 9
     
  • Florian Bauer

    Florian Bauer - 2013-04-03
    • priority: 9 --> 5
     
  • Florian Bauer

    Florian Bauer - 2013-04-03

    Hi Thomas,

    from the error message you posted it looks like this is either a VISA problem or a problem with one of the instruments you connected, not a PyVISA issue as such. You mentioned that the configuration works on 4 other PCs. Are they connected to the same instruments?

    Can you try to list all instruments in NI MAX? My guess is that this will fail as well, but it might help you pinpoint the problem.

    Cheers,
    Florian

     

Log in to post a comment.