SCPI Command
10. SCPI Command
10.1 Data Format
Frequently used symbols are given as below table.
Angle
brackets
< >
The item in angle brackets is parameter format abbreviation.
Ex.: INPut[:STATe] <Boolean> indicates that the command can
accept the parameter with Boolean format.
Straight line separates the parameters which can be replaced.
[ ]
The item in square brackets is a selection one.
Ex.: INPut[:STATe] <Boolean> indicates that STATe can be omitted.
Curly
brackets
{ }
Curly bracket indicates that the parameter can be repeated.
<A> {<, B>} is noted at the right
column which indicates parameter “A”
to be inputted, whereas parameter “B” can be omitted or input for once
or several times.
The parameter format abbreviation can be accepted by the command are given as below
table.
Format
Description Example
Character
parameter
The character parameter is with long/short two kinds of
format. The written method is the first half with uppercase
character and the second half with lowercase character.
The lowercase omitted is short format. For example, long
format of MINimum parameter is MINIMUM and short
MAXIMUM, MAX
NR1
The value is without a decimal point. The decimal point is
at the right side of the last significant figure.
123, 0123
The value includes decimal point.
The value includes decimal point and exponent.
NRf Flexible decimal format, NR1, NR2 and NR3 are included.
NRf+
Expanded decimal format, NRf , MINimum and MAXimum
are included. MINimum and MAXimum are minimum and
maximum limit of the parameter.
1.23E+3, MIN,
Boolean
Boolean variable. It can accept character format of ON,
OFF and digital format of 1 (ON), 0 (OFF).
ON, 1, OFF, 0
All commands and response messages are transmitted in ASCII code format. Before sending
the new command, the response message needs to be read totally. Otherwise, the remaining
response message will be disappeared and a query interrupted error will be generated.
Every program message needs to add termination character at last, it represents to end
program message. The termination character is ASCII new line character (line feed), ASCII
code byte is 0Ah (line feed). The device response message will use 0Ah as the end of
response message.