654 Keysight InfiniiVision DSOX1204A/G Oscilloscopes Programmer's Guide
28 :WAVeform Commands
:WAVeform:SOURce
(see page 798)
Command Syntax
:WAVeform:SOURce <source>
<source> ::= {CHANnel<n> | FUNCtion | MATH | FFT | WMEMory<r> | SBUS1
| ABUS}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= {1 | 2}
The :WAVeform:SOURce command selects the analog channel, function, or
reference waveform to be used as the source for the :WAVeform commands.
Function capabilities include add, subtract, multiply, and FFT (Fast Fourier
Transform) operations.
Query Syntax
:WAVeform:SOURce?
The :WAVeform:SOURce? query returns the currently selected source for the
WAVeform commands.
Return Format
<source><NL>
<source> ::= {CHAN<n> | FUNC | FFT | WMEM<r> | SBUS1 | ABUS}
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= {1 | 2}
See Also • "Introduction to :WAVeform Commands" on page 635
• ":DIGitize" on page 143
• ":WAVeform:FORMat" on page 644
• ":WAVeform:BYTeorder" on page 640
• ":WAVeform:DATA" on page 642
• ":WAVeform:PREamble" on page 649
Example Code
' WAVEFORM_DATA - To obtain waveform data, you must specify the
' WAVEFORM parameters for the waveform data prior to sending the
' ":WAVEFORM:DATA?" query. Once these parameters have been sent,
' the waveform data and the preamble can be read.
'
' WAVE_SOURCE - Selects the channel to be used as the source for
' the waveform commands.
myScope.WriteString ":WAVEFORM:SOURCE CHAN1"
MATH is an alias for FUNCtion. The :WAVeform:SOURce? Query returns FUNC if the source is
FUNCtion or MATH.