
RTSA7500 Functional Overview
Appendix C: SCPI Command Syntax
Each SCPI command consists of a root node, one or more lower level nodes, follow by
applicable parameters and separators:
Entering Commands
SCPI commands have both a long and short version, such as :SOURCE and :SOUR.
The SCPI interface responds to either version, but will not respond to variations of either
version. The interface does not differentiate between upper-case and lower-case letters
but only the long or short form of a command.
An example correct and incorrect SCPI entry format for :SOURce command:
Command Entry
Correct Entry
:SOURCE
:SOURce
:source
:SOUR
:sour
Incorrect Entry
:SOU
:SOURC
:sourc
Note:
At the end of each SCPI command string, whether a single command or multiple
commands separated by semicolons “;”,
a new line-feed or carriage return is required.
Example in C: “:FREQ:CENTER 2400 MHZ\n” or “FREQ:CENT 2400 MHZ;INP:ANT 1\n”.
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