Chapter 5
ibic—Interface Bus Interactive Control Utility
© National Instruments Corp.
5-11
NI-488.2M SRM for OS/2
Common NI-488.2 Routines in ibic
Use the auxiliary function
set
to select the NI-488.2 function mode. The
syntax for this form of the
set
command is as follows:
set 488.2 [n]
where
n
represents an optional board number (for example,
n
= 1 for
gpib1
).
The default value of n is 0 (
gpib0
).
After issuing this form of the
set
command,
ibic
uses the
488.2
prompt to
indicate that you are in NI-488.2 mode on board
n
.
set 488.2 1
488.2 (1):
After issuing the
set
488.2
command, you can use any of the NI-488.2
routines.
Send
The
Send
routine sends data to a single GPIB device. You can use the
SendList
command to send data to multiple GPIB devices. For example,
suppose you want to send the five-character string
*IDN?
followed by the new
line character with EOI. You want to send the message from the computer to
the devices at primary address 2 and 17. To do this, enter the
SendList
command at the
488.2
(0):
prompt.