Phase Noise Analyzer · SCPI command reference

Rohde & Schwarz FSWP, FSWP26, FSWP50, and FSWP8 SCPI commands

The Rohde & Schwarz FSWP, FSWP26, FSWP50, and FSWP8 phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 213 commands for it, 48 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the FSWP on a real bench.

Commands
213
Queries
48
Subsystems
20
Models covered
4

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz FSWP, FSWP26, FSWP50, or FSWP8 and writes the report from the measured results.

Get started

Control the Rohde & Schwarz FSWP from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Rohde & Schwarz FSWP's VISA address

# Paste the address of your Rohde & Schwarz FSWP (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write("CONFigure:VCO:MEASurement:STATe ON")  # VCO Measurement On
print(inst.query("FETCh:PNOise1:SPURs?"))  # Measure Spurs

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz FSWP, FSWP26, FSWP50, or FSWP8 and writes the report from the measured results.

Get started

Run a FSWP test without writing code

Describe the test in a sentence, for example “vco measurement on on the FSWP, then measure spurs and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

213 commands in 20 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The FSWP, FSWP26, FSWP50, and FSWP8 share this command set in TestFlow's library.

Sense (SENSe) (46)

CommandWhat it doesArguments
SENSe:SWEep:COUNt <Count>Set Average Count. Sets the number of measurements used to average traces (0 to 200000; 0 or 1 = single measurement).Number: 0,200000
SENSe:SWEep:TIME?Read Measurement Time. Returns the estimated measurement time in s.None
SENSe:SWEep:TIME:REMaining?Read Remaining Time. Returns the remaining measurement time in s.None
SENSe:SWEep:FSEGmentSkip Half Decade. Stops the measurement in the current half decade and resumes with the next half decade.None
SENSe:SWEep:FORWard ONSweep Forward On. Turns forward sweep direction (OFF = reverse direction) on.None
SENSe:SWEep:FORWard OFFSweep Forward Off. Turns forward sweep direction (OFF = reverse direction) off.None
SENSe:FREQuency:STARt <Frequency>Set Start Offset. Sets the start frequency offset of the measurement range in Hz (half decade steps; *RST 1 kHz).Number
SENSe:FREQuency:STOP <Frequency>Set Stop Offset. Sets the stop frequency offset of the measurement range in Hz (half decade steps; *RST 1 MHz).Number
SENSe:FREQuency:STARt?Read Start Offset. Returns the start frequency offset of the measurement range in Hz.None
SENSe:FREQuency:STOP?Read Stop Offset. Returns the stop frequency offset of the measurement range in Hz.None
SENSe:FREQuency:CENTer <Frequency>Set Carrier Frequency. Sets the signal (carrier) frequency in Hz when automatic frequency search is off.Number
SENSe:FREQuency:CENTer?Read Carrier Frequency. Returns the current signal (carrier) frequency in Hz.None
SENSe:ADJust:CONFigure:FREQuency:AUTosearch:STATe ONAuto Frequency Search On. Turns the automatic carrier frequency search on.None
SENSe:ADJust:CONFigure:FREQuency:AUTosearch:STATe OFFAuto Frequency Search Off. Turns the automatic carrier frequency search off.None
SENSe:ADJust:CONFigure:FREQuency:COUNt ONFrequency Verify On. Turns the frequency counter that verifies the manually entered carrier frequency on.None
SENSe:ADJust:CONFigure:FREQuency:COUNt OFFFrequency Verify Off. Turns the frequency counter that verifies the manually entered carrier frequency off.None
SENSe:ADJust:CONFigure:FREQuency:LIMit:LOW <Frequency>Set Search Freq Low. Sets the lower limit of the automatic frequency search range in Hz (*RST 1 MHz).Number
SENSe:ADJust:CONFigure:FREQuency:LIMit:HIGH <Frequency>Set Search Freq High. Sets the upper limit of the automatic frequency search range in Hz (*RST 8 GHz).Number
SENSe:ADJust:CONFigure:LEVel:THReshold <Level>Set Search Threshold. Sets the level threshold of the automatic signal search in dBm.Number
SENSe:SWEep:CAPTure:RANGe <Range>Set Capture Range. Selects the signal capture range for drifting DUTs.Text: NORMal,WIDE,R40Mhz
SENSe:FILTer:LPASs:STATe ONLow Pass Filter On. Turns the low pass filter for measurements on small carrier frequencies on.None
SENSe:FILTer:LPASs:STATe OFFLow Pass Filter Off. Turns the low pass filter for measurements on small carrier frequencies off.None
SENSe:FILTer:LPASs:FREQuency:MANual <Frequency>Set Low Pass Cutoff. Sets the cutoff frequency of the low pass filter in Hz (*RST 1 MHz).Number
SENSe:POWer:RLEVel:MODE <Mode>Set Level Mode. Selects the level measurement mode.Text: AUTO,HIGH,LOW
SENSe:POWer:RLEVel:MODE:USED?Read Level Mode Used. Returns the level setting actually used by the measurement (LOW or HIGH).None
SENSe:POWer:RLEVel?Measure Signal Level. Returns the currently measured signal level in dBm.None
SENSe:POWer:RLEVel:OFFSet <Offset>Set Level Offset. Sets an arithmetic level offset in dB to account for external attenuation or gain (-100 to 200).Number: -100,200
SENSe:SWEep:MODE <Mode>Set Half Decade Mode. Selects the half decade configuration mode (NORMal = automatic; MANual; FAST = XCORR 1; AVERaged = XCORR 10).Text: NORMal,MANual,FAST,AVERaged
SENSe:LIST:BWIDth:RESolution:RATio <Percentage>Set RBW Ratio. Sets the RBW factor in percent applied to each half decade (0.1 to 30; *RST 10).Number: 0.1,30
SENSe:LIST:RANGe<HalfDecade>:BWIDth:RESolution <Bandwidth>Set Half Decade RBW. Sets the RBW in Hz for one half decade (manual half decade mode).Number; Number
SENSe:LIST:RANGe<HalfDecade>:BWIDth:RESolution?Read Half Decade RBW. Returns the RBW in Hz applied to the given half decade.Number
SENSe:LIST:RANGe<HalfDecade>:XCOunt <Count>Set Half Decade XCorr. Sets the number of cross-correlation operations for one half decade (manual half decade mode).Number; Number
SENSe:LIST:RANGe<HalfDecade>:XCOunt:MEASured?Read Half Decade XCorr Measured. Returns the number of cross-correlation operations actually measured in the given half decade.Number
SENSe:LIST:RANGe<HalfDecade>:FREQuency:STARt?Read Half Decade Start. Returns the start frequency offset in Hz of the given half decade.Number
SENSe:LIST:RANGe<HalfDecade>:FREQuency:STOP?Read Half Decade Stop. Returns the stop frequency offset in Hz of the given half decade.Number
SENSe:LIST:BWIDth:RESolution:USMall ONUltra Small RBW On. Turns ultra-small resolution bandwidths on.None
SENSe:LIST:BWIDth:RESolution:USMall OFFUltra Small RBW Off. Turns ultra-small resolution bandwidths off.None
SENSe:SWEep:XFACtor <Factor>Set XCorr Factor. Sets the cross-correlation (XCORR) factor that defines the operations in each half decade (min 1).Number
SENSe:SWEep:XOPTimize:STATe ONXCorr Optimization On. Turns cross-correlation optimization on.None
SENSe:SWEep:XOPTimize:STATe OFFXCorr Optimization Off. Turns cross-correlation optimization off.None
SENSe:SWEep:XOPTimize:THReshold <Threshold>Set XCorr Opt Threshold. Sets the cross-correlation optimization threshold in dB.Number
SENSe:SPURs:SORT <Order>Set Spur Sort. Selects the sort order of the spur list.Text: POWer,OFFSet
SENSe:SPURs:SENSibility <Sensitivity>Set Spur Sensitivity. Sets the sensitivity of spur detection (1.0 to 10.0; *RST 7.0).Number: 1,10
SENSe:SPURs:FILTer:MODE <Mode>Set Spur Filter Mode. Selects the spurious filter mode.Text: OFF,SUPPress,SHOW
SENSe:ROSCillator:SOURce <Source>Set Reference Source. Selects the reference oscillator source.Text: INTernal,EXTernal,E10,E100,E1000,EAUTo,SYNC
SENSe:ROSCillator:SOURce:EAUTo?Read Reference Used. Returns the reference currently used (INT or EXT) when auto switching is active.None

Calculate (CALCulate) (40)

CommandWhat it doesArguments
CALCulate:RANGe<Range>:EVALuation:STATe ONIntegrate Full Range On. Turns integration over the complete measurement range for residual calculations (OFF = custom range) on.Number
CALCulate:RANGe<Range>:EVALuation:STATe OFFIntegrate Full Range Off. Turns integration over the complete measurement range for residual calculations (OFF = custom range) off.Number
CALCulate:RANGe<Range>:EVALuation:STARt <Frequency>Set Integration Start. Sets the start offset frequency in Hz of a custom integration range.Number; Number
CALCulate:RANGe<Range>:EVALuation:STOP <Frequency>Set Integration Stop. Sets the stop offset frequency in Hz of a custom integration range.Number; Number
CALCulate:RANGe<Range>:EVALuation:TRACe <Trace>Set Integration Trace. Selects the trace used for residual calculation in an integration range (NONE turns it off).Number; Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6,NONE
CALCulate:RANGe<Range>:EVALuation:WEIGhting <Name>Set Integration Weighting. Applies a weighting filter (string name or NONE) to the residual calculation of an integration range.Number; Text
CALCulate:SNOise:DECades:STATe ONSpot Noise Decades On. Turns spot noise calculation at every 10x offset frequency on.None
CALCulate:SNOise:DECades:STATe OFFSpot Noise Decades Off. Turns spot noise calculation at every 10x offset frequency off.None
CALCulate:SNOise:DECades:X?Read Spot Noise Decades X. Returns the offset frequencies in Hz of the 10x spot noise positions.None
CALCulate:SNOise:DECades:Y?Read Spot Noise Decades Y. Returns the phase noise levels in dBc/Hz at the 10x spot noise positions.None
CALCulate:SNOise:USERdefined:STATe ONSpot Noise User On. Turns custom (user defined) spot noise positions on.None
CALCulate:SNOise:USERdefined:STATe OFFSpot Noise User Off. Turns custom (user defined) spot noise positions off.None
CALCulate:SNOise<Position>:STATe ONSpot Noise Position On. Turns a custom spot noise position on.Number
CALCulate:SNOise<Position>:STATe OFFSpot Noise Position Off. Turns a custom spot noise position off.Number
CALCulate:SNOise<Position>:X <Frequency>Set Spot Noise Offset. Sets the offset frequency in Hz of a custom spot noise position.Number; Number
CALCulate:SNOise<Position>:Y?Measure Spot Noise. Returns the phase noise level in dBc/Hz at a custom spot noise position.Number
CALCulate:SNOise:AOFFSpot Noise All Off. Turns all spot noise information and user defined spot noise markers off.None
CALCulate<Window>:MARKer<Marker>:STATe ONMarker On. Turns the marker on.Number; Number
CALCulate<Window>:MARKer<Marker>:STATe OFFMarker Off. Turns the marker off.Number; Number
CALCulate<Window>:MARKer:AOFFAll Markers Off. Turns off all markers in the window.Number
CALCulate<Window>:MARKer<Marker>:TRACe <Trace>Set Marker Trace. Selects the trace the marker is positioned on.Number; Number; Number: 1,2,3,4,5,6
CALCulate<Window>:MARKer<Marker>:X <Position>Set Marker Offset. Moves the marker to the given offset frequency in Hz.Number; Number; Number
CALCulate<Window>:MARKer<Marker>:X?Read Marker X. Returns the marker x position (offset frequency in Hz).Number; Number
CALCulate<Window>:MARKer<Marker>:Y?Read Marker Y. Returns the level at the marker position (e.g. dBc/Hz).Number; Number
CALCulate<Window>:MARKer<Marker>:MAXimum:PEAKMarker To Peak. Moves the marker to the highest level.Number; Number
CALCulate<Window>:MARKer<Marker>:MAXimum:NEXTMarker To Next Peak. Moves the marker to the next positive peak.Number; Number
CALCulate<Window>:MARKer<Marker>:MINimum:PEAKMarker To Minimum. Moves the marker to the minimum level.Number; Number
CALCulate<Window>:DELTamarker<Marker>:STATe ONDelta Marker On. Turns the delta marker on.Number; Number
CALCulate<Window>:DELTamarker<Marker>:STATe OFFDelta Marker Off. Turns the delta marker off.Number; Number
CALCulate<Window>:DELTamarker<Marker>:X <Position>Set Delta Marker Offset. Moves the delta marker to the given x position.Number; Number; Number
CALCulate<Window>:DELTamarker<Marker>:Y?Read Delta Marker Y. Returns the result at the delta marker position.Number; Number
CALCulate<Window>:LIMit<Limit>:NAME <Name>Select Limit Line. Selects an existing limit line or names a new one (string in single quotes).Number; Number; Text
CALCulate<Window>:LIMit<Limit>:TRACe<Trace>:CHECk ONLimit Check On. Turns the limit check of the limit line for the trace on.Number; Number; Number: 1,2,3,4,5,6
CALCulate<Window>:LIMit<Limit>:TRACe<Trace>:CHECk OFFLimit Check Off. Turns the limit check of the limit line for the trace off.Number; Number; Number: 1,2,3,4,5,6
CALCulate<Window>:LIMit<Limit>:UPPer:STATe ONUpper Limit On. Turns the upper limit line on.Number; Number
CALCulate<Window>:LIMit<Limit>:UPPer:STATe OFFUpper Limit Off. Turns the upper limit line off.Number; Number
CALCulate<Window>:LIMit<Limit>:LOWer:STATe ONLower Limit On. Turns the lower limit line on.Number; Number
CALCulate<Window>:LIMit<Limit>:LOWer:STATe OFFLower Limit Off. Turns the lower limit line off.Number; Number
CALCulate<Window>:LIMit<Limit>:FAIL?Read Limit Fail. Returns the limit check result: 0 = pass and 1 = fail.Number; Number
CALCulate<Window>:LIMit:CLEar:IMMediateClear Limit Result. Deletes the result of the current limit check.Number

Display (DISPlay) (27)

CommandWhat it doesArguments
DISPlay:XGINdicator:STATe ONXCorr Gain Indicator On. Turns the cross-correlation gain indicator (gray area) on.None
DISPlay:XGINdicator:STATe OFFXCorr Gain Indicator Off. Turns the cross-correlation gain indicator (gray area) off.None
DISPlay:SNINfo:STATe ONSpot Noise Info Display On. Turns the display of spot noise information in the diagram on.None
DISPlay:SNINfo:STATe OFFSpot Noise Info Display Off. Turns the display of spot noise information in the diagram off.None
DISPlay:SNINfo:TRACe <Trace>Set Spot Noise Trace. Selects the trace for which spot noise information is evaluated (1 to 6).Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:SPURs:SUPPress ONSpur Removal On. Turns spur removal for the trace on.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:SPURs:SUPPress OFFSpur Removal Off. Turns spur removal for the trace off.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:SPURs:THReshold <Threshold>Set Spur Threshold. Sets the level threshold in dB for spur removal on the trace.Number; Number: 1,2,3,4,5,6; Number
DISPlay:WINDow<Window>:TRACe<Trace>:MODE <Mode>Set Trace Mode. Selects the trace mode.Number; Number: 1,2,3,4,5,6; Text: WRITe,AVERage,MAXHold,MINHold,VIEW,BLANk,WRHold
DISPlay:WINDow<Window>:TRACe<Trace>:STATe ONTrace On. Turns the trace on.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:STATe OFFTrace Off. Turns the trace off.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:RESult:TYPE <Type>Set Trace Result Type. Selects the noise type shown by the trace (phase noise / AM noise / sum).Number; Number: 1,2,3,4,5,6; Text: PN,AM,PNAM
DISPlay:WINDow<Window>:TRACe<Trace>:SMOothing:STATe ONTrace Smoothing On. Turns trace smoothing on.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:SMOothing:STATe OFFTrace Smoothing Off. Turns trace smoothing off.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:SMOothing:APERture <Aperture>Set Smoothing Aperture. Sets the trace smoothing aperture in percent (1 to 20).Number; Number: 1,2,3,4,5,6; Number: 1,20
DISPlay:WINDow<Window>:TRACe<Trace>:Y:SCALe:RLEVel:OFFSet:STATe ONTrace Offset On. Turns the vertical trace offset on.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:Y:SCALe:RLEVel:OFFSet:STATe OFFTrace Offset Off. Turns the vertical trace offset off.Number; Number: 1,2,3,4,5,6
DISPlay:WINDow<Window>:TRACe<Trace>:Y:SCALe:RLEVel:OFFSet <Offset>Set Trace Offset. Sets the vertical trace offset in dB.Number; Number: 1,2,3,4,5,6; Number
DISPlay:WINDow<Window>:TRACe:Y:UNIT <Unit>Set Y Unit. Selects the y-axis unit.Number; Text: DB_hz,DBC,DBC_hz,DBM,DBM_hz,DBUV,DBUV_hz,NV,DBV,DBV_hz,HZ_Sqrt_hz,INV_Sqrt_hz,V,MA,V_Sqrt_hz
DISPlay:WINDow<Window>:TRACe:Y:SCALe:AUTO ONY Auto Scale On. Turns automatic y-axis scaling on.Number
DISPlay:WINDow<Window>:TRACe:Y:SCALe:AUTO OFFY Auto Scale Off. Turns automatic y-axis scaling off.Number
DISPlay:WINDow<Window>:TRACe:Y:SCALe:AUTO ONCEY Auto Scale Once. Scales the y-axis once.Number
DISPlay:WINDow<Window>:TRACe:Y:SCALe <Range>Set Y Range. Sets the displayed y-axis range (auto scaling off).Number; Number
DISPlay:WINDow<Window>:TRACe:Y:SCALe:RLEVel <Level>Set Y Top. Sets the maximum level displayed on the y-axis (auto scaling off).Number; Number
DISPlay:WINDow<Window>:TRACe:Y:SCALe:RLEVel:LOWer <Level>Set Y Bottom. Sets the minimum level displayed on the y-axis (auto scaling off).Number; Number
DISPlay:WINDow<Window>:TRACe:X:SCALe:AUTO ONX Auto Scale On. Turns automatic x-axis scaling on.Number
DISPlay:WINDow<Window>:TRACe:X:SCALe:AUTO OFFX Auto Scale Off. Turns automatic x-axis scaling off.Number

Source (SOURce) (27)

CommandWhat it doesArguments
SOURce:VOLTage:STATe ONDC Outputs On. Turns the DC power sources in general on.None
SOURce:VOLTage:STATe OFFDC Outputs Off. Turns the DC power sources in general off.None
SOURce:VOLTage:POWer:LEVel:STATe ONVsupply On. Turns the supply voltage source (Vsupply) on.None
SOURce:VOLTage:POWer:LEVel:STATe OFFVsupply Off. Turns the supply voltage source (Vsupply) off.None
SOURce:VOLTage:POWer:LEVel:MODE <Mode>Set Vsupply Mode. Selects whether Vsupply is controlled in terms of voltage or current.Text: VOLTage,CURRent
SOURce:VOLTage:POWer:LEVel:AMPLitude <Value>Set Vsupply Level. Sets the Vsupply output in V (0 to 16) or A (0 to 2) depending on the mode.Number: 0,16
SOURce:CURRent:POWer:LIMit:HIGH <Current>Set Vsupply Current Limit. Sets the maximum Vsupply current in A (0 to 2).Number: 0,2
SOURce:VOLTage:CONTrol:LEVel:STATe ONVtune On. Turns the tuning voltage source (Vtune) on.None
SOURce:VOLTage:CONTrol:LEVel:STATe OFFVtune Off. Turns the tuning voltage source (Vtune) off.None
SOURce:VOLTage:CONTrol:LEVel:AMPLitude <Voltage>Set Vtune Voltage. Sets the Vtune output voltage in V (-10 to 28).Number: -10,28
SOURce:VOLTage:AUX:LEVel:STATe ONVaux On. Turns the auxiliary voltage source (Vaux) on.None
SOURce:VOLTage:AUX:LEVel:STATe OFFVaux Off. Turns the auxiliary voltage source (Vaux) off.None
SOURce:VOLTage:AUX:LEVel:AMPLitude <Voltage>Set Vaux Voltage. Sets the Vaux output voltage in V (-10 to 10).Number: -10,10
SOURce:VOLTage:SEQuence:RESult?Measure DC Voltages. Returns the measured voltages on the DC power sources.None
SOURce:CURRent:SEQuence:RESult?Measure DC Currents. Returns the measured currents on the DC power sources.None
SOURce:POWer:SEQuence:RESult?Measure DC Power. Returns the measured power (U*I) on the DC power sources.None
SOURce:GENerator:STATe ONSignal Source On. Turns the optional signal source output on.None
SOURce:GENerator:STATe OFFSignal Source Off. Turns the optional signal source output off.None
SOURce:GENerator:FREQuency <Frequency>Set Source Frequency. Sets the signal source frequency in Hz.Number
SOURce:GENerator:LEVel <Level>Set Source Level. Sets the signal source level in dBm.Number
SOURce:GENerator:MODulation ONSource Pulse Mod On. Turns internal pulse modulation of the signal source (OFF = sine output) on.None
SOURce:GENerator:MODulation OFFSource Pulse Mod Off. Turns internal pulse modulation of the signal source (OFF = sine output) off.None
SOURce:GENerator:PULSe:WIDTh <Width>Set Source Pulse Width. Sets the generated pulse width in s.Number
SOURce:GENerator:PULSe:PERiod <Period>Set Source Pulse Period. Sets the generated pulse period in s.Number
SOURce:GENerator:DUTBypass ONDUT Bypass On. Turns the DUT bypass (ON measures the noise of the FSWP itself) on.None
SOURce:GENerator:DUTBypass OFFDUT Bypass Off. Turns the DUT bypass (ON measures the noise of the FSWP itself) off.None
SOURce:TEMPerature:FRONtend?Read Frontend Temperature. Returns the frontend temperature in degrees Celsius.None

INP subsystem (11)

CommandWhat it doesArguments
INPut:ATTenuation <Attenuation>Set Attenuation. Sets the RF attenuation in dB in 5 dB steps (auto attenuation must be off).Number: 0,5,10,15,20,25,30
INPut:ATTenuation:AUTO ONAuto Attenuation On. Turns automatic attenuation on.None
INPut:ATTenuation:AUTO OFFAuto Attenuation Off. Turns automatic attenuation off.None
INPut:GAIN:STATe ONPreamplifier On. Turns the internal preamplifier (option) on.None
INPut:GAIN:STATe OFFPreamplifier Off. Turns the internal preamplifier (option) off.None
INPut:GAIN:VALue <Gain>Set Preamp Gain. Sets the preamplifier gain in dB (15 or 30 depending on model).Number: 15,30
INPut:COUPling <Coupling>Set Input Coupling. Selects AC or DC coupling of the RF input.Text: AC,DC
INPut:SELect <Source>Select Input. Selects the input connector (RF input or analog baseband).Text: RF,ABB
INPut:CONNector <Mode>Select Baseband Channel. Selects the baseband input channel for baseband noise measurements.Text: CH1,CH2,XCOR,ACCH1
INPut:LOSCillator:SOURce <Location>Select LO Source. Selects internal or external local oscillator (additive noise measurements).Text: INTernal,EXTernal
INPut:ATTenuation:PROTection:RESetReset Input Protection. Reconnects the RF input after an overload condition has been removed.None

Fetch (FETCh) (11)

CommandWhat it doesArguments
FETCh:RANGe<Range>:PNOise<Trace>:IPN?Measure Integrated Phase Noise. Returns the integrated phase noise in dBc for the integration range and trace.Number; Number: 1,2,3,4,5,6
FETCh:RANGe<Range>:PNOise<Trace>:RPM?Measure Residual PM. Returns the residual PM in degrees for the integration range and trace.Number; Number: 1,2,3,4,5,6
FETCh:RANGe<Range>:PNOise<Trace>:RFM?Measure Residual FM. Returns the residual FM in Hz for the integration range and trace.Number; Number: 1,2,3,4,5,6
FETCh:RANGe<Range>:PNOise<Trace>:RMS?Measure RMS Jitter. Returns the RMS jitter in s for the integration range and trace.Number; Number: 1,2,3,4,5,6
FETCh:RANGe<Range>:PNOise<Trace>:RAM?Measure Residual AM. Returns the residual AM in percent for the integration range and trace.Number; Number: 1,2,3,4,5,6
FETCh:RANGe:PNOise:DUT:GAIN?Measure DUT Gain. Returns the DUT gain in dB (additive noise measurements).None
FETCh:PNOise<Trace>:SPURs?Measure Spurs. Returns offset frequency and level pairs for all detected spurs of the trace.Number: 1,2,3,4,5,6
FETCh:PNOise<Trace>:SPURs:COUNt?Measure Spur Count. Returns the number of spurs in the spur list of the trace.Number: 1,2,3,4,5,6
FETCh:PNOise<Trace>:SPURs:JITTer?Measure Spur Jitter. Returns the jitter in s of each detected spur of the trace.Number: 1,2,3,4,5,6
FETCh:PNOise<Trace>:SPURs:DISCrete?Measure Discrete Jitter. Returns the discrete jitter in s of the trace.Number: 1,2,3,4,5,6
FETCh:PNOise<Trace>:SPURs:RANDom?Measure Random Jitter. Returns the random jitter in s of the trace.Number: 1,2,3,4,5,6

System (SYSTem) (7)

CommandWhat it doesArguments
SYSTem:PRESet:CHANnel:EXECPreset Channel. Restores the default settings of the currently selected channel.None
SYSTem:DISPlay:UPDate ONDisplay Update On. Turns the display update during remote operation on.None
SYSTem:DISPlay:UPDate OFFDisplay Update Off. Turns the display update during remote operation off.None
SYSTem:ERRor:NEXT?Read Error. Returns and removes the oldest entry in the error queue (0 = No error).None
SYSTem:ERRor:LIST? REMoteRead Remote Error List. Returns the list of errors that occurred during remote operation.None
SYSTem:ERRor:CLEar:ALLClear Error List. Deletes all entries of the System Messages table.None
SYSTem:PRESetPreset. Presets the instrument (identical to *RST).None

Configure (CONFigure) (7)

CommandWhat it doesArguments
CONFigure:PNOise:MEASurement <Measurement>Select Measurement. Selects the noise measurement type (phase noise / baseband noise / pulsed / additive / external LO).Text: PNOise,BASeband,PPNoise,PRESidual,RESidual,EXTLo
CONFigure:VCO:MEASurement:STATe ONVCO Measurement On. Turns the VCO characterization measurement (OFF returns to phase noise) on.None
CONFigure:VCO:MEASurement:STATe OFFVCO Measurement Off. Turns the VCO characterization measurement (OFF returns to phase noise) off.None
CONFigure:SNTune:MEASurement:STATe ONSpot Noise Vs Tune On. Turns the spot noise vs tune measurement (OFF returns to phase noise) on.None
CONFigure:SNTune:MEASurement:STATe OFFSpot Noise Vs Tune Off. Turns the spot noise vs tune measurement (OFF returns to phase noise) off.None
CONFigure:TRANsient:MEASurement:STATe ONTransient Analysis On. Turns the PN transient analysis measurement (OFF returns to phase noise) on.None
CONFigure:TRANsient:MEASurement:STATe OFFTransient Analysis Off. Turns the PN transient analysis measurement (OFF returns to phase noise) off.None

Trace (TRACe) (6)

CommandWhat it doesArguments
TRACe<Window>:DATA? <Trace>Read Trace Data. Returns the trace as comma-separated offset frequency (Hz) and level (dBc/Hz) pairs.Number; Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6,XGINdicator
TRACe:DATA:LINear? <Trace>, <Points>, <Start>Read Trace Data Linear. Returns trace data linearly interpolated to the given number of points starting at the given offset in Hz.Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6,XGINdicator; Number; Number
TRACe<Window>:DATA:X? <Trace>Read Trace X. Returns the X values (offset frequencies) of the trace merged with spurs.Number; Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6
TRACe<Window>:DATA:Y? <Trace>Read Trace Y. Returns the Y values (levels) of the trace merged with spurs.Number; Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6
TRACe<Window>:POINts? <Trace>Read Trace Points. Returns the number of measurement points of the trace.Number; Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6,XGINdicator
TRACe<Window>:COPY <Destination>, <Source>Copy Trace. Copies the data of the source trace into the destination trace.Number; Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6; Text: TRACE1,TRACE2,TRACE3,TRACE4,TRACE5,TRACE6

Instrument (INSTrument) (5)

CommandWhat it doesArguments
INSTrument:SELect PNOiseSelect Phase Noise Channel. Activates (or selects) the Phase Noise application channel.None
INSTrument:SELect <Channel>Select Channel. Activates a new channel of the given type or selects an existing channel by name (string in single quotes).Text: PNOise,SMONitor,SANalyzer,IQ,PULSe,ADEMod,NOISe,SPUR,TA,DDEM
INSTrument:CREate:NEW <ChannelType>, <ChannelName>Create Channel. Adds a new measurement channel of the given type with the given name (string in single quotes).Text: PNOise,SMONitor,SANalyzer,IQ,PULSe,ADEMod,NOISe,SPUR,TA,DDEM; Text
INSTrument:DELete <ChannelName>Delete Channel. Deletes the measurement channel with the given name (string in single quotes).Text
INSTrument:LIST?Read Channel List. Returns the type and name of all active channels.None

Mass memory (MMEMory) (5)

CommandWhat it doesArguments
MMEMory:STORe:SPURs <FileName>, <Trace>Store Spurs To File. Exports the spur list of the given trace to a file (path string in single quotes).Text; Number: 1,2,3,4,5,6
MMEMory:STORe:STATe 1, <FileName>Save State. Saves the current instrument configuration to a .dfl file (path string in single quotes).Text
MMEMory:LOAD:STATe 1, <FileName>Load State. Loads an instrument configuration from a .dfl file (path string in single quotes).Text
MMEMory:STORe<Window>:TRACe <Trace>, <FileName>Store Trace To File. Exports trace data of the window to an ASCII file (path string in single quotes).Number; Number: 1,2,3,4,5,6; Text
MMEMory:NAME <FileName>Set Screenshot File. Defines the file name for the next screenshot (path string in single quotes).Text

Initiate (INITiate) (4)

CommandWhat it doesArguments
INITiate:CONTinuous OFFSingle Measurement. Switches to single measurement mode (recommended for remote control).None
INITiate:CONTinuous ONContinuous Measurement. Switches to continuous measurement mode.None
INITiate:IMMediateStart Measurement. Starts a new single measurement; synchronize with *OPC? or *WAI.None
INITiate:CONMeasContinue Measurement. Restarts a stopped or finished single measurement without resetting averaging traces.None

HCOP subsystem (2)

CommandWhat it doesArguments
HCOPy:DEVice:LANGuage <Format>Set Screenshot Format. Selects the file format for screenshots.Text: PNG,JPG,BMP,PDF,SVG,GDI
HCOPy:IMMediateTake Screenshot. Stores a screenshot / starts a print job.None

Abort (1)

CommandWhat it doesArguments
ABORtAbort Measurement. Aborts the measurement in the current channel and resets the trigger system.None

FORM subsystem (1)

CommandWhat it doesArguments
FORMat:DATA <Format>Set Data Format. Selects the trace data transfer format.Text: ASCii,REAL

CAL subsystem (1)

CommandWhat it doesArguments
CALibration:RESult?Read Calibration Result. Returns the results collected during the last self-alignment.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (9)

CommandWhat it doesArguments
*OPT?Read Options. Returns the list of installed options.None
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass or an error code.None
*CAL?Self Calibration. Runs the self-alignment and returns 0 on success.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Triggers all actions waiting for a trigger event (same as INITiate:IMMediate).None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the FSWP, FSWP26, FSWP50, and FSWP8 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rohde & Schwarz's programming manual: check it before you rely on an edge case. Last updated September 26, 2026.

Frequently asked questions

Does the Rohde & Schwarz FSWP support SCPI remote control?

Yes. The Rohde & Schwarz FSWP accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 213 SCPI commands for it: 48 queries that read values or state, and 165 settings and actions.

How do I control the Rohde & Schwarz FSWP from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, CONFigure:VCO:MEASurement:STATe ON and FETCh:PNOise1:SPURs?.

Which command reads a value from the Rohde & Schwarz FSWP?

FETCh:PNOise1:SPURs? (measure spurs). Returns offset frequency and level pairs for all detected spurs of the trace. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rohde & Schwarz FSWP without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Rohde & Schwarz FSWP through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.