Application Examples RIGOL
Programming Guide for DG10X2
Example 9: Channel Copy
Target: Output a sine wave with 1kHz, 500mV
DC
, 10° via CH1 and a ramp wave with
1.5kHz, 2Vpp, 0 V
DC
, 0° via CH2, and then observe the parameters of wave from CH2
after copying CH1 to 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,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 VOLT:UNIT:CH2 VPP /* Set the amplitude unit of CH2*/
5 APPL:RAMP:CH2 1500,2,0 /* Set the frequency, amplitude and offset of
ramp wave from CH2*/
6 PHAS:CH2 0 /* Set the initial phase of wave from CH2*/
7 COUP OFF /* Disable channel coupling to enable channel
copy */
8 COUP:CHANNC 1>2 /* Copy the wave parameters from CH1 to CH2
*/
/* Query the wav
e parameters of CH2 after copying */
9 FREQuency:CH2? /* Return 1.000000e+03 (1kHz)*/
10 VOLTage:CH2? /* Return 5.000000e+00 (5Vpp)*/
11 VOLTage:OFFSet:CH2? /* Return 5.000000e-01 (500mV
DC
)*/
12 PHAS:CH2? /* Return 10.000 (10°)*/
Notes:
1 Channel Copy function is only valid for wave parameters but not for wave shapes.
2 Channel Copy function is enabled automatically after Channel Coupling is
disabled.
3 Channel Copy function is limited by parameter verification, for the details please
refer to <<DG10X2 User’s Guide>>.
Comments to this Manuals