Specifications

Application Examples RIGOL
Programming Guide for DG10X2
3-9
Example 7: To output waves via dual channels
Target: Output a sine wave with 1kHz, 2.5Vpp, 500mV
DC
, 10° via CH1 and a ramp
wave with 1.5kHz, 5Vpp, 1 V
DC
, 20° via CH2.
How to realize via commands?
0 *IDN? /* Query ID to check the operating state */
1 VOLT:UNIT VPP /* Set the amplitude unit of CH1 */
2 APPL:SIN 1000,2.5,0.5 /* Set the frequency, amplitude and offset of sine
wave from CH1 */
3 PHAS 10 /* Set the initial phase of wave from CH1 */
4 OUTP ON /* Enable the [Output] connector of CH1 at front
panel */
5 VOLT:UNIT:CH2 VPP /* Set the amplitude unit of CH2*/
6 APPL:RAMP:CH2 1500,5,1 /*Set the frequency, amplitude and offset of
ramp wave from CH2*/
7 PHAS:CH2 20 /* Set the initial phase of wave from CH2*/
8 OUTP:CH2 ON /* Enable the [Output] connector of CH2 at front
panel */
9 PHAS:ALIGN /*Control the dual channels phase output
synchronously */