20.01.2015 Views

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RIGOL<br />

2 Command System<br />

:WAVeform:DATA<br />

Syntax<br />

:WAVeform:DATA<br />

Description<br />

Read the waveform data.<br />

Explanation<br />

This command is affected by<br />

the :WAVeform:FORMat, :WAVeform:MODE, :WAVeform:POINts, :WAVeform:SOU<br />

Rce and related commands.<br />

Procedures of the screen waveform data reading:<br />

S1. :WAV:SOURce CHAN1 Set the channel source to be read<br />

S2. :WAV:MODE NORM Set the waveform mode to NORM<br />

S3. :WAV:DATA Obtain data from buffer<br />

Procedures of the internal memory waveform data reading:<br />

S1. :STOP The internal memory waveform data can<br />

only be read in STOP state<br />

S2. :WAV:SOURce CHAN1 Set the channel source to be read<br />

S3. :WAV:MODE RAW Set the waveform mode to RAW<br />

S4. :WAV:RESet Reset the waveform reading<br />

S5. :WAV:BEGin Start the waveform reading<br />

S6. :WAV:STATus<br />

Get the state<br />

1) IDLE<br />

Waveform reading thread finishes<br />

:WAV:DATA<br />

Get data in buffer<br />

:WAV: END<br />

Waveform reading finishes<br />

2) READ<br />

Waveform reading thread is running<br />

:WAV:DATA<br />

Get data in buffer<br />

Repeat S6<br />

Continue to read waveform data<br />

See the example below.<br />

visa32.viPrintf(viSession, ":STOP\n");<br />

visa32.viPrintf(viSession, ":WAV:MODE RAW\n");<br />

visa32.viPrintf(viSession, ":WAV:SOURce %s\n", strChan );<br />

2-552 <strong>DS2000</strong> <strong>Programming</strong> <strong>Guide</strong><br />

2-552

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!