Commands by Subsystem 5
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide 521
:WAVeform:SOURce
(see page 658)
Command Syntax
:WAVeform:SOURce <source>
<source> ::= {CHANnel<n> | FUNCtion | MATH | SBUS}
<n>::={1|2|3|4}forthefour channel oscilloscope models
<n> ::= {1 | 2} for the two channel oscilloscope models
The :WAVeform:SOURce command selects the analog channel, function, or
serial decode bus to be used as the source for the :WAVeform commands.
Function capabilities include add, subtract, multiply; integrate,
differentiate, and FFT (Fast Fourier Transform) operations.
When the :WAVeform:SOURce is the serial decode bus (SBUS), ASCii is the
only waveform format allowed.
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 | SBUS}
<n>::={1|2|3|4}forthefour channel oscilloscope models
<n> ::= {1 | 2} for the two channel oscilloscope models
See Also • "Introduction to :WAVeform Commands" on page 502
• ":DIGitize" on page 132
• ":WAVeform:FORMat" on page 511
• ":WAVeform:BYTeorder" on page 507
• ":WAVeform:DATA" on page 509
• ":WAVeform:PREamble" on page 516
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"
NOTE
MATH is an alias for FUNCtion. The :WAVeform:SOURce? query returns FUNC if the source
is FUNCtion or MATH.