使用 PyVISA 时出错
Error using PyVISA
import visa
rs = visa.ResourceManager()
我收到这个错误
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda3\lib\site-packages\pyvisa\highlevel.py", line 1486, in new
obj.session, err = visa_library.open_default_resource_manager()
File "C:\Anaconda3\lib\site-packages\pyvisa\ctwrapper\functions.py", line 1212, in open_default_resource_manager
ret = library.viOpenDefaultRM(byref(session))
File "C:\Anaconda3\lib\site-packages\pyvisa\ctwrapper\highlevel.py", line 180, in _return_handler
raise errors.VisaIOError(ret_value)
pyvisa.errors.VisaIOError: VI_ERROR_LIBRARY_NFOUND (-1073807202): A code library required by VISA could not be located or loaded.
here 发布了一个类似的问题,根据那里的建议,我在命令提示符下尝试了以下操作:
python -c "from pyvisa import util; util.get_debug_info()"
& 我收到了这个回复,
从上图可以看出,两种情况下的错误信息是一样的,我也查看了NI MAX的Visa版本:Visa 4.3
我是不是遗漏了什么,有人可以帮忙吗?
import visa
rs = visa.ResourceManager()
我收到这个错误
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda3\lib\site-packages\pyvisa\highlevel.py", line 1486, in new
obj.session, err = visa_library.open_default_resource_manager()
File "C:\Anaconda3\lib\site-packages\pyvisa\ctwrapper\functions.py", line 1212, in open_default_resource_manager
ret = library.viOpenDefaultRM(byref(session))
File "C:\Anaconda3\lib\site-packages\pyvisa\ctwrapper\highlevel.py", line 180, in _return_handler
raise errors.VisaIOError(ret_value)
pyvisa.errors.VisaIOError: VI_ERROR_LIBRARY_NFOUND (-1073807202): A code library required by VISA could not be located or loaded.
here 发布了一个类似的问题,根据那里的建议,我在命令提示符下尝试了以下操作:
python -c "from pyvisa import util; util.get_debug_info()"
& 我收到了这个回复,
从上图可以看出,两种情况下的错误信息是一样的,我也查看了NI MAX的Visa版本:Visa 4.3
我是不是遗漏了什么,有人可以帮忙吗?