Specifications

RIGOL Application Examples
Programming Guide for DG10X2
3-2
Example 1: To generate a sine wave via CH1
Target: Generate a sine wave with 20 kHz of frequency, 2.5 Vpp of amplitude,
500mV
DC
offset and 10 of 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:
Command VOLT:UNIT VPP and APPL:SIN 20000,2.5,0.5 are equivalent to these five
commands together: , FUNC SIN, FREQ 20000, VOLT:UNIT VPP, VOLT 2.5 and
VOLT:OFFS 0.5.