Open saarangp opened 5 years ago
This looks awfully similar to https://github.com/pyvisa/pyvisa/issues/387.
Sadly I do not really know what is happening here. Could you post the output of pyvisa-info
and the model of the instrument you are trying to connect to ?
I get the exact same error on Ubuntu 18.04, python 3.6 when trying to communicate with an Agilent 33521A with the 5.02 Keysight firmware. It was working before when it had the v1.14 firmware, though even then if I had a malformed command I'd have to reset the instrument to recover comms.
Here's my visa info output:
Machine Details: Platform ID: Linux-4.15.0-88-generic-x86_64-with-Ubuntu-18.04-bionic Processor: x86_64
Python: Implementation: CPython Executable: /usr/bin/python3 Version: 3.6.9 Compiler: GCC 8.3.0 Bits: 64bit Build: Nov 7 2019 10:44:02 (#default) Unicode: UCS4
PyVISA Version: 1.10.1
Backends: ni: Version: 1.10.1 (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.3.1 ASRL INSTR: Available via PySerial (3.4) USB INSTR: Available via PyUSB (1.0.2). Backend: libusb1 USB RAW: Available via PyUSB (1.0.2). Backend: libusb1 TCPIP INSTR: Available TCPIP SOCKET: Available GPIB INSTR: Please install linux-gpib to use this resource type. No module named 'Gpib'
I get the following error when I run this code
VISA_ADDRESS = 'USB0::10893::5990::MY55440772::0::INSTR' rm = visa.ResourceManager() scope = rm.open_resource(VISA_ADDRESS) print("Connected to " + scope.query("*IDN?"))