1

I have a hardware setup where several instruments are connected to the control computer. The pyvisa default back-end, a C implementation provided by National Instruments, found all the instruments, while the pyvisa-py pure-Python implementation did not find any.

I'm using the latest versions of pyvisa and pyvisa-py. I used the following code to search for instruments, using both back-ends.

import visa
rm_py = visa.ResourceManager('@py')
rm_ni = visa.ResourceManager()
rm_py.list_resources()
rm_ni.list_resources()

With rm_py.list_resources(), I got (), meaning no device detected.

With rm_ni.list_resources() on the other hand, I got:

'('TCPIP0::169.254.172.70::INSTR',
'TCPIP0::192.168.3.10::inst0::INSTR',
'ASRL3::INSTR',
'GPIB0::28::INSTR',
'TCPIP0::AWG70K-38293801::inst0::INSTR')'

0 Answers0