User manual

RIGOL Chapter 2 Command System
2-226 MSO7000/DS7000 Programming Guide
Remarks
NORMal: reads the waveform data currently displayed on the screen.
MAXimum: reads the waveform data displayed on the screen when the oscilloscope
is in the Run state; reads the waveform data in the internal memory when the
oscilloscope is in the Stop state.
RAW: reads the waveform data in the internal memory. Note: The data in the
internal memory can only be read when the oscilloscope is in the Stop state. You are
not allowed to operate the instrument when it is reading data.
When the channel source is set to MATH, only the NORMal mode is valid.
Return
Format
The query returns NORM, MAX, or RAW.
Example
:WAVeform:MODE RAW /*Sets the reading mode of waveform data to RAW.*/
:WAVeform:MODE? /*The query returns RAW.*/
:WAVeform:FORMat
Syntax
:WAVeform:FORMat <format>
:WAVeform:FORMat?
Description
Sets or queries the return format of the waveform data.
Parameter
Name
Type
Range
Default
<format>
Discrete
{WORD|BYTE|ASCii}
BYTE
Remarks
WORD: Each waveform point occupies 2 bytes (16 bits). The lower 8 bits are valid
and the higher 8 bits are 0.
BYTE: Each waveform point occupies one byte (8 bits).
ASCii: The query returns the actual voltage value of each waveform point in
scientific notation; and the voltage values are separated by commas.
Return
Format
The query returns WORD, BYTE, or ASC.
Example
:WAVeform:FORMat WORD /*Sets the returned format of waveform data to WORD.*/
:WAVeform:FORMat? /*The query returns WORD.*/
:WAVeform:DATA?
Syntax
:WAVeform:DATA?
Description
Reads the waveform data.
Remarks
Procedures of reading the waveform data on the screen:
S1. :WAV:SOUR CHAN1
Sets the channel source to CH1.
S2. :WAV:MODE NORMal
Sets the waveform reading mode to NORMal.
S3. :WAV:FORM BYTE
Sets the return format of the waveform data to
BYTE.
S4. :WAV:DATA?
Reads the waveform data on the screen.
Procedures of reading the waveform data in the internal memory:
S1. :WAV:SOUR CHAN1
Sets the channel source to CH1.