Chapter 2 63
Programming Fundamentals
SCPI Language Basics
NOTE The command TRIGG:level:EXT1 is not valid because trigg is neither
the short, nor the long form of the command. Only the short and long
forms of the keywords are allowed in valid commands.
Special Characters in Commands
Special
Character
Meaning Example
| A vertical stroke between
parameters indicates
alternative choices. The
effect of the command is
different depending on
which parameter is
selected.
Command:
TRIG:SOURCE EXT|INT|LINE
The choices are ext, int, and
line.
TRIG:SOURCE INT
is one possible command
choice.
A vertical stroke between
keywords indicates
identical effects exist for
both keywords. The
command functions the
same for either keyword.
Only one of these keywords
is used at a time.
Command:
SENSe:BANDwidth|BWIDth:
OFFSet
Two identical commands are:
SENSE:BWIDTH:OFFSET
SENSE:BAND:OFFSET
[ ] keywords in square
brackets are optional
when composing the
command. These implied
keywords will be executed
even if they are omitted.
Command:
[SENSe:]BANDwidth[:RESolu
tion]:AUTO
The following commands are
all valid and have identical
effects: bandwidth:auto
bandwidth:resolution:auto
sense:bandwidth:auto
< > Angle brackets around a
word, or words, indicates
they are not to be used
literally in the command.
They represent the needed
item.
Command:
SENS:FREQ <freq>
In this command example the
word <freq> should be
replaced by an actual
frequency, 9.7MHz.
{ } Parameters in braces can
optionally be used in the
command either not at all,
once, or several times.
Command:
measure:bw {level}
A valid command might be
measure:bw 3dB 60dB