![Rigol DS4000E Series Скачать руководство пользователя страница 253](http://html1.mh-extra.com/html/rigol/ds4000e-series/ds4000e-series_programming-manual_1460996253.webp)
RIGOL
DS4000E Programming Guide
2-241
Procedures of reading the waveform data in the internal memory:
S1. :STOP
Sets the oscilloscope to the Stop state (You can only read the
waveform data in the internal memory when the oscilloscope is in the
Stop state.)
S2. :WAV:SOUR CHAN1
Sets the source channel of waveform data reading to CH1
S3. :WAV:MODE RAW
Sets the waveform data reading mode to RAW
Note: When the source channel of waveform data reading is set to
MATH or FFT, only the waveform data displayed on the screen can be
read, and the waveform data in the internal memory cannot be read in
this mode.
S4. :WAV:POIN 100
Sets the number of the waveform points to be read to 100
S5. :WAV:RES
Resets the waveform reading
S6. :WAV:BEG
Starts the waveform reading
S7. :WAV:STAT?
1) IDLE
:WAV:DATA?
:WAV:END
2) READ
:WAV:DATA?
Repeat S7
Obtains status
Finishes the waveform reading thread
Obtains data from the buffer
Stops the waveform reading
the waveform reading thread is running
Obtains data from the buffer
Continues reading the waveform data
Return Format
The query returns the waveform data in strings.
The return value is related to the current return format of the waveform data (refer to
the :WAVeform:FORMat command).
"WORD" or "BYTE" format: The strings of the waveform data consists of TMC data block header and
the waveform data. The format of the TMC data block header is #9XXXXXXXXX, and the 9-digit data
(XXXXXXXXX) following it denotes the length of the data stream (in bytes). The TMC data block header
is followed by the waveform data.
"ASCii" format: The query directly returns the actual voltage value of each waveform point in scientific
notation; and the voltage values are separated by commas.
When the waveform data in the internal memory are read, the waveform data returned each time
might be the data in one area of the internal memory. Waveform data in two adjacent data blocks are
consecutive. In "WORD" or "BYTE" return format, each returned data in a block contains the TMC data
block header (#9XXXXXXXXX).
You can follow the methods below to convert the waveform data that have been read to the voltage
value of each point of the waveform on the screen.
The figure below shows the waveform data that have been read. First, select "View as hexadecimal
only" from the drop-down list at the right of Buffer. Then, the waveform data that have been read are
displayed in hexadecimal format. The first 11 bytes denote the "TMC data block header", and
beginning from the 12th byte (9c) are the waveform data. Then use the formula "(Data
Read-YREFerence-YORigin) x YINCrement" to convert the waveform data that have been read to the
voltage value of the specified point of the waveform on the screen. Wherein, Data Read represents the
specified waveform data. For YREFerence, refer to the :WAVeform:YREFerence? command; for
YINCrement, refer to the :WAVeform:YINCrement? command; and for YORigin, refer to
the :WAVeform:YORigin? command.
Содержание DS4000E Series
Страница 1: ...RIGOL Programming Guide DS4000E Series Digital Oscilloscope Aug 2016 RIGOL TECHNOLOGIES INC...
Страница 2: ......
Страница 266: ...RIGOL Chapter 3 Programming Examples 3 6 DS4000E Programming Guide...
Страница 270: ...RIGOL Chapter 3 Programming Examples 3 10 DS4000E Programming Guide...