To output sweep waveform, To output sweep waveform -5 – RIGOL DG1000Z Series User Manual
Page 225

Chapter 3 Application Examples
RIGOL
DG1000Z Programming Guide
3-5
To Output Sweep Waveform
Requirement
Use the SCPI commands to realize the following functions:
Output sweep waveform from the output connector of CH1 at the front panel; set the sweep waveform to
sine (5Vpp amplitude and 0V
DC
offset voltage), the sweep type to linear, the sweep time to 3s, the return
time to 0.1s, the start frequency to 100Hz and the stop frequency to 1kHz; turn on the frequency mark
function and set the mark frequency to 500Hz, the start hold to 0.1s, the stop hold to 0.1s, the trigger
source to manual and the edge type of the trigger output signal to rising edge.
Method
1.
*IDN?
/*Query the ID string of the signal generator to check
whether the remote communication is normal*/
2.
:SOUR1:FUNC SIN
/*Set the waveform of CH1 to sine*/
3.
:SOUR1:VOLT 5
/*Set the waveform amplitude of CH1 to 5Vpp*/
4.
:SOUR1:VOLT:OFFS 0
/*Set the waveform offset voltage of CH1 to 0V
DC
*/
5.
:SOUR1:SWE:STAT ON
/*Turn on the sweep function of CH1*/
6.
:SOUR1:SWE:SPAC LIN
/*Set the sweep type of CH1 to linear*/
7.
:SOUR1:SWE:TIME 3
/*Set the sweep time of CH1 to 3s*/
8.
:SOUR1:SWE:RTIM 0.1
/*Set the return time of the sweep function of CH1 to 0.1s*/
9.
:SOUR1:FREQ:STAR 100
/*Set the start frequency of the sweep function of CH1 to
100Hz*/
10. :SOUR1:FREQ:STOP 1000
/*Set the stop frequency of the sweep function of CH1 to
1kHz*/
11. :SOUR1:MARK ON
/*Enable the frequency mark function of the sweep function
of CH1*/
12. :SOUR1:MARK:FREQ 500
/*Set the mark frequency of the sweep function of CH1 to
500Hz*/
13. :SOUR1:SWE:HTIM:STAR 0.1
/*Set the start hold of the sweep function of CH1 to 0.1s*/
14. :SOUR1:SWE:HTIM 0.1
/*Set the stop hold of the sweep function of CH1 to 0.1s*/
15. :SOUR1:SWE:TRIG:SOUR MAN
/*Set the sweep trigger source of CH1 to manual*/
16. :SOUR1:SWE:TRIG:TRIGO POS
/*Set the edge type of the trigger output signal of CH1 to
rising edge*/
17. :OUTP1 ON
/*Turn on the output of CH1*/
18. :SOUR1:SWE:TRIG
/*Trigger a sweep in CH1 immediately*/