01-29-2025 12:33 AM
I am trying to establish GPIB communication between two PCs using LabVIEW. Here is my setup:
I want to send data from PC1 to PC2 using GPIB Write.vi and GPIB Read.vi in LabVIEW. However, I am facing issues in successfully sending and receiving data.
Checking GPIB Addresses:
LabVIEW Code:
Troubleshooting:
Any suggestions or sample code for achieving this communication would be greatly appreciated.
Thank you!
01-29-2025 04:04 AM - edited 01-29-2025 04:06 AM
While what you try to do is possible, it's a pretty obscure application of GPIB. It used to be a somewhat documented feature in the 90ies of last century (I worked in application engineering at NI at that time and we got occasionally such requests), but it required the use of low level command line tools like ibic or the according low level GPIB APIs.
Here are a few links that give you an idea what you will have to do but they are not exactly trivial to apply to modern LabVIEW.
This shows the principle operation required to do GPIB Controller to GPIB Device communication based on ibic command line tool. The ibic commands need to be translated to the according LabVIEW GPIB nodes. ibrd = GPIB Read, ibwrt = GPIB Write and the rest would be GPIB Misc
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2Y3CAI
This shows the use of the GPIB nodes in LabVIEW to do your own bus address protocol. VISA does all of that for you under the hood, but if you use the GPIB API you need to do your own handshake handling by calling the according GPIB Command:
https://forums.ni.com/t5/Example-Code/GPIB-Example-for-LabVIEW/ta-p/3526176