Instructions
RIGOL  Chapter 2 Command System 
2-90  DG2000 Programming Guide 
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 
Name 
Type 
Range 
Default 
[<n>] 
Discrete 
1|2 
1 
{EVEN|ODD|ALL|USER} 
Discrete 
EVEN|ODD|ALL|USER 
EVEN 
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. 
  All harmonic (ALL): the instrument outputs the fundamental waveform and all the orders of harmonics. 
  User-defined harmonic (USER): users can define the output orders of the harmonics, and the highest 
order is 8.   
The output states of the 8 orders of harmonics are represented by 8-bit binary data. The leftmost bit 
represents the fundamental waveform; it is a fixed X and cannot be modified. The rest 7 bits 
correspond to the second order of harmonic to the eighth order of harmonic from left to right. 1 
denotes enabling the output of the corresponding order of harmonic, and 0 denotes disabling the 
output of the corresponding order of harmonic. For example, set the 8-bit data to X0010001, which 
denotes outputting the fundamental waveform, the fourth order of harmonic, and eighth order of 
harmonic. 
  When [:SOURce[<n>]] or [<n>] is omitted, the system sets the related parameters of CH1 by default. 
  The actually output harmonic is limited by the currently specified highest order of harmonic 
(
[:SOURce[<n>]]:HARMonic:ORDEr) and the harmonic type. 
Return Format 
The query returns EVEN, ODD, ALL, or USER. 
Example 
:SOUR1:HARM:TYP ODD   /*Sets the harmonic type of CH1 to odd harmonic.*/ 
:SOUR1:HARM:TYP?          /*Queries the harmonic type of CH1 and the query returns ODD.*/ 










