User`s manual
64 Relay Matrix Switch Command Reference Chapter 3
Example Scanning Using External Triggers
This example uses external triggering (TRIG:SOUR EXT) to scan
channels 00 through 03 switchbox. The trigger source to advance the
scan is the input to the Trig In port on the E1406 Command Module.
When INIT is executed, the scan is started and channel 00 is closed.
Then each trigger received at the Trig In port advances the scan to the
next channel.
TRIG:SOUR EXT
!Select external triggering
SCAN (@10000:10003)
!Scan channels 00 through 03
INIT
!Begin scan, close channel 00
trigger externally
!Advance scan to next channel
Example Scanning Using Bus Triggers
This example uses bus triggering (TRIG:SOUR BUS) to scan channels
00 through 03 of switchbox. The trigger source to advance the scan is the
*TRG command (as set with TRIG:SOUR BUS). When INIT is executed,
the scan is started and channel 00 is closed. Then, each *TRG command
advances the scan to the next channel.
TRIG:SOUR BUS
!Select interface (bus) triggering
SCAN (@10000:10003)
!Scan channels 00 through 03
INIT
!Start scan, close channel 00
loop statement
!Loop to scan all channels
*TRG
!Advance scan using bus
!triggering
increment loop
!Increment loop count
TRIGger:SOURce?
TRIGger:SOURce? returns the current trigger source for the switchbox.
Command returns BUS, ECLT, EXT, HOLD, IMM, or TTLT for sources
BUS, ECLTrg, EXTernal, HOLD, IMMediate, or TTLTrg, respectively.
Example Query Trigger Source
This example sets external triggering and queries the trigger source.
Since external triggering is set, TRIG:SOUR? returns EXT.
TRIG:SOUR EXT
!Set external trigger source
TRIG:SOUR?
!Query trigger source