
4
Application Examples
This chapter provides the application instances of the SCPI commands. The main
functions of the signal generator can be realized through a series of SCPI commands.
NOTE
•
The examples in this chapter are based on DSG5208. The range of certain parameters for
other models may be different. Therefore, you need to adjust the parameter range for the
model that you use if necessary.
•
Before using the examples in this chapter, please select the desired communication
interface (USB or LAN) and make correct connections. In addition, you have to install
Ultra Sigma or other PC software that can be used to send commands.
•
In each example, every command is followed by contents enclosed by two slashes ("/*"
and "*/"). They are the descriptions of the command and not part of the command, which
help you understand the command better.
4.1
To Output the RF Signal
Requirement
Use the SCPI commands to realize the following functions:
Output the RF signal with 1 GHz frequency and -20 dBm amplitude from the [RF
50Ω] connector of CH2.
Method
*IDN? /*Queries the ID string of the instrument to check whether
the remote communication works normally.*/
:SYST:PRES:TYPE FAC /*Sets the preset type to "Factory".*/
:SYST:PRES /*Restores the instrument to the factory setting.*/
:RF2:FREQ 1GHz /*Sets the frequency of the RF signal of CH2 to 1
GHz.*/
:RF2:LEV -20 /*Sets the amplitude of the RF signal of CH2 to -20
dBm.*/
:RF2:OUTPut ON /*Enables the RF output for CH2.*/
4.2
To Output the RF Sweep Signal
Requirement
Use the SCPI commands to realize the following functions:
Configure a continuous linear step sweep to output the RF sweep signal from the [RF
50Ω] connector of CH2 to make its frequency stay within a range from 1 GHz to 2
GHz, amplitude from -20 dBm to 0 dBm, the number of sweep points 10, and the
dwell time 500 ms.
Application Examples
Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
115