Chapter 3 Application Instances  RIGOL 
DG800 Programming Guide  3-3 
To Output Harmonic 
 
Requirement 
Use the SCPI commands to realize the following functions: 
Output harmonic waveform from the front panel output connector of CH1; the fundamental waveform (Sine) 
parameters are 1 kHz frequency, 5 Vpp amplitude, 0 Vdc 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 2 Vpp and 30°, the amplitude and phase of the fourth order of harmonic to 1 Vpp and 50°. 
 
Method 
/*Queries the ID string of the signal generator to test 
whether the remote communication works normally.*/ 
:SOUR1:APPL:SIN 1000,5,0,0 
/*Sets the waveform of CH1 to Sine with 1kHz frequency, 5 
Vpp amplitude, 0V
dc
 offset, and 0° start phase.*/ 
/*Enables the harmonic function of CH1.*/ 
/*Sets the highest order of harmonic that CH1 can output to 
4.*/ 
/*Sets the harmonic type of CH1 to odd harmonic.*/ 
/*Sets the amplitude of the second order of harmonic of CH1 
to 2 Vpp.*/ 
/*Sets the phase of the second order of harmonic of CH1 to 
30°.*/ 
/*Sets the amplitude of the fourth order of harmonic of CH1 
to 1 Vpp.*/ 
/*Sets the phase of the fourth order of harmonic of CH1 to 
50°.*/ 
/*Enables 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 front-panel output connector of CH1; set the carrier waveform to 
Sine (1 kHz frequency, 5 Vpp amplitude, 0 Vdc 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 200 Hz; enable the carrier waveform suppression function. 
 
Method 
/*Queries the ID string of the signal generator to test whether 
the remote communication works normally.*/ 
:SOUR1:APPL:SIN 1000,5,0,0 
/*Sets the waveform of CH1 to Sine with 1kHz frequency, 5 
Vpp amplitude, 0V
dc
 offset, and 0° start phase.*/ 
/*Enables the AM modulation function of CH1.*/ 
/*Sets the AM modulation source of CH1 to internal 
modulation source.*/ 
/*Sets the AM modulation waveform of CH1 to Sine.*/ 
/*Sets the AM modulation depth of CH1 to 80%.*/ 
/*Sets the AM modulation frequency of CH1 to 200 Hz.*/ 
/*Enables the AM carrier waveform suppression function of 
CH1.*/ 
/*Enables the output of CH1.*/