R&S SMB SCPI Command Structure and Syntax
1407.0806.32 5.13 E-2
Structure of a Command Line
A command line may consist of one or several commands. It is terminated by an EOI together with the
last data byte.
Several commands in a command line must be separated by a semicolon ";". If the next command
belongs to a different command system, the semicolon is followed by a colon. A colon ":" at the
beginning of a command marks the root node of the command tree.
Example:
"SOURce:POWer:CENTer MINimum;:OUTPut:STATe ON"
This command line contains two commands. The first command is part of the SOURce
system and is used to specify the center frequency of the output signal of RF output.
The second command is part of the OUTPut system and sets the attenuation of the
output signal of RF output.
If the successive commands belong to the same system, having one or several levels in common, the
command line can be abbreviated. To this end, the second command after the semicolon starts with the
level that lies below the common levels. The colon following the semicolon must be omitted in this case.
Example:
"SOURce:FM
:MODE NORMal;:SOURce:FM:INTernal:FREQuency 1kHz"
This command line is represented in its full length and contains two commands
separated from each other by the semicolon. Both commands are part of the SOURce
command system, subsystem FM, i.e. they have two common levels.
When abbreviating the command line, the second command begins with the level below
SOURce:FM. The colon after the semicolon is omitted.
The abbreviated form of the command line reads as follows:
"SOURce:FM
:MODE NORMal;INTernal:FREQuency 1kHz"
However, a new command line always begins with the complete path.
Example:
"SOURce:FM:MODE NORMal"
"SOURce:FM:INTernal:FREQuency 1kHz"