05-16-2019 06:16 PM
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?
05-17-2019 01:34 PM
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
10-03-2023 01:51 PM
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