National Instruments NI-488.2 Switch User Manual


 
Chapter 6 Interactive Control Utility
NI-488.2 User Manual for Windows 6-4 www.natinst.com
The
ibonl
command properly closes the device handle and the
ud0
prompt is no longer available.
9. To exit Interactive Control, type
q
.
Interactive Control Syntax
The following special rules apply to making calls from the Interactive
Control utility:
The
ud
or
BoardId
parameter is implied by the Interactive Control
prompt, therefore it is never included in the call.
The
count
parameter to functions is unnecessary because buffer
lengths are automatically determined by Interactive Control.
Function return values are handled automatically by Interactive
Control. In addition to printing out the return
ibsta
value for the
function, it also prints other return values.
If you do not know what parameters are appropriate to pass to a given
function call, type in the function name and press <Enter>. The
Interactive Control utility then prompts you for each required
parameter.
Number Syntax
You can enter numbers in either hexadecimal or decimal format.
Hexadecimal numbersYou must prefix hexadecimal numbers with
0x
.
For example,
ibpad 0x16
sets the primary address to 16 hexadecimal
(22 decimal).
Decimal numbersEnter the number only. For example,
ibpad 22
sets
the primary address to 22 decimal.
String Syntax
You can enter strings as an ASCII character sequence, hex bytes, or special
symbols.
ASCII character sequence—You must enclose the entire sequence in
quotation marks.
Hex byte—You must use a backslash character and an
x
, followed by the
hex value. For example, hex 40 is represented by
\x40
.