Chapter 3
Local Command Set
3-2
ni.com
Command Set Access
You can execute the local commands from the following ports:
•
RS-232
•
GPIB
•
VXI Word Serial Communication
All ports are active when the GPIB-VXI/C is in the Normal Operation substate and operate
independently of one another. The GPIB-VXI/C returns query responses only to the port
originating the query. The GPIB-VXI/C also maintains a separate status state for each port.
You can use local commands to disable and re-enable each port’s access to the local command
set. The RS-232 port prompts you to enter a local command with the
GPIB-VXI>
prompt.
Command Syntax
The local command set parser is syntactically compatible with the IEEE-488.2 standard.
It will accept numeric parameters in the 488.2 binary, octal, decimal, or hexadecimal formats.
488.2 binary parameters are prefixed with
#b
. Octal parameters are prefixed with
#q
, and
hexadecimal parameters are prefixed with
#h
. Table 3-1 lists the most common numeric
parameter types. The ranges given in Table 3-1 apply unless otherwise specified.
The logical value of a
<Boolean>
parameter is FALSE for the numeric value 0 and TRUE
for the numeric value 1.
Table 3-1.
Valid Ranges for Common Numeric Command Parameters
Parameter
488.2 Decimal
488.2 Hexadecimal
<logical address>
0 to 254
#h0 to #hFE
<GPIB address>
0 to 30
#h0 to #h1E
<handler>
1 to 3
#h1 to #h3
<level>
0 to 7
#h0 to #h7
<A16 address>
0 to 65,535
#h0 to #hFFFF
<A24 address>
2,097,152 to 14,680,062
#h200000 to #hE7FFFE
<word value>
0 to 65,535
#h0 to #hFFFF
<byte value>
0 to 255
#h0 to #hFF
<Boolean>
0 or 1
#h0 or #h1