Example Advancing Scan Using TRIGger Command
This example uses the TRIGger command to advance the scan of a
single-module switchbox from channel 00 through 03. Since
TRIGger:SOURce HOLD is set, the scan is advanced one channel each time
TRIGger is executed.
TRIG:SOUR HOLD Sets trigger source to HOLD
SCAN (@100:103) Defines channel list
INIT Begin scan, close channel 00
loop statements Start count loop
TRIG Advance scan to next channel
increment loop Increment loop count
:SOURce TRIGger:SOURce BUS | EXTernal | HOLD | IMMediate specifies the
trigger source to advance the channel list during scanning.
Parameters
Parameter Name Parameter Type Parameter Description
BUS discrete *TRG or GET command
EXTernal discrete "Event In" BNC port
HOLD discrete Hold Triggering
IMMediate discrete Immediate Triggering
Comments
• Enabling the Trigger Source: The TRIGger:SOURce command
only selects the trigger source. The INITiate[:IMMediate] command
enables the trigger source.
• Using the TRIG Command: You can use TRIGger[:IMMediate] to
advance the scan when TRIGger:SOURce BUS or
TRIGger:SOURce HOLD is selected.
• Using External Trigger Inputs: With TRIGger:SOURce EXTernal
selected, only one switchbox at a time can use the external trigger
input at the Agilent E1300B/E1301B mainframe "Event In" BNC
port. The trigger input is assigned to the first switchbox that
requested the external trigger source (with a TRIGger:SOURce
EXTernal command).
• Assigning External Trigger: A switchbox assigned with
TRIGger:SOURce EXTernal remains assigned to that source until
the switchbox trigger source is changed to BUS, HOLD, or
IMMediate. When the source is changed, the external trigger source
is available to the next switchbox which requests it (with a
TRIGger:SOURce EXTernal command). If a switchbox requests an
external trigger input already assigned to another switchbox an error
is generated.
Chapter 5 Agilent E1364A Form C Switch Command Reference 59