Figure 2-2: Example Of Abbreviating A Command; Figure 2-3: Example Of Chaining Commands And Queries - Sony 3026 Programmer's Manual

Realtime spectrum analyzer
Table of Contents

Advertisement

Syntax
Abbreviating Commands,
Queries, and Parameters
Chaining Commands and
Queries
2 4
You can abbreviate most SCPI commands, queries, and parameters to an
accepted short form. This manual shows these short forms as a combination of
upper and lower case letters. The upper case letters indicate the accepted short
form of a command. As shown in Figure 2-2, you can create a short form by
using only the upper case letters. The accepted short form and the long form are
equivalent and request the same action of the instrument.
Long form of a
SENSe:AVERage:COUNt 100
command
Accepted short form
of a command and
parameter
Figure 2 2: Example of abbreviating a command
You can chain several commands or queries together into a single message. To
create a chained message, first create a command or query, add a semicolon (;),
and then add more commands or queries and semicolons until you are done. If
the command following a semicolon is a root node, precede it with a colon (:).
Figure 2-3 illustrates a chained message consisting of several commands and
queries. The single chained message should end in a command or query, not a
semicolon. Responses to any queries in your message are separated by semico-
lons.
:DISP:MARK:TYPE DUAL;:SENS:WIND RECT;:SENS:AVER:COUN?;:CALC:ACP:SPAC?
First command
The response from this chained
message might be
Response from first query
Figure 2 3: Example of chaining commands and queries
Minimum information needed
for accepted short form
SENS:AVER:COUN 100
Second command
First query
100;2.000000E+5
Second query
Response from second query
3026 Programmer Manual

Advertisement

Table of Contents
loading

Table of Contents