Chapter 3
Local Command Set
©
National Instruments Corporation
3-3
The first parameter is delimited from the command name by a space (
). Additional
parameters are delimited from one another by a comma (
,
). The command names are not case
sensitive.
In the command descriptions, parameters are enclosed in angle brackets (
<>
), and optional
parameters are also enclosed in square brackets (
[]
). Do not enter the brackets as part of the
command.
Multiple commands may be concatenated in a single command line if they are separated with
semicolons (for example,
OBRAM?; DPRAM?
<CR>).
Command Line Termination
The serial port command line termination is a carriage return, shown in the subsequent
function descriptions as <CR> (ASCII 0Dh). If the command contains a trailing linefeed,
shown in the subsequent function descriptions as <LF> (ASCII 0Ah), it is ignored. The GPIB
termination is EOI. Commands issued to the GPIB-VXI/C via VXI Word Serial Protocol are
terminated by setting the END bit in the last
Byte Available
command. Responses are
terminated by setting the END bit in response to the last
Byte Request
query.
Command and Query Responses
The local commands and queries have two response formats:
program
mode and
console
mode. Program mode responses have a terse data-only format that is intended for a control
program to read and parse. Console responses are returned in the form of readable sentences,
which are better suited for interactive command entry.
You can enable or disable each mode independently, except that one response mode must be
enabled at all times. If both modes are simultaneously enabled, the program response is
returned first, followed by the console response. The local commands used to control the
response modes are
ProgMode
and
ConsMode
.
The response mode configuration is independent for each command source. Table 3-2 lists the
default (startup/reset) response mode configurations.
Table 3-2.
Default Response Mode Configurations
Port
Response Mode
RS-232
Console mode enabled, program mode disabled
GPIB
Program mode enabled, console mode disabled
VXI Word Serial
Program mode enabled, console mode disabled
Individual Code Instruments
Program mode enabled, console mode disabled