How to Talk to a Specific GPIB Device When PC is Connected With Multiple GPIB Controllers?

Updated Dec 17, 2019

Reported In




  • LabVIEW


  • NI-488.2

Issue Details

I am trying to talk to a GPIB device while there are several other GPIB controllers and devices connected to my PC. But, instead of using VISA Write Function, I need to use GPIB Write Function. So, when I try to set GPIB controller 2 to talk to a device on address 3, it keeps addressing a device on address 3 from GPIB controller 0.

How can I prevent it from communicating only with the device from GPIB controller 0? 


When you are using GPIB Write Function, you have to input the address of the GPIB device which the function communicates with into the address string. But, if you have multiple GPIB controllers connected to your PC, you have to use a prefix to address string to determine which specific controller you want to communicate with. 

For example, to set GPIB controller 2 to talk to a device on address 3, use the prefix 2:3. If a controller ID is not present, the function defaults to controller (or bus) number 0. 

See the Related Links section below for further information.