beautypg.com

Waveform:source, Waveform:preamble – RIGOL DS1000B User Manual

Page 85

background image

Command Systems

RIGOL

Programming Guide for DS1000B Series

2-73


5. :WAVeform:SOURce

Command Format:
:WAVeform:SOURce
:WAVeform:SOURce?

Function:
The command sets the source of waveform data which is going to check. The
may be CHANnel1, CHANnel2, CHANnel3, CHANnel4 or MATH.
Returned Format:
The query returns Channel1 or Channel2, Channel3, Channel4, MATH.

Example:
:WAV:SOUR CHAN2 Set the data source as channel 2.
:WAV:SOUR?

Return Channel2.


6. :WAVeform:PREamble?

Command Format:

:WAVeform:PREamble?


Function:
This command queries the current waveform settings.

Returned Format:
The query returns 10 data which are separated by comma “,”, they are:
Format,Type,Points,Count,Xinc,Xor,Xref,Yinc,Yor,Yref

Parameter Value:
Format: BYTE – 0; WORD – 1; ASCII – 2.
Type: NORMAL – 0; PEAK_DETECT – 1; AVERAGE – 2.
Points: specified by

:WAVeform:POINts

command.

Count: the “average acquisition time” (in average mode) or “1” (other mode);
Xinc: 1/SaRate (RAW) or TimeScale/50 (NORMAL);
Xor: relative time of the trigger points;
Xref: X reference;
Yinc: Y unit voltage;