
Command Syntax
You can create commands and queries from these subsystem hierarchy trees.
Commands specify actions for the instrument to perform. Queries return
measurement data and information about parameter settings.
Creating Commands SCPI commands are created by stringing together the nodes of a subsystem
hierarchy and separating each node by a colon.
In the above figure, TRIGger is the root node and SEQuence, IMMediate, POINt,
SINGle, SCOPe and SOURce are all lower-level nodes. To create a SCPI
command, start with the root node TRIGger and move down the tree structure
adding nodes until you reach the end of a branch. Most commands and some
queries have parameters and each parameter must include a value. If you specify a
parameter value that is out of range, the parameter will be set to a default value.
Command descriptions list the values that are valid for all parameters.
For example, TRIGger:SEQuence:SCOPe ALL is a valid SCPI command created
from the hierarchy tree, using ALL as an argument.
Creating Queries To create a query, start at the root node of a tree structure and then move
downtotheendofabranch,ndaddaquestionmark. Forexample,
TRIGger:SEQuence:SCOPe? is a valid SCPI query, using the hierarchy tree
in the figure.
Query Responses The query causes the analyzer to return information about its status or settings.
When a query is sent to the analyzer, only the values are returned. For example,
SENSe1:AVERage:COUNt? may return 400 as the averaging factor value for
channel 1.
A few queries also initiate an operation action before returning information. For
example, the *CAL? query runs a calibration.
Parameter Types Every parameter in the command and query descriptions is of a specified type.
Parameters are enclosed in brackets, such as <value>. The parameter type is listed
after the parameter and is enclosed in parentheses, for example, (boolean). Some
parameter types are defined specifically for the VNA Series command set and
some are defined by ANSI/IEEE 488.2-1987 as shown on the following table:
Parameter type Description Example
arbitrary block
1
Specified length of
arbitrary data
#512234xxxxx . . .
where 5 indicates that the
following 5 digits (12234)
specify length of data in
bytes; xxxxx ... indicates
data
boolean Boolean numbers or values ON or 1; OFF or 0
binary Binary numbers #B0110
2-2 AWG-HD Programmer Manual