Example Code

Archived: Simulating a GPIB Instrument in LabVIEW

Code and Documents


Download All


This document has been archived and is no longer updated by National Instruments.

This example shows how to use a GPIB board as a non-controller to simulate a GPIB instrument in LabVIEW. In "non-controller.vi", the GPIB interface is configured to be the non-controller and is assigned a primary address. The VI then waits in a loop to receive a message from the controller (using "controller.vi") and sends a response back.

"non-controller.vi" must be run first to begin waiting for "controller.vi" to send messages.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.