Application Examples RIGOL
Programming Guide for DG1000
Example 7: To Output Waves via Dual Channels
Target: Output a 1kHz, 2.5Vpp, 500mV
DC
, 10° sine wave, via CH1 and a 1.5kHz, 5Vpp,
1 V
DC
, 20° ramp wave 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 output from CH1 */
3 PHAS 10 /* Set the initial phase of wave output from CH1
*/
4 OUTP ON /* Enable the [Output] connector of CH1 at the
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 output from CH2*/
7 PHAS:CH2 20 /*Set the initial phase of wave output from
CH2*/
8 OUTP:CH2 ON /* Enable the [Output] connector of CH2 at the
front panel */
9 PHAS:ALIGN /*Enable align phase output of dual channels*/