From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Archived: Simulating a GPIB Instrument in LabVIEW

Code and Documents

Attachment

Download All

Overview


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.

Contributors