National Instruments NI-488.2 Switch User Manual


 
Chapter 6 Interactive Control Utility
NI-488.2 User Manual for Windows 6-2 www.natinst.com
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
help
followed by
the command. For example, type
help ibdev
or
help set
.
4. Open either an interface handle or device handle to use for further
NI-488.2 calls. Use
ibdev
to open a device handle,
ibfind
to open
an interface handle, or the
set 488.2
command to switch to a
488.2 prompt.
The following example uses
ibdev
to open a device, assigns it to
access interface
gpib0
, chooses a primary address of 6 with no
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:
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
1
and no secondary address.
Figure 6-1. Instrument Address in Measurement & Automation Explorer