9-12 Programmer’s Guide
Introduction to SCPI
Parameter Types
Boolean Parameters
Boolean parameters are used for program settings that can be
represented by a single binary condition. Commands that use this type of
parameter accept the values ON (or 1) and OFF (or 0).
<ON|OFF> is used in this document to denote a boolean parameter.
An example of a command that uses a boolean parameter is the
command that makes the analyzer continuously trigger (or stop
triggering) measurements.
OUTPUT 716;"INITIATE:CONTINUOUS ON"
A special group of commands uses boolean parameters to control
automatic functions of the instrument, such as automatically selecting
the fastest possible sweep speed. With these automatic functions an
additional value is available for the parameter. This value ONCE causes
the function to execute once before turning off.
Query Response
The response when a boolean parameter is queried is a single NR1
number indicating the state 1 for on or 0 for off. An example is the
response to a query on the sweep trigger status after executing the above
command.
OUTPUT 716;"INITIATE:CONTINUOUS?"
returns the value 1.