5 Programming Tips
This section gives recommendations for programming in certain specific
situations.
5.1 Program Sweep Initiation and Waiting
The program sweep initiation and waiting for its completion the most simple
method can be implemented by using commands TRIG:SING and *OPC?.
The command TRIG:SING gerates a trigger signal and starts sweeping under the
following conditions:
The program trigger source is selected by command TRIG:SOUR
BUS;
The analyzer should be in the trigger waiting state, otherwise (the
analyzer is sweeping or analyzer is in the Hold state) an error occurs
and the command is ignored.
The transition of the analyzer to the trigger waiting state depends on the state of
the continuous initiation mode, which is set by command INIT:CONT. Provided that
the continuous initiation mode is ON, the analyzer automatically transits to the
trigger waiting state when the program trigger source have been selected, and
then each time at the end of a sweep. Provided that the continuous initiation mode
is OFF, the analyzer transits to the trigger waiting state for single time upon
receiving the command INIT.
The command TRIG:SING remains pending until the end of sweep. This allows use
the *OPC? query for the waiting the end of sweep.
Example 1. Start sweeping in all channels and waits for its completion. The
channels sweep one by one in turn. The continuous initiation mode is enabled by
default.
After the sweep completion the analyser returns to the trigger waiting state, and
then the next sweep initiation command can be sended.