
Appendix C: SCPI Command Syntax
Notation
Notation
Description
:
Links command keywords together
;
Separates multiple commands entered together on a single program
message
single space
Uses to separate a parameter from a command or unit from a parameter
,
Uses to separate multiples parameters of a command
[]
Uses to optionally enclose zero or more parameters
{.} or {.}*
The enclosed item maybe included zero or more times
{.}+
The enclosed items occurs one or more times
{.|.|.}
One and only one of the two or more enclosed items separated by | maybe
included
<>
Uses to enclose
required
parameter descriptions
?
Indicates query command, use where applicable
|
Indicates “or” and is used to separate alternative parameter options
::=
Means “is defined as”
Parameter types
This section defines different SCPI parameter data type.
Parameter Type
Description
<boolean>
ON | OFF | 1 | 0
Boolean parameters are always returned as 1 or 0 in NR1 format by query
commands
<integer>
<int>
Unsigned integer of NR1 format
Ex: 1 or 3432
<NR1>
Signed integer without a decimal point (implied radix point)
Ex: -25 or 0
<NR2>
Signed number with an explicit radix point
Ex: -1.234 or 1.0 or 0.0
<NR3>
Scaled explicit decimal point numeric value with and an exponent
Ex: 2.73e+2 or 2.351e2
<NRf>
<NR1>|<NR2>|<NR3>
<NRr>
Non-decimal numeric value such as hexadecimal, octal or binary
<char>
<character>
Character program data
Ex: MAXimum or MEDium
<string>
ASCII string surrounded by single or double quotes
Ex: “This is an example”
ThinkRF WSA5000 Wireless Signal Analyzer Programmer's Guide
86