User manual

Relay Multiplexer Command Reference 91Chapter 3
TRIGger
The TRIGger command subsystem controls the triggering operation of
multiplexer modules in a switchbox.
Subsystem Syntax TRIGger
[:IMMediate]
:SLOPe <slope>
:SLOPe?
:SOURce <source>
:SOURce?
TRIGger[:IMMediate]
TRIGger[:IMMediate] causes a trigger event to occur when the defined
trigger source is TRIGger:SOURce BUS or TRIGger:SOURce HOLD.
Comments Executing the TRIGger[:IMMediate] Command: First, the measurement
modes must be selected using the [ROUTe:]FUNCtion and
[ROUTe:]SCAN:MODE commands. Then [ROUTe:]SCAN:PORT is
selected, followed by the [ROUTe:]SCAN <channel_list> command and
an INITiate[:IMMediate] command. All must be executed (unless defaults
are used) before TRIGger[:IMMediate] will execute.
BUS or HOLD Source: If selected, the TRIGger:SOURce BUS or
TRIGger:SOURce HOLD commands remain in effect after triggering a
switchbox with the TRIGger[:IMMediate] command.
Related Commands: INITiate, [ROUTe:]SCAN
Example Advancing Scan Using TRIGger Command
This example uses the TRIGger command to advance the scan of a
single-module switchbox from bank 0, channels 0 through 7. Since
TRIGger:SOURce HOLD is set, the scan is advanced one channel each
time TRIGger is executed. For the example, ROUTe:SCAN:MODE and
ROUTe:SCAN:PORT default values of NONE are used.
TRIG:SOUR HOLD
!Set trigger source to HOLD
SCAN (@100:107)
!Scan channels 0 to 7 in bank 0
INIT
!Begin scan, close channel 00
loop statement
!Start count loop
TRIG
!Advance scan to next channel
increment loop
!Increment loop count