RIGOL
Chapter 3 Application Instances
3-4
DG900 Programming Guide
To Output FSK Modulated Waveform
Requirement
Use the SCPI commands to realize the following functions:
Output FSK modulated waveform from the front-panel output connector of CH1; set the carrier waveform to
Sine (1 kHz frequency, 5 Vpp amplitude, 0 Vdc offset voltage, and 0° start phase); select external
modulation source; set the hop frequency to 2 kHz and the polarity to Positive.
Method
1. *IDN?
/*Queries the ID string of the signal generator to test whether
the remote communication works normally.*/
2. :SOUR1:APPL:SIN 1000,5,0,0
/*Sets the waveform of CH1 to Sine with 1kHz frequency, 5
Vpp amplitude, 0V
dc
offset, and 0° start phase.*/
3. :SOUR1:FSK:STAT ON
/*Enables the FSK modulation function of CH1.*/
4. :SOUR1:FSK:SOUR EXT
/*Sets the FSK modulation source of CH1 to external
modulation source.*/
5. :SOUR1:FSK 2000
/*Sets the FSK hop frequency of CH1 to 2 kHz.*/
6. :SOUR1:FSK:POL POS
/*Sets the FSK modulation polarity of CH1 to Positive.*/
7. :OUTP1 ON
/*Enables the output of CH1.*/
To Output Sweep Waveform
Requirement
Use the SCPI commands to realize the following functions:
Output sweep waveform from the front-panel output connector of CH1; set the sweep waveform to Sine (5
Vpp amplitude and 0 Vdc offset voltage), the sweep type to Linear, the sweep time to 3 s, the return time to
0.1 s, the start frequency to 100 Hz and the stop frequency to 1 kHz; enable the frequency mark function
and set the marker frequency to 500 Hz, the start hold to 0.1 s, the stop hold to 0.1 s, the trigger source to
manual and the edge type of the trigger output signal to rising edge.
Method
1.
*IDN?
/*Queries the ID string of the signal generator to test whether
the remote communication works normally.*/
2.
:SOUR1:FUNC SIN
/*Sets the waveform of CH1 to Sine.*/
3.
:SOUR1:VOLT 5
/*Sets the waveform amplitude of CH1 to 5 Vpp.*/
4.
:SOUR1:VOLT:OFFS 0
/*Sets the offset voltage of CH1 to 0V
dc
.*/
5.
:SOUR1:SWE:STAT ON
/*Enables the sweep function of CH1.*/
6.
:SOUR1:SWE:SPAC LIN
/*Sets the sweep type of CH1 to Linear.*/
7.
:SOUR1:SWE:TIME 3
/*Sets the sweep time of CH1 to 3 s.*/
8.
:SOUR1:SWE:RTIM 0.1
/*Sets the return time of the sweep function of CH1 to 0.1 s.*/
9.
:SOUR1:FREQ:STAR 100
/*Sets the start frequency of the sweep function of CH1 to 100
Hz.*/
10. :SOUR1:FREQ:STOP 1000
/*Sets the stop frequency of the sweep function of CH1 to 1
kHz.*/
11. :SOUR1:MARK ON
/*Enables the frequency mark function of CH1.*/
12. :SOUR1:MARK:FREQ 500
/*Sets the stop frequency of the sweep function of CH1 to 500
Hz.*/
13. :SOUR1:SWE:HTIM:STAR 0.1
/*Sets the start hold time of the sweep function of CH1 to 0.1
s.*/
14. :SOUR1:SWE:HTIM 0.1
/*Sets the stop hold time of the sweep function of CH1 to 0.1 s.*/
15. :SOUR1:SWE:TRIG:SOUR MAN
/*Sets the sweep trigger source of CH1 to Manual.*/
16. :SOUR1:SWE:TRIG:TRIGO POS /*Sets the edge type of the trigger output signal of CH1 to Rising
Summary of Contents for DG952
Page 2: ......
Page 168: ......
Page 181: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 7 ...
Page 185: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 11 ...
Page 187: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 13 ...
Page 199: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 25 ...
Page 200: ......