Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent 82357A USB to GPIB (non visible by VISA)

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:

----------------------------------------------------

>>> import visa
>>> rm = visa.ResourceManager()
>>> rm.list_resources()
()
----------------------------------------------------
0 Kudos
Message 1 of 6
(6,241 Views)
I'm unsure of why you are posting here. You aren't using any NI hardware or software. Check with Keysight about their GPIB driver and your version of Linux.
0 Kudos
Message 2 of 6
(6,225 Views)

SOVED

0 Kudos
Message 3 of 6
(6,140 Views)

Hi

 

I have same problem. Could you share it with me?

0 Kudos
Message 4 of 6
(3,602 Views)

You'll need to talk to Keysight (formerly Agilent) to see if they have linux drivers for the USB-GPIB adaptor.

0 Kudos
Message 5 of 6
(3,588 Views)

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
0 Kudos
Message 6 of 6
(3,572 Views)