使用GPIB-USB控制器连接Agilent 33250a仪器时遇到问题。有没有人有任何想法让我如何让PyVISA认可安捷伦?
为了在终端中运行PyVISA,我使用以下内容:
export VERSIONER_PYTHON_PREFER_32_BIT=yes
python-magic.sh
python
import visa
测试:( Agilent 33250a未连接)
>>> visa.get_instruments_list()
['ASRL1', 'ASRL2']
现在尝试使用GPIB-USB控制器连接Agilent。 已安装http://www.ftdichip.com/Drivers/VCP.htm(62位)。
终端的另一项测试:
输入:sudo system_profiler SPUSBDataType
输出:
H82357 ():
Product ID: 0x0718
Vendor ID: 0x0957 (Agilent Technologies, Inc.)
Version: 0.00
Serial Number: 8235730073
Speed: Up to 480 Mb/sec
Manufacturer: AGILENT Technologies, Inc.
Location ID: 0x1d110000 / 7
Current Available (mA): 500
Current Required (mA): 500
但是,当我连接Agilent 33250a visa.get_instruments_list()时未检测到它。 AKA我仍然得到:
>>> visa.get_instruments_list()
['ASRL1', 'ASRL2']
这是因为我无法在Mac上安装适用于Agilent的IOSuite吗? Agilent IO Suite仅作为.exe文件存在。有什么想法吗?
>>> agilent = visa.instrument("GPIB::1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/PyVISA-1.4-py2.7.egg/pyvisa/visa.py", line 288, in instrument
vpp43.parse_resource(resource_manager.session, resource_name)
File "/Library/Python/2.7/site-packages/PyVISA-1.4-py2.7.egg/pyvisa/vpp43.py", line 777, in parse_resource
byref(interface_board_number))
File "/Library/Python/2.7/site-packages/PyVISA-1.4-py2.7.egg/pyvisa/vpp43.py", line 398, in check_status
raise visa_exceptions.VisaIOError, status
pyvisa.visa_exceptions.VisaIOError: VI_ERROR_INTF_NUM_NCONFIG: The interface type is valid but the specified interface number is not configured.
>>>