10-01-2015 05:05 AM
Hi,
I am currently runing kubuntu, linux version 3.19.0-30-generic. KDE plasma version 5.2.2. And i am tryin to use Python to communicate with a 'Maturo Control Unit' (or MCU version 1.30). In orde to do so i am using Pyvisa (version 1.5) and a Agilent 82357A USB to GPIB. When i am using the terminal i can send and reseive commands from the MCU. But when i use Pyvisa's resource maneger the Agilent 82357A USB to GPIB with the MCU connected does not appear. Pyvisa does work. Because ive used it in the past to connect with a spectrum analyzer using TCP:IP.
How can i make Pyvisa show the Agilent 82357A USB to GPIB connected to the MCU?
python 3.4.3:
----------------------------------------------------
10-01-2015 08:13 AM
10-09-2015 02:02 AM
SOVED
10-31-2019 11:23 PM
Hi
I have same problem. Could you share it with me?
11-01-2019 10:27 AM
You'll need to talk to Keysight (formerly Agilent) to see if they have linux drivers for the USB-GPIB adaptor.
11-01-2019 11:09 AM - edited 11-01-2019 11:11 AM
Sorry it has been a long time since i worked on that internship. I believe use import GPIB in order to get it working. I hope this helps.
import
gpib
#--------------------------------------------------------------------------------------------------------------------------
class
GPIB(
object
😞
def
read(instrument):
device
=
gpib.dev(
0
,instrument)
#Maakt verbinding met de maturo control unit ()
responce
=
gpib.read(device,
8
)
#print(responce)
return
responce
def
write(data,instrument):
device
=
gpib.dev(
0
,instrument)
#Maakt verbinding met de maturo print(device)
command
=
data
gpib.write(device,command)
def
GPIB():
pass