RIGOL Application Examples
Programming Guide for DG1000
Example 8: Channel Coupling
Target: Output a 1kHz, 5Vpp, 0V
DC
, 0° sine wave via CH1 and a 1.5kHz, 5Vpp, 0 V
DC
,
0° ramp wave via CH2, and then, take CH1 as the base channel and set the phase
deviation as 10°, finally, observe the phase of wave output from CH2 after coupling.
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,5,0 /*Set the frequency, amplitude and offset of sine
wave output from CH1 */
3 PHAS 0 /* Set the initial phase of wave output from
CH1*/
4 VOLT:UNIT:CH2 VPP /* Set the amplitude unit of CH2*/
5 APPL:RAMP:CH2 1500,5,0 /*Set the frequency, amplitude and offset of
ramp wave output from CH2*/
6 PHAS:CH2 0 /*Set the initial phase of wave output from
CH2*/
7 COUP ON /* Enable channel coupling function */
8 COUP:BASE:CH1 /* Select CH1 as the base channel */
9 COUP:PHASEDEV 10 /* Set the phase deviation */
10 PHAS 2 /*Change the phase of wave output from CH1*/
11 PHAS:CH2? /*Query the phase of wave output from CH2 and
the query returns 12 */
Notes:
1 The return value of PHAS:CH2? is 12, which indicates that the phase of CH2
varies with the phase of CH1 and keeps a 10°phase deviation.
2 The setting method of frequency coupling is the same with that of phase
coupling.