Matrix Modules Command Reference 77
Chapter 4
Related Commands:
ABORt, [ROUTe:]SCAN, OUTPut
*RST Condition:
TRIGger:SOURce IMMediate
Example
Scanning Using External Triggers
This example uses external triggering (TRIGger:SOURce EXTernal) to scan
channels 0000 through 0003 of a single-module switchbox. The trigger
source to advance the scan is the input to the "Trig In" port on the E1406A
Command Module. When INIT is executed, the scan is started and channel
0000 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 0000 - 0003
INIT
! Begin scan, close channel 0000
trigger externally
! Advance scan to next channel
Example
Scanning Using Bus Triggers
This example uses bus triggering (TRIG:SOUR BUS) to scan channels 0000
through 0003 of a single-module switchbox. The trigger source to advance
the scan is the *TRG command (as set with TRIGger:SOURce BUS). When
INIT is executed, the scan is started and channel 0000 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 0000 - 0003
INIT
! Begin scan, close channel 0000
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.
The command returns BUS, EXT, HOLD, IMM, or TTLT for sources BUS,
EXTernal, HOLD, IMMediate, or TTLTrg
n
, respectively.
Example
Querying the 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
Содержание E1465A
Страница 2: ......
Страница 6: ...6 ...
Страница 10: ...10 Notes ...
Страница 12: ...12 Getting Started Chapter 1 Figure 1 1 E1465A 16x16 Relay Matrix Module TERMINAL MODULE MATRIX MODULE A B C D ...
Страница 13: ...Getting Started 13 Chapter 1 Figure 1 2 E1466A 4x64 Relay Matrix Module TERMINAL MODULE MATRIX MODULE A B C D ...
Страница 14: ...14 Getting Started Chapter 1 Figure 1 3 E1467A 8x32 Relay Matrix Module TERMINAL MODULE MATRIX MODULE A B C D ...
Страница 18: ...18 Getting Started Chapter 1 Notes ...
Страница 80: ...80 Matrix Modules Command Reference Chapter 4 Notes ...
Страница 98: ...98 Register Based Programming Appendix B Notes ...