Fix: I forgot to put @py within visa.ResourceManager('@py').
So since a month I am using linux as my main OS on my work/programming notebook. With Windows I got pyvisa working very easily but I have some problems using Ubuntu 16.04. I connect a GPIB device and a USB device and both are not showing when using rm.list_resources(). I only get '()' returned when using that command. Linux-GPIB should work fine because using ibtest I can control the GPIB device and using USBTMC I can control the usb device. I installed pyvisa, pyvisa-py and PyUSB (also tried github master) using pip but no luck yet.
sudo python -m visa info gives:
Machine Details:
Platform ID: Linux-4.4.0-78-generic-x86_64-with-elementary-0.4.1-loki
Processor: x86_64
Python:
Implementation: CPython
Executable: /usr/bin/python
Version: 2.7.12
Compiler: GCC 5.4.0 20160609
Bits: 64bit
Build: Nov 19 2016 06:48:10 (#default)
Unicode: UCS4
PyVISA Version: 1.8
Backends:
ni:
Version: 1.8 (bundled with PyVISA)
#1: /usr/lib/x86_64-linux-gnu/libvisa.so.0.0.0:
found by: auto
bitness: 64
Could not get more info:
VI_ERROR_NSUP_ATTR (-1073807331): The specified attribute is not defined or supported by the referenced object.
py:
Version: 0.2
ASRL INSTR: Available via PySerial (3.0.1)
TCPIP INSTR: Available
USB RAW: Available via PyUSB (1.0.0). Backend: libusb1
USB INSTR: Available via PyUSB (1.0.0). Backend: libusb1
GPIB INSTR: Available
TCPIP SOCKET: Available
Could someone help me maybe help me getting this thing to work. I would really appreciate it.
Fix: I forgot to put
@py
withinvisa.ResourceManager('@py')
.So since a month I am using linux as my main OS on my work/programming notebook. With Windows I got pyvisa working very easily but I have some problems using Ubuntu 16.04. I connect a GPIB device and a USB device and both are not showing when using
rm.list_resources().
I only get '()' returned when using that command. Linux-GPIB should work fine because usingibtest
I can control the GPIB device and using USBTMC I can control the usb device. I installed pyvisa, pyvisa-py and PyUSB (also tried github master) using pip but no luck yet.sudo python -m visa info
gives:Could someone help me maybe help me getting this thing to work. I would really appreciate it.
Best, Michail