
A-15
A1
A
SYST:COMM:SER:BAUD 9600; BAUD? <nl>
SYST:COMM:SER:BAUD 9600; :SYST:COMM:SER:
BITS 8 <nl>
SYST:COMM:SER:BAUD 9600; BAUD?; *ESR?; BIT 6;
BIT?; PACE XON; PACE?; *ESR? <nl>
Figure A-5 Compound Command Examples
A typical response would be:
9600; 0; 8; XON; 32 <nl>
The response includes five items because the command contains 5
queries. The first item is
9600
which is the baud rate, the second item
is
ESR=0
which means no errors (so far). The third item is
8
(bit/
word) which is the current setting. The BIT 6 command was not
accepted because only 7 or 8 are valid for this command. The fourth
item
XON
means that XON is active. The last item is
32
(ESR register
bit 5) which means execution error - caused by the BIT 6 command.
A1.3.3 Variables and Channel Lists
SCPI variables are separated by a space from the last keyword in the
SCPI command. The variables can be numeric values, boolean values
or ASCII strings. Numeric values are typically decimal numbers
unless otherwise stated. When setting or querying register values, the
decimal variable represents the sum of the binary bit weights for the
bits with a logic '1' value. e.g. a decimal value of 23 represents 16 +
4 + 2 + 1 or 0001 0111 in binary. Boolean values can be either 0 or
1 or else OFF or ON. ASCII strings can be any legal ASCII character
between 0 and 255 decimal except for 10 which is the Linefeed
character.