RIGOL Application Examples
Programming Guide for DG1000
Example 1: To Generate a Sine Wave
Target: Generate a sine wave with 20 kHz frequency, 2.5 Vpp amplitude, 500mV
DC
offset and 10°phase via CH1.
How to realize via commands?
Method1:
0 *IDN? /* Query ID to check the operating state */
1 VOLT:UNIT VPP /* Set the unit of amplitude */
2 APPL:SIN 20000,2.5,0.5 /*Set the frequency, amplitude and offset of the
sine wave*/
3 PHAS 10 /* Set the initial phase */
4 OUTP ON /*Enable the [Output] connector of CH1 at front
panel */
Method2:
0 *IDN? /* Query ID to check the operating state */
1 FUNC SIN /*Select sine function*/
2 FREQ 20000 /* Set the output frequency*/
3 VOLT:UNIT VPP /* Set the unit of amplitude*/
4 VOLT 2.5 /* Set the output amplitude */
5 VOLT:OFFS 0.5 /* Set the offset*/
6 PHAS 10 /* Set the initial phase */
7 OUTP ON /*Enable the [Output] connector of CH1 at front
panel */
Note:
The function of the “VOLT:UNIT VPP” and “APPL:SIN 20000,2.5,0.5” commands is the
same with that of the “FUNC SIN, FREQ 20000”, “VOLT:UNIT VPP”, “VOLT 2.5” and
“VOLT:OFFS 0.5” commands.