raspberry pi gpib vxi11 server - Page 1
Forum section: electronics / testgear

author: dxl
author_rank: Regular Contributor
timestamp: January 16, 2024, 07:39:44 pm
content: Hi,just hacked up a silly prototype to export a gpib bus via VXI-11 on a raspbery pi. I always wanted to have something like a E5810A or GPIB ENET/1000. This allows running your test equipment in the basement, while controlling them from your cozy livingroom.my setup is:[GPIB-Bus] <-----> [GPIB-USB-HS] <----->  <---- (Ethernet/VXI-11) ----> Windows/Linux PCinstead of the GPIB-USB-HS every card supported by linux-gpib should work. The keysight software accepts this as a VXI-11 interface, as the screenshot shows.The code is here:https://github.com/svenschnelle/python-vxi11-server/commits/gpib_gateway

author: eb3frn
author_rank: Contributor
timestamp: January 06, 2025, 07:41:20 am
content: Hellowwoow, it is great! can you privide a bit more of info about how run the server? ThanksThanks for this nice contribution.73! Ibaneb3frn

author: eb3frn
author_rank: Contributor
timestamp: January 10, 2025, 05:15:43 pm
content: Hifinally after install some dependeces the server starts and can communicate from the Keysight connextion exptert, but after rescan I dont see devices connected to the gpib, only this message after a rescan. The connection looks OK as you can see in the screenshoot attached$ python gpib_server.pyPress Ctrl+C to exitINFO:__main__:starting vxiserverINFO:vxi11_server.instrument_server:abortServer started...INFO:rpc:registering (395183, 1, 6, 43583) on ('0.0.0.0', 43583)INFO:vxi11_server.instrument_server:coreServer started...INFO:rpc:starting new request handler for client ('192.168.1.139', 42310), request <socket.socket fd=5, family=2, type=1, proto=0, laddr=('192.168.1.122', 43583), raddr=('192.168.1.139', 42310)>INFO:rpc:starting new request handler for client ('192.168.1.139', 54824), request <socket.socket fd=6, family=2, type=1, proto=0, laddr=('192.168.1.122', 35917), raddr=('192.168.1.139', 54824)>The visa is working and the host have a instrument connected:pyvisa-shellWelcome to the VISA shell. Type help or ? to list commands.(visa) ?Documented commands (type help <topic>):========================================EOF attr close exit help list open query read termchar timeout write(visa) list0) GPIB0::18::INSTR(visa) open 0GPIB0::18::INSTR has been opened.You can talk to the device using "write", "read" or "query".The default end of message is added to each message.(open) query *IDN?Response: Hewlett-Packard, E4404B, MY5014xxxx, A.14.06Can you give-me some indication?Thanks a lot73! Ibaneb3frn

author: coromonadalix
author_rank: Super Contributor
timestamp: January 11, 2025, 05:07:51 am
content: how many are connected ?,one did answer to the IDN command ? Hewlett-Packard, E4404B, MY5014xxxx, A.14.06

author: eb3frn
author_rank: Contributor
timestamp: January 11, 2025, 07:50:57 am
content: Only one device on the bus. The current setup is:E4407B <> GPIB AGILENT USB <> RASPBERRY PI <> ETHERNET SWITCH <> WINDOWS 10 PCThanks73! Ibaneb3frn

author: eb3frn
author_rank: Contributor
timestamp: January 11, 2025, 10:08:43 am
content: OK, after restart the Windows PC works!The problem looks that in this the Keysight Connection Expert, the rescan button dont make a discovery of new devices, only check the status of the registered devices. The rescan it works for example when the device is registered but disconncted or power off, then if you power on the the device and performs a rescan, then it will be in green as active again.Then the discovery of new devices only happens when the Connection Expert starts for first time when computer start.