Figure 6-1. Instrument Address In Measurement & Automation Explorer - National Instruments NI-488.2 User Manual

National instruments user manual ni-488.2
Hide thumbs Also See for NI-488.2:
Table of Contents

Advertisement

Chapter 6
Interactive Control Utility
Note
If you type a command and no parameters, Interactive Control prompts you for the
necessary arguments. If you already know the required arguments, you can type them at
the command prompt, as follows:
:ibdev 0 6 0 13 1 0
ud0:
Note
If you do not know the primary and secondary address of your GPIB instrument,
right-click on your GPIB interface in Measurement & Automation Explorer and select
Scan for Instruments. After Explorer scans your interface, it displays your instrument
address in the right window pane. The instrument shown in Figure 6-1 has a primary
address of
NI-488.2 User Manual for Windows
3.
Right-click on your GPIB interface and select Interactive Control
from the drop-down menu that appears.
For help on any Interactive Control command, type
the command. For example, type
4.
Open either an interface handle or device handle to use for further
NI-488.2 calls. Use
an interface handle, or the
488.2 prompt.
The following example uses
access interface
secondary address, sets a timeout of 10 seconds, enables the END
message, and disables the EOS mode:
:ibdev
enter board index: 0
enter primary address: 6
enter secondary address: 0
enter timeout: 13
enter 'EOI on last byte' flag: 1
enter end-of-string mode/byte: 0
ud0:
and no secondary address.
1
Figure 6-1. Instrument Address in Measurement & Automation Explorer
help ibdev
to open a device handle,
ibdev
set 488.2
to open a device, assigns it to
ibdev
, chooses a primary address of 6 with no
gpib0
6-2
followed by
help
or
help set
ibfind
command to switch to a
www.natinst.com
.
to open

Advertisement

Table of Contents
loading

Table of Contents