1
.
Introduction to the SCPI Language
1
1. Introduction to the SCPI Language
1.1. Command Syntax
The command systems present a hierarchy structure (tree system) and each command
consists of a “Root” keyword and one or multiple sub-keywords. The keywords are
separated by ":" and are followed by the parameter settings available, "?" is added at the
end of the command string to indicate query and the command and parameter are
separated by "space".
1.2. Symbol Description
Following symbols are usually used to assist to explain the parameters contained in a
command.
a) Braces { }
The options enclosed in a { } are parameters available in the command. Only one
option could be selected every time, and all the options are separated by “|”. For
example, {ON|OFF} indicateds that ON or OFF can be selected.
b) Triangle Brackets < >
The parameter enclosed in < > must be replaced by an effective value.
1.3. Programmed Parameter Type
The commands contain 8 kinds of parameters, different parameters have different setting
methods.
(1) arbitrary block
A specified length of arbitrary data, for example,
#6377512xxxxx . . . where
6 indicates that the following 6 digits (377512) specify the length of the data in bytes;
xxxxx ... indicates the data or #0xxxxx...<LF><&EOI>
(2) boolean
Boolean numbers or values, for example,
ON or ≠ 0
OFF or 0
(3) discrete
A list of specific values, for example,
MIN, MAX
(4) NR1 numeric