#author:lailai
import pyvisa as visa
import time
usb_address = 'USB0::6833::2500::DM3L203900455::0::INSTR'
rm = visa.ResourceManager()
usb_inst = rm.open_resource(usb_address)
报错:OSError: Could not open VISA library:
插入visa库的具体位置即可:
rm = visa.ResourceManager('C:/Windows/System32/visa32.dll')
#author:lailai
import pyvisa as visa
import time
usb_address = 'USB0::6833::2500::DM3L203900455::0::INSTR'
rm = visa.ResourceManager('C:/Windows/System32/visa32.dll')
usb_inst = rm.open_resource(usb_address)