Summary: In this exercise, our objective is to use MAX to examine the GPIB interface settings, detect instruments, and communicate with an instrument.
![]() |
Tools>>Measurement & Automation
Explorer in LabVIEW.
Devices and Interfaces section to
display the installed interfaces. If a GPIB interface is
listed, the NI-488.2 software is correctly loaded on the
computer.
Properties button on the toolbar to display the
Properties dialog box.
OK button.
Devices and Interfaces section and click the
Scan for Instruments button on the toolbar.
Instrument0 appears.
Instrument0 to display information about it
in the right pane of MAX. The NI Instrument Simulator has a
GPIB primary address (PAD) of 2.
Communicate with Instrument button on
the toolbar. An interactive window appears. You can use it to
query, write to, and read from that instrument.
*IDN? in Send String and click
the Query button. The instrument returns its make
and model number in String Received. You can use
this window to debug instrument
problems or to verify that specific commands work as described
in the instrument documentation.
![]() |
MEAS:DC? in Send String and
click the Query button. The NI Instrument
Simulator returns a simulated voltage measurement.
Query button again to return a
different value.
Exit button.
Instrument0 is selected in MAX, click
the VISA Properties button to display the
Properties dialog box.
devsim in the VISA Alias
field and click the OK button. You will use
this alias throughout this lesson.
File>>Exit to exit MAX.
"A full introductory course on programming with LabVIEW."