Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Example for LabVIEW

Overview
    This is a very simple GPIB example functions very similar to the ones that are shipped with LabVIEW, but a little more robust.

 

Description

    Demonstrates GPIB Read and GPIB Write commands to a device from a VI. This will require the GPIB address to be initialized and connected to your machine. It allows the user to configure if they want to write, read or write then read from the GPIB bus. As opposed to the shipped LabVIEW example, this will make use of lower level IEEE calls to create a more robust environment. It also uses both the My Talk Address (MTA) and My Listen Address (MLA) of the Controller and Device IEEE addresses.

 

Requirements
    Software
        LabVIEW 2012 (or compatible)
        NI-VISA
    Hardware
        GPIB connected Hardware

 

Instructions

1.Enter GPIB Controller Address and Device IEEE Address
2.Select whether you are reading, writing or both.
3.If needed, update the bytes to Read
4.Set the data string to send.

5.Run the VI.

 


Additional Information or References

FP.jpg

BD.jpg

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Scott G.
AE Specialist
National Instruments