A-9
A1
SYSTem:COMMunicate:SERial:BAUD 9600 <nl>
'Sets the baud rate
SYST:COMM:SER:BAUD? <nl>
'Queries the current
baud
setting
SYST:COMM:SER:BITS 8 <nl>
'Sets character format
to
8
data
bits
Figure A-2 SCPI Command Examples
Multiple SCPI commands may be concatenated together as a compound com-
mand using semi colons as command separators. The first command is always
referenced to the root node. Subsequent commands are referenced to the same
tree level as the previous command. Starting the subsequent command with
a colon puts it back at the root node. IEEE 488.2 common commands and
queries can be freely mixed with SCPI messages in the same program mes-
sage without affecting the above rules. Figure A-3 shows some compound
command examples.
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-3 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.
Содержание 9099
Страница 20: ...1 16 1 Figure 1 1 9009 Outline Dimensions ...
Страница 24: ...1 20 1 Figure 1 3 9099 Certificate of Compliance ...
Страница 54: ...3 8 3 Figure 3 1 Status Reporting Structure Flash Configuration Reset ...
Страница 94: ...3 48 3 This page left intentionally blank ...
Страница 100: ...4 4 6 This page is left intentionally blank ...
Страница 161: ...A 49 A4 Refer to the ErrorLogger utility for the error value definitions Error Meaning 0 No error ...