beautypg.com

Scpi command format, Scpi keyword separator, Scpi optional keywords – Quantum Composers 9250 Series User Manual

Page 34

background image

9250 Manual Version 1.2 | Quantum Composers

34

SCPI Command Format

SCPI commands control and set instrument specific functions such as setting the pulse
width, delay, and period. SCPI commands have a hierarchical structure composed of
functional elements that include a header or keywords separated with a colon, data
parameters, and terminators. For example:

SCPI Format

:PULSE1:STATE ON

:PULSe1:WIDTh 0.000120

:PULSe:POL NORMal


Any parameter may be queried by sending the command with a question mark appended.
For example:

SCPI Query Format

:PULSE1:STATE?

Will return

1

:PULSE1:WIDTH?

Will return

0.000120000

:PULSE1:POL?

Will return

NORM

SCPI Keyword Separator

A colon (:) must always separate one keyword from the next lower -level keyword. A space
must be used to separate the keyword header from the first parameter.

SCPI Optional Keywords

Optional keywords and/or parameters appear in square brackets ( [ ] ) in the command
syntax. Note that the brackets are not part of the command and should not be sent to the
pulse generator. When sending a second level key word without the optional keyword, the
pulse generator assumes that you intend to use the optional keyword and responds as if it
had been sent.

SCPI Specific and Implied Channel

Some commands, such as PULSe, allow specifying a channel with an optional nu meric keyword
suffix. The suffix will be shown in square brackets [ 1 / 2 ]. The brackets are not part of
command and are not to be sent to the pulse generator. The numeric parameters correspond to
the following channels: 0 = T

0

, 1 = ChA,

2 = ChB, etc. Only one channel may be specified at a

time.

If you do not specify the channel number, the implied channel is specified by the

:INSTrument:SELect command or the last referenced channel.

After power-up or reset (*RST) the instrument will default to channel #1.