Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VI_ERROR_RSRC_NFOUND on GPIB with visa64.dll and 64-bit Python-3.8

There was no problem with visa32.dll and 32-bit Python(3.5-32).

However after the host is start using 64-bit applications, visa64.dll and Python3.8.

 

Here is a python scripts:

 

import pyvisa as visa

rm = visa.ResourceManager('C:\\WINDOWS\\System32\\visa64.dll')

 

r = rm.list_resources()

 

r

('USB0::0x05E6::0x2602::4444666::INSTR',

'USB0::0x05E6::0x2220::9204496::INSTR',

'ASRL1::INSTR',

'GPIB0::30::INSTR',

'TCPIP0::127.0.0.1::hislip5-0.0::INSTR',

'USB0::0x05E6::0x2220::9204275::0::INSTR',

'USB0::0x05E6::0x2220::9204567::0::INSTR',

'USB0::0x0957::0x1807::MY50001918::0::INSTR')

 

# no problem for USB

dev = rm.open_resource('USB0::0x05E6::0x2220::9204496::INSTR')

dev = rm.open_resource('USB0::0x05E6::0x2602::4444666::INSTR')

 

# open GPIB failed

dev = rm.open_resource('GPIB0::30::INSTR')

 

in handle_return_value

    raise errors.VisaIOError(rv)

pyvisa.errors.VisaIOError: VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system.

0 Kudos
Message 1 of 1
(1,471 Views)