Figure 2-3. ni-488.2 communicator, Advanced communication, Advanced communication -7 – National Instruments NI-488.2 User Manual

Page 21

Advertising
background image

Chapter 2

Measurement & Automation Explorer (Windows)

© National Instruments Corporation

2-7

NI-488.2 User Manual

The NI-488.2 Communicator dialog box appears, as shown
in Figure 2-3.

Figure 2-3. NI-488.2 Communicator

6.

Type a command in the Send String field and do one of the following:

To write a command to the instrument then read a response back,
click the Query button.

To write a command to the instrument, click the Write button.

To read a response from the instrument, click the Read button.

To view sample C/C++ code that performs a simple query of a GPIB
instrument, click the Show Sample button.

Advanced Communication

For advanced interactive communication with GPIB instruments, use the
Interactive Control utility, as follows:

1.

Start Measurement & Automation Explorer as described in the

Starting Measurement & Automation Explorer

section.

2.

Expand the Devices and Interfaces directory by clicking the + next
to the folder.

3.

Right-click on your GPIB interface and select Interactive Control
from the drop-down menu that appears. Interactive Control
automatically opens a session to the selected GPIB interface.

4.

At the command prompt, type NI-488.2 API calls to communicate
interactively with the your instrument. For example, you might use

ibdev

,

ibclr

,

ibwrt

,

ibrd

, and

ibonl

.

Advertising