57
SCPI Command Reference
11. SCPI Command Reference
&
&
&
This chapter includes the following content:
Terminator
Command Syntax
Query Syntax
Query Response
Command Reference
This chapter provides descriptions of instrument’s available SCPI commands sets, listed in
functional subsystem order.
No matter using what kind of connecting method
(
RS232/USB232/LAN/WLAN
)
, SCPI
command is used.
11.1
Terminator
Host can send a string of command to instrument, instrument terminator will begin parsing after
it captures end mark
(
\n
)
or after input buffer overflows.
For example:
Legal command string:
AAA:BBB CCC,DDD,EEE
Instrument terminator is responsible for parsing and performing all commands, before
programming, users must know about parsing rules.
11.1.1
Terminator Rules
1
.
Terminator only parses and responds ASCII code’s data.
2
.
Command string must be ended with NL (‘ \n’ ASCII 0x0A) mark, terminator will begin
performing command string only after it receives end mark or after
buffer overflows.
3
.
If command handshake is turned on, every time terminator receives one string, it will promptly
return this string to the host, only when host receives this returned string, can it continues sending
the next string.
4
.
After terminator parses error, it will promptly stop parsing, and the current command is canceled.
5
.
When terminator parses the query command, it will terminate parsing this command string, the
latter command string will be ignored.
6
.
When parsing command string, terminator is case insensitive.
7
.
Terminator supports command abbreviated form, please refer to the latter chapter regarding
abbreviation norms.
11.1.2
Notation Conventions and Definitions
This chapter employs some marks, these marks are not a part of command tree; they are only for
better understanding of command string.
< >
the character in <> means this command’s parameter
[ ]
the character in [] means optional command
{}
When there includes several parameter items in {}, means that users can only choose one item from it.
( )
the abbreviated form of parameter is put in ()
Capital letter
Abbreviated form of command.