pyvisa / pyvisa-py

A pure python PyVISA backend
https://pyvisa-py.readthedocs.io
MIT License
288 stars 124 forks source link

pyvisa-py does not list the instruments while ni backend does. #202

Open Dog-menG opened 5 years ago

Dog-menG commented 5 years ago

I tried the code below with NI backend:

import visa rm = visa.ResourceManager() print (rm.list_resources())

The output shows the connecting instrument: ('ASRL3::INSTR',)

while I changed NI backend to py backend, the output is empty. pyvisa-py installed. import visa rm = visa.ResourceManager('@py') print (rm.list_resources())

The output is empty: ()

Please suggest. Thanks

MatthieuDartiailh commented 5 years ago

Pyvisa-py relies on pyserial for listing the resources. And I am not sure why it does not detect your resource. Could you please post the output of pyvisa-info and give some details about the instrument you are trying to connect and the kind of serial adapter you are using if you are using any. Also in some cases listing the resource may fail but the resource can be accessed nonetheless, could you try opening the resource with the known address ?