602 Keysight InfiniiVision DSOX1204A/G Oscilloscopes Programmer's Guide
27 :TRIGger Commands
:TRIGger[:EDGE]:SOURce
(see page 798)
Command Syntax
:TRIGger[:EDGE]:SOURce <source>
<source> ::= {CHANnel<n> | EXTernal | LINE | WGEN}
<n> ::= 1 to (# analog channels) in NR1 format
The :TRIGger[:EDGE]:SOURce command selects the input that produces the
trigger.
• EXTernal — triggers on the rear panel EXT TRIG IN signal.
• LINE — triggers at the 50% level of the rising or falling edge of the AC power
source signal.
• WGEN — triggers at the 50% level of the rising edge of the waveform generator
output signal. This option is not available when the DC or NOISe waveforms are
selected. This option is also not available when serial decode is on due to
hardware limitations.
Query Syntax
:TRIGger[:EDGE]:SOURce?
The :TRIGger[:EDGE]:SOURce? query returns the current source. If all channels are
off, the query returns "NONE."
Return Format
<source><NL>
<source> ::= {CHAN<n> | EXT | LINE | WGEN | NONE}
See Also • "Introduction to :TRIGger Commands" on page 585
• ":TRIGger:MODE" on page 594
Example Code
' TRIGGER_EDGE_SOURCE - Selects the channel that actually produces th
e
' edge trigger. Any channel can be selected.
myScope.WriteString ":TRIGger:EDGE:SOURce CHANnel1"
See complete example programs at: Chapter 36, “Programming Examples,”
starting on page 807