To output harmonic waveform, To output am modulated waveform, To output harmonic waveform -3 – RIGOL DG1000Z Series User Manual
Page 223: To output am modulated waveform -3

Chapter 3 Application Examples
RIGOL
DG1000Z Programming Guide
3-3
To Output Harmonic Waveform
Requirement
Use the SCPI commands to realize the following functions:
Output harmonic waveform from the output connector of CH1 at the front panel; the fundamental
waveform (sine) parameters are 1kHz frequency, 5Vpp amplitude, 0V
DC
offset voltage and 0° start phase;
set the highest order of harmonic to 4, the harmonic type to even, the amplitude and phase of the second
order of harmonic to 2Vpp and 30°, the amplitude and phase of the forth order of harmonic to 1Vpp and
50°.
Method
1.
*IDN?
/*Query the ID string of the signal generator to check
whether the remote communication is normal*/
2.
:SOUR1:APPL:SIN 1000,5,0,0
/*Set the waveform of CH1 to sine, the frequency to 1kHz,
the amplitude to 5Vpp, the offset to 0V
DC
and the start
phase to 0°*/
3.
:SOUR1:HARM ON
/*Turn on the harmonic function of CH1*/
4.
:SOUR1:HARM:ORDE 4
/*Set the highest order of harmonic of CH1 to 4*/
5.
:SOUR1:HARM:TYP EVEN
/*Set the harmonic type of harmonic of CH1 to even*/
6.
:SOUR1:HARM:AMPL 2,2
/*Set the amplitude of the second order of harmonic of CH1
to 2Vpp*/
7.
:SOUR1:HARM:PHAS 2,30
/*Set the phase of the second order of harmonic of CH1 to
30°*/
8.
:SOUR1:HARM:AMPL 4,1
/*Set the amplitude of the forth order of harmonic of CH1 to
1Vpp*/
9.
:SOUR1:HARM:PHAS 4,50
/*Set the phase of the forth order of harmonic of CH1 to
50°*/
10. :OUTP1 ON
/*Turn on the output of CH1*/
To Output AM Modulated Waveform
Requirement
Use the SCPI commands to realize the following functions:
Output AM modulated waveform from the output connector of CH1 at the front panel; set the carrier
waveform to sine (1kHz frequency, 5Vpp amplitude, 0V
DC
offset voltage and 0° start phase); select internal
modulation source; set the modulating waveform to sine, the modulation depth to 80% and the modulation
frequency to 200Hz; turn on the carrier waveform suppression function.
Method
1. *IDN?
/*Query the ID string of the signal generator to check whether
the remote communication is normal*/
2. :SOUR1:APPL:SIN 1000,5,0,0
/*Set the waveform of CH1 to sine, the frequency to 1kHz, the
amplitude to 5Vpp, the offset to 0V
DC
and the start phase to
0*/
3. :SOUR1:AM:STAT ON
/*Turn on the AM modulation function of CH1*/
4. :SOUR1:AM:SOUR INT
/*Set the AM modulation source of CH1 to internal*/
5. :SOUR1:AM:INT:FUNC SIN
/*Set the AM modulating waveform of CH1 to sine*/
6. :SOUR1:AM 80
/*Set the AM modulation depth of CH1 to 80%*/
7. :SOUR1:AM:INT:FREQ 200
/*Set the AM modulation frequency of CH1 to 200Hz*/
8. :SOUR1:AM:DSSC ON
/*Turn on the AM carrier waveform suppression function of
CH1*/
9. :OUTP1 ON
/*Turn on the output of CH1*/