Specifications

Application Examples RIGOL
Programming Guide for DG10X2
3-7
Example 5: To generate a linear sweep wave via CH1
Target: Generate a sweep sine wave with: 100 Hz ~ 10 kHz of frequency range,
internal trigger, linear mode and 1 s of sweep time.
How to realize via commands?
0 *IDN? /* Query ID to check the operating state */
1 FUNC SIN /* Select the sweep function */
2 SWE:STAT ON /* Enable sweep state*/
3 SWE:SPAC LIN /* Select linear sweep mode */
4 FREQ:STAR 100 /* Set the start frequency */
5 FREQ:STOP 10000 /* Set the stop frequency */
6 SWE:TIME 1 /* Set the sweep time */
7 TRIG:SOUR IMM /* Select internal trigger source */
8 OUTP ON /* Enable the [Output] connector of CH1 at front
panel */