Chapter 2 Command System  RIGOL 
DG800 Programming Guide  2-91 
Example 
:SOUR1:HARM:PHAS 5,10       /*Sets the phase of the fifth order of harmonic of CH1 to 10°.*/ 
:SOUR1:HARM:PHAS? 5        /*Queries the phase of the fifth order of harmonic of CH1 and the query 
returns 1.000000E+01.*/ 
 
 
[:SOURce[<n>]]:HARMonic[:STATe] 
 
Syntax 
[:SOURce[<n>]]:HARMonic[:STATe] {ON|1|OFF|0} 
[:SOURce[<n>]]:HARMonic[:STATe]? 
 
Description 
Enables or disables the harmonic function of the specified channel. 
Queries the on/off status of the harmonic function of the specified channel. 
 
Parameter 
 
Remarks   
  DG800 can be used as a harmonic waveform generator and can output harmonic with the specified 
order (
[:SOURce[<n>]]:HARMonic:ORDEr), amplitude ([:SOURce[<n>]]:HARMonic:AMPL), and 
phase (
[:SOURce[<n>]]:HARMonic:PHASe). 
  When [:SOURce[<n>]] or [<n>] is omitted, the system sets the related parameters of CH1 by default. 
 
Return Format 
The query returns ON or OFF. 
 
Example 
:SOUR1:HARM ON     /*Enables the harmonic function of CH1.*/ 
:SOUR1:HARM?    /*Queries the on/off status of the harmonic function of CH1 and the query 
returns ON.*/ 
 
 
[:SOURce[<n>]]:HARMonic:TYPe 
 
Syntax   
[:SOURce[<n>]]:HARMonic:TYPe {EVEN|ODD|ALL|USER} 
[:SOURce[<n>]]:HARMonic:TYPe? 
 
Description 
Sets the harmonic type of the specified channel to even harmonic (EVEN), odd harmonic (ODD), all 
harmonic (ALL), or user-defined harmonic (USER). 
Queries the harmonic type of the specified channel. 
 
Parameter 
 
Remarks   
  Even harmonic (EVEN): the instrument outputs the fundamental waveform and the even orders of 
harmonics. 
  Odd harmonic (ODD): the instrument outputs the fundamental waveform and the odd orders of 
harmonics.