I am trying to communicate with a Newport ESP301 controller via USB, using the NI-VISA or PyVISA library.
Here is some information about my machine:
python -m visa info
Machine Details: Platform ID: Linux-3.16.0-53-generic-x86_64-with-debian-jessie-sid Processor: x86_64 Python: Implementation: CPython Executable: /usr/local/bin/python Version: 2.7.10 Compiler: GCC 4.8.4 Bits: 64bit Build: Nov 24 2015 14:35:43 (#default) Unicode: UCS2 PyVISA Version: 1.8 Backends: ni: Version: 1.8 (bundled with PyVISA) #1: /usr/local/vxipnp/linux/lib64/libvisa.so: found by: auto bitness: 64 Vendor: National Instruments Impl. Version: 15728640 Spec. Version: 5243904 py: Version: 0.2 ASRL INSTR: Please install PySerial to use this resource type. No module named serial TCPIP INSTR: Available USB RAW: Available via PyUSB (1.0.0b2). Backend: libusb1 USB INSTR: Available via PyUSB (1.0.0b2). Backend: libusb1 GPIB INSTR: Please install linux-gpib to use this resource type. No module named gpib TCPIP SOCKET: Available
lsusb:
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 008: ID 104d:3001 Newport Corporation Bus 003 Device 007: ID 04b3:310c IBM Corp. Wheel Mouse Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 005: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1) Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Attempting to use the PyVisa library:
>>> import visa>>> rm = visa.ResourceManager('@py')>>> rm.list_resources() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/pyvisa/highlevel.py", line 1560, in list_resources return self.visalib.list_resources(self.session, query) File "/usr/local/lib/python2.7/site-packages/pyvisa-py/highlevel.py", line 238, in list_resources raise errors.VisaIOError(errors.StatusCode.error_resource_not_found.value) pyvisa.errors.VisaIOError: VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system.>>> exit()
Attempting to use the NI-VISA library:
>>> import visa>>> rm = visa.ResourceManager() /usr/local/lib/python2.7/site-packages/pyvisa/ctwrapper/functions.py:1225: VisaIOWarning: VI_WARN_CONFIG_NLOADED (1073676407): The specified configuration either does not exist or could not be loaded. VISA-specified defaults will be used. ret = library.viOpenDefaultRM(byref(session))>>> rm.list_resources() (u'ASRL5::INSTR',)>>> exit()
Why am I unable to see the USB instrument in the resource list? Any help is appreciated. Thank you in advance.