1

我无法使用 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 控制器连接安捷伦。安装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() 没有检测到它。又名我仍然得到:

>>> visa.get_instruments_list()
['ASRL1', 'ASRL2']

这是因为我无法在 Mac 上安装 IOSuite for Agilent 吗?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.
>>> 
4

0 回答 0