982 Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
32 :WAVeform Commands
Return Format <source><NL>
<source> ::= {CHAN<n> | FUNC | WMEM<r> | SBUS{1 | 2}} for DSO models
<source> ::= {CHAN<n> | POD{1 | 2} | BUS{1 | 2} | FUNC
| WMEM<r> | SBUS{1 | 2}} for MSO models
<n> ::= 1 to (# analog channels) in NR1 format
<r> ::= {1 | 2}
See Also • "Introduction to :WAVeform Commands" on page 961
• ":DIGitize" on page 199
• ":WAVeform:FORMat" on page 971
• ":WAVeform:BYTeorder" on page 967
• ":WAVeform:DATA" on page 969
• ":WAVeform:PREamble" on page 976
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"
' WAVE_POINTS - Specifies the number of points to be transferred
' using the ":WAVEFORM:DATA?" query.
myScope.WriteString ":WAVEFORM:POINTS 1000"
' WAVE_FORMAT - Sets the data transmission mode for the waveform
' data output. This command controls whether data is formatted in
' a word or byte format when sent from the oscilloscope.
Dim lngVSteps As Long
Dim intBytesPerData As Integer
' Data in range 0 to 65535.
myScope.WriteString ":WAVEFORM:FORMAT WORD"
lngVSteps = 65536
intBytesPerData = 2
' Data in range 0 to 255.
'myScope.WriteString ":WAVEFORM:FORMAT BYTE"
'lngVSteps = 256
'intBytesPerData = 1
' GET_PREAMBLE - The preamble block contains all of the current
' WAVEFORM settings. It is returned in the form <preamble_block><NL>
MATH is an alias for FUNCtion. The :WAVeform:SOURce? Query returns FUNC if the source
is FUNCtion or MATH.