Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB and Raspberry PI

I am looking for information on how to control a multi-meter using GPIB connected to a Raspberry PI via a GPIB to USB adapter and controlled by code written in Python? I have a project that can use this capability. Does NI support Linux based PI with GPIB?

0 Kudos
Message 1 of 3
(6,966 Views)

Hello! 

 

I have found the article attached below on interfacing with PI Linux over GPIB, is this what you are looking for? If not, would you mind clarifying a little bit, and I would be more than happy to look into that for you! 

 

https://xdevs.com/guide/ni_gpib_rpi/

 

 

Have a great day!

JFP

0 Kudos
Message 2 of 3
(6,929 Views)

Yes. You can start a tcpip2instr server on any linux-gpib supported device. I am using a gpib4pi shield with a Raspberry Pi Zero as a wireless LAN/GPIB gateway. You can connect to your GPIB instruments through the gateway with resource names like this one ("TCPIP::192.168.14.20::gpib,2::INSTR") from LabView or python scripts using pyvisa:

 

import vxi11
instr = vxi11.vxi11.Instrument("TCPIP::192.168.14.20::gpib,2::INSTR")
instr.write("*IDN?")
print(instr.read())
Agilent Technologies,E3647A,0,1.7-5.0-1.0

 Search for gpib4pi or start from this article on hackster.io

0 Kudos
Message 3 of 3
(1,960 Views)