SCPI for the Radio Frequency Generator
The eLABin1 Radio Frequency Generator (RFG) can be remotely controlled by SCPI commands. Below are the SCPI commands for each of the subsystems of the RFG listed in tables. |
![]() |
Communication with the Radio Frequency Generator
| Command | Description | ||
|---|---|---|---|
RFG |
Switches to the RFG from the main screen or from another instrument | ||
Common commands
The following Common Commands apply to the entire configuration of the Radio Frequency Generator only when the Radio Frequency Generator is the instrument in foreground. As Common Commands are based in the current context, they apply to the current instrument, when the current view is the main screen. Commands apply for the entire configuration of the eLABin1.
| Command | Description | ||
|---|---|---|---|
RFG:*IDN? |
Returns the SCPI identification string of the of the Radio Frequency Generator. | ||
RFG:*RST |
Resets the Radio Frequency Generator. | ||
RFG:*SAV {A|B|C|D} |
Saves the Radio Frequency Generator state on the selected memory slot. | ||
RFG:*WAI |
The Wait-to-Continue (WAI) command causes the Radio Frequency Generator to wait until all pending commands are completed, before executing any other commands. | ||
Frequency Subsystem Commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:FREQuency:ContinuousWaveform <number>{Hz|KHz|MHz|GHz} |
RFG:C1:FREQ:CW 500MHZ |
RFG:C1:FREQ:CW 700MHZ |
Sets the frequency of a CW signal (RF range) |
RFG:Channel{1|2}:FREQuency:RF:STARt <number>{Hz|KHz|MHz|GHz} |
RFG:C1:FREQ:RF:STAR 600MHZ |
RFG:C1:FREQ:RF:STAR 800MHZ |
Sets the start frequency in an RF frequency sweep. |
RFG:Channel{1|2}:FREQuency:RF:STOP <number>{Hz|KHz|MHz|GHz} |
RFG:C1:FREQ:STOP 1MHZ |
RFG:C1:FREQ:STOP 3MHZ |
Sets the stop frequency in an RF frequency sweep. |
RFG:Channel{1|2}:FREQuency:LF:STARt <number>{Hz|KHz|MHz|GHz} |
RFG:C1:FREQ:LF:STAR 600HZ |
RFG:C1:FREQ:LF:STAR 300HZ |
Sets the start frequency in a LF frequency sweep. |
RFG:Channel{1|2}:FREQuency:LF:STOP <number>{Hz|KHz|MHz|GHz} |
RFG:C1:FREQ:LF:STOP 500HZ |
RFG:C1:FREQ:LF:STOP 400HZ |
Sets the stop frequency in an LF frequency sweep. |
Amplitude Subsystem Commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:AMPlitude:ContinuousWaveform <number>{dBm} |
RFG:C1:AMP:CW 10dBm |
RFG:C1:AMP:CW 15dBm |
Sets the Amplitude of a CW signal. |
RFG:Channel{1|2}:AMPlitude:STARt <number>{dBm} |
RFG:C1:AMP:STAR -5dBm |
RFG:C1:AMP:STAR 3dBM |
Sets the start amplitude in an amplitude sweep. |
RFG:Channel{1|2}:AMPlitude:STOP <number>{dBm} |
RFG:C1:AMP:STOP 10dBm |
RFG:C2:AMP:STOP -30dBM |
Sets the stop amplitude in an amplitude sweep. |
Trigger Subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:TRIGger {IMM|SSWP} |
RFG:C2:TRIG IMM |
RFG:C2:TRIG SSWP |
Activates an armed sweep. Initiates a single RF/LF/Amplitude sweep. |
Sweep Subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:SWEep:RF:STATe {ON|OFF} |
RFG:C2:SWE:RF:STAT ON |
RFG:C2:SWE:RF:STAT OFF |
Initiates the sweep mode (RF) according to the sweep trigger or point trigger settings |
RFG:Channel{1|2}:SWEep:LF:STATe {ON|OFF} |
RFG:C2:SWE:LF:STAT ON |
RFG:C2:SWE:LF:STAT OFF |
Initiates the sweep mode (LF) according to the sweep trigger or point trigger settings. |
RFG:Channel{1|2}:SWEep:AMPlitude:STATe {ON|OFF} |
RFG:C2:SWE:AMP:STAT ON |
RFG:C1:SWE:AMP:STAT OFF |
Initiates the sweep mode (Amplitude) according to the sweep trigger or point trigger settings. |
RFG:Channel{1|2}:SWEep:RF:STARt <number>{Hz|KHz|MHz|GHz} |
RFG:C2:SWE:RF:STAR 200MHZ |
RFG:C1:SWE:RF:STAR 600MHZ |
Sets the Start Frequency in an RF Sweep. |
RFG:Channel{1|2}:SWEep:RF:STOP <number>{Hz|KHz|MHz|GHz} |
RFG:C2:SWE:RF:STOP 400MHZ |
RFG:C1:SWE:RF:STOP 800MHZ |
Sets the Stop Frequency in a RF Sweep. |
RFG:Channel{1|2}:SWEep:LF:STARt <number>{Hz|KHz|MHz|GHz} |
RFG:C2:SWE:LF:STARt 100HZ |
RFG:C1:SWE:LF:STAR 80HZ |
Sets the Start Frequency in a LF Sweep. |
RFG:Channel{1|2}:SWEep:LF:STOP <number>{Hz|KHz|MHz|GHz} |
RFG:C2:SWE:LF:STOP 200HZ |
RFG:C1:SWE:LF:STOP 90HZ |
Sets the Stop Frequency in a LF Sweep. |
RFG:Channel{1|2}:SWEep:AMPlitude:STARt <number>{dBm} |
RFG:C2:SWE:AMP:STAR 2dBm |
RFG:C1:SWE:AMP:STAR 4dBm |
Sets the Start Amplitude in an Amplitude Sweep. |
RFG:Channel{1|2}:SWEep:AMPlitude:STOP <number>{dBm} |
RFG:C2:SWE:AMP:STOP 3dBm |
RFG:C1:SWE:AMP:STOP 8dBm |
Sets the Stop Amplitude in an Amplitude Sweep. |
RFG:Channel{1|2}:SWEep:STEP:DWEL <number>{s|ms|us|ns} |
RFG:C2:SWE:STEP:DWEL 500mS |
RFG:C1:SWE:STEP:DWEL 200mS |
Sets de Dwell point for each point in a sweep. |
RFG:Channel{1|2}:SWEep:STEP:POINt <number>{PTS} |
RFG:C2:SWE:STEP:POIN 500 |
RFG:C1:SWE:STEP:POIN 200 |
Defines the number of points in a step sweep. |
RFG:Channel{1|2}:SWEep:DIRection {UP|DOWN} |
RFG:C2:SWE:DIR UP |
RFG:C1:SWE:DIR DOWN |
Sets the Sweep direction of LF/RF or amplitude sweep (start to stop or stop to start). |
RFG:Channel{1|2}:SWEep:REPeat {SINGLE|CONT} |
RFG:C2:SWE:REP SINGLE |
RFG:C1:SWE:REP CONT |
Toggles the sweep repeat between single and continuous. |
PM subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:PM:STATe {ON|OFF} |
RFG:C1:PM:STAT ON |
RFG:C2:PM:STAT OFF |
Toggles the PM state between ON/OFF. |
RFG:Channel{1|2}:PM:DEViation <number>{Hz|KHz|MHz|GHz} |
RFG:C1:PM:DEV 5KHZ |
RFG:C2:PM:DEV 10KHZ |
Sets the PM deviation. |
RFG:Channel{1|2}:PM:RATE <number>{Hz|KHz|MHz|GHz} |
RFG:C1:PM:RATE 200KHZ |
RFG:C2:PM:RATE 100KHZ |
Sets the frequency of the internal FM source. |
FM subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:FM:STATe {ON|OFF} |
RFG:C1:FM:STAT ON |
RFG:C2:FM:STAT OFF |
Toggles the FM state between ON or OFF. |
RFG:Channel{1|2}:FM:DEViation <number>{Hz|KHz|MHz|GHz} |
RFG:C1:FM:DEV 20KHZ |
RFG:C2:FM:DEV 10KHZ |
Sets the FM deviation. |
RFG:Channel{1|2}:FM:RATE <number>{Hz|KHz|MHz|GHz} |
RFG:C1:FM:RATE 300KHZ |
RFG:C2:FM:RATE 800KHZ |
Sets the frequency of the internal FM source. |
RFG:Channel{1|2}:FM:SOURce {INT|EXT} |
RFG:C1:FM:SOUR INT |
RFG:C2:FM:SOUR EXT |
Sets the FM source to: Internal, external or combined. |
RFG:Channel{1|2}:FM:EXTernalCoupling {AC|DC} |
RFG:C1:FM:EXTC AC |
RFG:C2:FM:EXTC DC |
Sets the coupling for the external FM source. |
AM subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:AM:STATe {ON|OFF} |
RFG:C1:AM:STAT ON |
RFG:C2:AM:STAT OFF |
Toggles the AM state between ON or OFF. |
RFG:Channel{1|2}:AM:DEPTh <number>{%} |
RFG:C1:AM:DEPT 30 |
RFG:C2:AM:DEPT 10 |
Sets the Amplitude Modulation Depth. |
RFG:Channel{1|2}:AM:RATE <number>{Hz|KHz|MHz|GHz} |
RFG:C1:AM:RATE 100KHZ |
RFG:C2:AM:RATE 400KHZ |
Sets the frequency of the internal AM source. |
RFG:Channel{1|2}:AM:SOURce {INT|EXT} |
RFG:C1:AM:SOUR INT |
RFG:C2:AM:SOUR EXT |
Sets the AM source to: Internal, external or combined. |
RFG:Channel{1|2}:AM:EXTernalCoupling {AC|DC} |
RFG:C1:AM:EXTC AC |
RFG:C2:AM:EXTC DC |
Sets the coupling for the external AM source. |
Pulse Modulation subsystem commandss
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:PULseModulation:STATe {ON|OFF} |
RFG:C1:PULM:STAT ON |
RFG:C2:PULM:STAT OFF |
Toggles the Pulse Modulation state between ON/OFF. |
RFG:Channel{1|2}: PULseModulation:PeRioD <number>{s|ms|us|ns} |
RFG:C1:PULM:PRD 100mS |
RFG:C2:PULM:PRD 300mS |
Sets the pulse period of the pulse modulation signal generated. |
RFG:Channel{1|2}:PULseModulation:SOURce {INT|EXT} |
RFG:C1: PULM:SOUR INT |
RFG:C2:PULM:SOUR EXT |
Sets the Pulse Modulation source to: Internal, external or combined. |
RFG:Channel{1|2}:PULseModulation:WIDTh <number>{s|ms|us|ns} |
RFG:C1:PULM:WIDT 200mS |
RFG::C2PULM:WIDT 400mS |
Sets the pulse width of the pulse modulation signal generated. |
I/Q Modulation subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:IQ:STATe {ON|OFF} |
RFG:C1:IQ:STAT ON |
RFG:C2:IQ:STAT OFF |
Toggles the externally generated I/Q modulation state between ON/OFF. |
Modulation subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:MOD:STATe {ON|OFF} |
RFG:C1:MOD:STAT ON |
RFG:C2:MOD:STAT OFF |
Enables/disables the modulator. |
LF Output subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:Channel{1|2}:LFOutput:STATe {ON|OFF} |
RFG:C1:LFO:STAT ON |
RFG:C2:LFO:STAT OFF |
Enables or disable the LF output. |
RFG:Channel{1|2}:LFOutput:FREQuency <number>{Hz|KHz|MHz|GHz} |
RFG:C1:LFO:FREQ 200HZ |
RFG:C2:LFO:FREQ 80HZ |
Sets the LF output frequency. |
RFG:Channel{1|2}:LFOutput:AMPlitude <number>{V|mV|uV} |
RFG:C1:LFO:AMP 100mV |
RFG:C2:LFO:AMP 80mV |
Sets the LF output amplitude. |
System subsystem commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:SYSTem:REF:FREQuency:{INT|EXT} <number>{Hz|KHz|MHz|GHz} |
RFG:SYST:REF:FREQ INT10MHZ |
RFG:SYST:REF:FREQ EXT50MHZ |
Sets the reference oscillator to: INT 10MHZ, INT 50MHZ,EXT 10MHZ OR EXT 50MHZ. |
Other Control commands
| Command | Example 1 | Example 2 | Description |
|---|---|---|---|
RFG:LOAD:STATe {A|B|C|D} |
RFG:LOAD:STAT D |
RFG:LOAD:STAT A |
Loads the storaged data on the specified memory state. |
RFG Query Commands
| Command | Example | Return | Description |
|---|---|---|---|
RFG:FREQuency:ContinuousWaveform? |
RFG:FREQ:CW? |
RFG:FREQ:CW 700MHZ |
Asks for the Frequency of a CW signal. |
RFG:FREQuency:RF:STARt? |
RFG:FREQ:RF:STAR? |
RFG:FREQ:RF:STAR 800MHZ |
Asks for the Start Frequency in a RF Frequency sweep. |
RFG:FREQuency:RF:STOP? |
RFG:FREQ:RF:STOP? |
RFG:FREQ:RF:STOP 3MHZ |
Asks for the Stop Frequency in a RF Frequency sweep. |
RFG:FREQuency:LF:STARt? |
RFG:FREQ:LF:STAR? |
RFG:FREQ:LF:STAR 300HZ |
Asks for the Start Frequency in a LF Frequency sweep. |
RFG:FREQuency:LF:STOP? |
RFG:FREQ:LF:STOP? |
RFG:FREQ:LF:STOP 400HZ |
Asks for the Stop Frequency in a LF Frequency sweep. |
RFG:AMPlitude:ContinuousWaveform? |
RFG:AMP:CW? |
RFG:AMP:CW 15DBm |
Asks for the Amplitude of a CW signal. |
RFG:AMPlitude:STOP? |
RFG:AMP:STOP? |
RFG:AMP:STOP -30DBM |
Asks for the Stop Amplitude in an Amplitude sweep. |
RFG:SWEep:RF:STATe? |
RFG:SWE:RF:STAT? |
RFG:SWE:RF:STAT OFF |
Asks for the Sweep mode (RF) state. |
RFG:SWEep:LF:STATe? |
RFG:SWE:LF:STAT? |
RFG:SWE:LF:STAT ON |
Asks for the Sweep mode (LF) state. |
RFG:SWEep:AMPlitude:STATe? |
RFG:SWE:AMP:STAT? |
RFG:SWE:AMP:STAT OFF |
Asks for the Sweep mode (Amplitude) state. |
RFG:SWEep:RF:STARt? |
RFG:SWE:RF:STAR? |
RFG:SWE:RF:STAR 600MHZ |
Asks for the start Frequency in a RF sweep. |
RFG:SWEep:RF:STOP? |
RFG:SWE:RF:STOP? |
RFG:SWE:RF:STOP 400MHZ |
Asks for the stop Frequency in a RF sweep. |
RFG:SWEep:LF:STARt? |
RFG:SWE:LF:STAR? |
RFG:SWE:LF:STAR 80HZ |
Asks for the start Frequency in a LF sweep. |
RFG:SWEep:LF:STOP? |
RFG:SWE:LF:STOP? |
RFG:SWE:LF:STOP 90HZ |
Asks for the stop Frequency in a LF sweep. |
RFG:SWEep:AMPlitude:STARt? |
RFG:SWE:AMP:STAR? |
RFG:SWE:AMP:STAR 4DBm |
Asks for the Start Amplitude in an Amplitude sweep. |
RFG:SWEep:AMPlitude:STOP? |
RFG:SWE:AMP:STOP? |
RFG:SWE:AMP:STOP 8DBm |
Asks for the Stop Amplitude in an Amplitude sweep. |
RFG:SWEep:STEP:POINt? |
RFG:SWE:STEP:POIN? |
RFG:SWE:STEP:POIN 500 |
Asks for the number of points defined in a step sweeps. |
RFG:SWEep:STEP:DWEL? |
RFG:SWE:STEP:DWEL? |
RFG:SWE:STEP:DWEL 200mS |
Asks for the Dwell step value in a sweep. |
RFG:SWEep:REPeat? |
RFG:SWE:REP? |
RFG:SWE:REP CONT |
Asks for the configured sweep repeat mode. |
RFG:SWEep:DIRection? |
RFG:SWE:DIR? |
RFG:SWE:DIR UP |
Asks for the Sweep direction of LF/RF or amplitude sweep. |
RFG:AM:STATe? |
RFG:AM:STAT? |
RFG:AM:STAT OFF |
Asks for the AM state. |
RFG:AM:DEPTh? |
RFG:AM:DEPT? |
RFG:AM:DEPT 30 |
Asks for the Amplitude Modulation Depth value. |
RFG:AM:RATE? |
RFG:AM:RATE? |
RFG:AM:RATE 100KHZ |
Asks for the Frequency of the internal AM source. |
RFG:AM:SOURce? |
RFG:AM:SOUR? |
RFG:AM:SOUR INT |
Asks for the AM source value. |
RFG:AM:EXTernalCoupling? |
RFG:AM:EXTC? |
RFG:AM:EXTC AC |
Asks for the external coupling value in AM modulation mode. |
RFG:FM:STATe? |
RFG:FM:STATe? |
RFG:FM:STAT OFF |
Asks for the FM state. |
RFG:FM:DEViation? |
RFG:FM:DEV? |
RFG:FM:DEV 10KHZ |
Asks for the FM Deviation value. |
RFG:FM:RATE? |
RFG:FM:RATE? |
RFG:FM:RATE 300KHZ |
Asks for the Frequency of the internal FM source. |
RFG:FM:SOURce? |
RFG:FM:SOUR? |
RFG:FM:SOUR INT |
Asks for the FM source value. |
RFG:FM:EXTernalCoupling? |
RFG:FM:EXTC? |
RFG:FM:EXTC DC |
Asks for the external coupling value in FM modulation mode. |
RFG:PM:STATe? |
RFG:PM:STAT? |
RFG:PM:STAT OFF |
Asks for the PM state. |
RFG:PM:DEViation? |
RFG:PM:DEV? |
RFG:PM:DEV 5KHZ |
Asks for the PM Deviation value. |
RFG:PM:RATE? |
RFG:PM:RATE? |
RFG:PM:RATE 200KHZ |
Asks for the Frequency of the internal PM source. |
RFG:PULseModulation:STATe? |
RFG:PULM:STAT? |
RFG:PULM:STAT ON |
Asks for the Pulse Modulation state. |
RFG:PULseModulation:PeRioD? |
RFG:PULM:PRD? |
RFG:PULM:PRD 300mS |
Asks for the Pulse period in Pulse modulation mode. |
RFG:PULseModulation:SOURce? |
RFG:PULM:SOUR? |
RFG:PULM:SOUR EXT |
Asks for the Pulse Modulation source value. |
RFG:PULseModulation:WIDTh? |
RFG:PULM:WIDT? |
RFG:PULM:WIDT 400mS |
Asks for the Pulse width in Pulse modulation mode. |
RFG:IQ:STATe? |
RFG:IQ:STAT? |
RFG:IQ:STAT OFF |
Asks for the externally generated I/Q modulation state. |
RFG:MOD:STATe? |
RFG:MOD:STAT? |
RFG:MOD:STAT ON |
Asks for the Modulator state. |
RFG:LFO:STATe? |
RFG:LFO:STAT? |
RFG:LFO:STAT ON |
Asks for the LF Output state. |
RFG:LFO:FREQuency? |
RFG:LFO:FREQ? |
RFG:LFO:FREQ 200Hz |
Asks for the LF Output Frequency value. |
RFG:LFO:AMPlitude? |
RFG:LFO:AMP? |
RFG:LFO:AMP 80mV |
Asks for the LF Output Amplitude value. |
RFG:SYSTem:REF:FREQuency? |
RFG:SYST:REF:FREQ? |
RFG:SYST:REF:FREQ EXT50MHZ |
Asks for the reference oscillator value. |
Preset Values
| Variable | Value | |
|---|---|---|
| Channel 1 | Channel 2 | |
| Channel State | ON | ON |
| Frequency | 600 MHz | 600 MHz |
| Amplitude | 90 dBµV | 90 dBµV |
| Modulation | DC | DC |


