其他分享
首页 > 其他分享> > OSError: Could not open VISA library:

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)

标签:OSError,usb,Could,address,VISA,import,rm,open,visa
来源: https://blog.csdn.net/kai73/article/details/121547315