OSError: Could not open VISA library:

#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)

上一篇:Could not match supplied host pattern, ignoring: 192.168.0.101


下一篇:VScode 黄色波浪线,Import “[module]“ could not be resolvedPylance