3
Features and Functions
188
Keysight 34980A Mainframe User’s Guide
terminate the sequence. The
*RST
and
SYSTem:PRESet
commands will also
abort a sequence execution prior to performing their own actions.
– When a sequence is defined, the specified commands are checked for proper
syntax and absolute parameter range limits. If an error is detected during
compilation, the entire sequence will be discarded. More extensive error
checking, such as channel range expansion and validation, is performed when
the sequence is executed.
– A sequence may invoke another sequence, but may not invoke itself
recursively. In addition, the number of invocations is limited to
four
levels of
nesting and this is enforced at the time of execution. Exceeding the limit will
abort the sequence and an error will be generated.
– You can also execute a sequence when an alarm condition is reached. See
“Executing a Sequence on an Alarm Condition”
on page 188 for more
information.
– While a scan is running (see
on page 148), the instrument prevents
use of all channels in banks that contain one or more channels in the specified
scan list (these channels are dedicated to the scan). Therefore, if a sequence
attempts to operate a channel in a scanned bank, an error is generated and
the entire sequence will be discarded.
Front Panel Operation:
Sequence > EXECUTE
Although sequences can be defined from the remote interface only, you can
execute pre-defined sequences from the front panel.
Remote Interface Operation:
The following command executes a sequence
named “MYSEQ_1”, which closes several channels on the module in slot 1 and
opens a single channel on the module in slot 2.
ROUT:SEQ:DEF MYSEQ_1,"ROUT:CLOS (@1001:1009);OPEN (@2001)"
ROUT:SEQ:TRIG MYSEQ_1
Executing a Sequence on an Alarm Condition
After you have defined a valid sequence, you can configure the instrument to
execute a sequence when a reading crosses an alarm limit on a channel. The
specified sequence will execute
once
when an alarm occurs on the specified
alarm. If the specified sequence name is not currently stored in memory, an error
will be generated.