Closed memanj closed 6 years ago
Were you able to solve this? I seem to be having the same issue.
Some quick questions:
python -m visa info
? And the model of the instrument you are trying to communicate with ?` $ python -m visa info Machine Details: Platform ID: Linux-4.4.0-128-generic-x86_64-with-debian-stretch-sid Processor: x86_64
Python: Implementation: CPython Executable: /hepuser/srdejong/miniconda3/bin/python Version: 3.6.3 Compiler: GCC 7.2.0 Bits: 64bit Build: Nov 20 2017 20:41:42 (#default) Unicode: UCS4
PyVISA Version: 1.9.0
Backends: ni: Version: 1.9.0 (bundled with PyVISA) Binary library: Not found py: Version: 0.2 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 am trying to connect to a keithley 2220-30-1 DC power supply. I haven't communicated using the ni backend, since I'm on ubuntu and haven't found a way to install the ni visa.
I have not explicitly set the termination character.
I think I have found my problem. I have to set the device to remote control using
inst.write("SYSTEM:REMOTE")
having added that line, I can now send commands
Great you solved your issue !
Hi I am trying to automate setting voltage and querying ccurrent from Keithley 2220-31 DC power supply. I am getting success (24,\ <StatusCode.success: 0>) for all the commands I am trying to write. But nothing is changing on the power supply display. Any comments on this is much appreciated
python -m visa info Machine Details: Platform ID: Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty Processor: x86_64
Python: Implementation: CPython Executable: /usr/bin/python Version: 2.7.6 Compiler: GCC 4.8.2 Bits: 64bit Build: Mar 22 2014 22:59:56 (#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:
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.0). Backend: libusb1 USB INSTR: Available via PyUSB (1.0.0). Backend: libusb1 GPIB INSTR: Please install linux-gpib to use this resource type. No module named gpib TCPIP SOCKET: Available