Instructions
RIGOL  Chapter 3 Application Examples 
3-2  DSG800 Programming Guide 
To Output RF signal 
Requirement 
Use the SCPI commands to realize the following functions: 
Output a RF signal with 1GHz frequency and -20dBm amplitude from the [RF OUTPUT 50Ω] connector. 
Method 
1. 
*IDN? 
/*Query the ID string of the RF signal generator to check whether 
the remote communication is normal*/ 
2. 
:SYST:PRES:TYPE FAC 
/*Set the preset type to "Factory"*/ 
3. 
:SYST:PRES 
/*Restore the instrument to the factory setting*/ 
4. 
:FREQ 1GHz 
/*Set the RF signal frequency to 1GHz*/ 
5. 
:LEV -20 
/*Set the RF signal amplitude to -20dBm*/ 
6. 
:OUTP ON 
/*Turn on the RF output*/ 
To Output RF Sweep Signal 
Requirement 
Use the SCPI commands to realize the following functions: 
Output a RF sweep signal from the [RF OUTPUT 50Ω] connector by configuring continuous linear step 
sweep. Set the frequency range to 1GHz to 2GHz, the amplitude range to -20dBm to 0dBm, the number of 
sweep points to 10 and the dwell time to 500ms. 
Method 
1. 
*IDN? 
/*Query the ID string of the RF signal generator to check whether 
the remote communication is normal*/ 
2. 
:SYST:PRES:TYPE FAC 
/*Set the preset type to "Factory"*/ 
3. 
:SYST:PRES 
/*Restore the instrument to the factory setting (by default, the 
sweep mode is continuous, the sweep type is step and the 
sweep spacing is linear)*/ 
4. 
:SWE:STEP:STAR:FREQ 1GHz 
/*Set the start frequency of step sweep to 1GHz*/ 
5. 
:SWE:STEP:STOP:FREQ 2GHz 
/*Set the stop frequency of step sweep to 2GHz*/ 
6. 
:SWE:STEP:STAR:LEV -20 
/*Set the start level of step sweep to -20dBm*/ 
7. 
:SWE:STEP:STOP:LEV 0 
/*Set the stop level of step sweep to 0dBm*/ 
8. 
:SWE:STEP:POIN 10 
/*Set the number of step sweep points to 10*/ 
9. 
:SWE:STEP:DWEL 500ms 
/*Set the dwell time of step sweep to 500ms*/ 
10. 
:SWE:STAT LEV,FREQ 
/*Turn on the frequency and level sweep functions at the same 
time*/ 
11. 
:OUTP ON 
/*Turn on the RF output*/ 










