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.
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.
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()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.
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.
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.
| Command | What it does | Arguments |
|---|---|---|
| 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:FSEGment | Skip Half Decade. Stops the measurement in the current half decade and resumes with the next half decade. | None |
| SENSe:SWEep:FORWard ON | Sweep Forward On. Turns forward sweep direction (OFF = reverse direction) on. | None |
| SENSe:SWEep:FORWard OFF | Sweep 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 ON | Auto Frequency Search On. Turns the automatic carrier frequency search on. | None |
| SENSe:ADJust:CONFigure:FREQuency:AUTosearch:STATe OFF | Auto Frequency Search Off. Turns the automatic carrier frequency search off. | None |
| SENSe:ADJust:CONFigure:FREQuency:COUNt ON | Frequency Verify On. Turns the frequency counter that verifies the manually entered carrier frequency on. | None |
| SENSe:ADJust:CONFigure:FREQuency:COUNt OFF | Frequency 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 ON | Low Pass Filter On. Turns the low pass filter for measurements on small carrier frequencies on. | None |
| SENSe:FILTer:LPASs:STATe OFF | Low 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 ON | Ultra Small RBW On. Turns ultra-small resolution bandwidths on. | None |
| SENSe:LIST:BWIDth:RESolution:USMall OFF | Ultra 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 ON | XCorr Optimization On. Turns cross-correlation optimization on. | None |
| SENSe:SWEep:XOPTimize:STATe OFF | XCorr 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 |
| Command | What it does | Arguments |
|---|---|---|
| CALCulate:RANGe<Range>:EVALuation:STATe ON | Integrate Full Range On. Turns integration over the complete measurement range for residual calculations (OFF = custom range) on. | Number |
| CALCulate:RANGe<Range>:EVALuation:STATe OFF | Integrate 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 ON | Spot Noise Decades On. Turns spot noise calculation at every 10x offset frequency on. | None |
| CALCulate:SNOise:DECades:STATe OFF | Spot 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 ON | Spot Noise User On. Turns custom (user defined) spot noise positions on. | None |
| CALCulate:SNOise:USERdefined:STATe OFF | Spot Noise User Off. Turns custom (user defined) spot noise positions off. | None |
| CALCulate:SNOise<Position>:STATe ON | Spot Noise Position On. Turns a custom spot noise position on. | Number |
| CALCulate:SNOise<Position>:STATe OFF | Spot 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:AOFF | Spot Noise All Off. Turns all spot noise information and user defined spot noise markers off. | None |
| CALCulate<Window>:MARKer<Marker>:STATe ON | Marker On. Turns the marker on. | Number; Number |
| CALCulate<Window>:MARKer<Marker>:STATe OFF | Marker Off. Turns the marker off. | Number; Number |
| CALCulate<Window>:MARKer:AOFF | All 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:PEAK | Marker To Peak. Moves the marker to the highest level. | Number; Number |
| CALCulate<Window>:MARKer<Marker>:MAXimum:NEXT | Marker To Next Peak. Moves the marker to the next positive peak. | Number; Number |
| CALCulate<Window>:MARKer<Marker>:MINimum:PEAK | Marker To Minimum. Moves the marker to the minimum level. | Number; Number |
| CALCulate<Window>:DELTamarker<Marker>:STATe ON | Delta Marker On. Turns the delta marker on. | Number; Number |
| CALCulate<Window>:DELTamarker<Marker>:STATe OFF | Delta 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 ON | Limit 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 OFF | Limit 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 ON | Upper Limit On. Turns the upper limit line on. | Number; Number |
| CALCulate<Window>:LIMit<Limit>:UPPer:STATe OFF | Upper Limit Off. Turns the upper limit line off. | Number; Number |
| CALCulate<Window>:LIMit<Limit>:LOWer:STATe ON | Lower Limit On. Turns the lower limit line on. | Number; Number |
| CALCulate<Window>:LIMit<Limit>:LOWer:STATe OFF | Lower 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:IMMediate | Clear Limit Result. Deletes the result of the current limit check. | Number |
| Command | What it does | Arguments |
|---|---|---|
| DISPlay:XGINdicator:STATe ON | XCorr Gain Indicator On. Turns the cross-correlation gain indicator (gray area) on. | None |
| DISPlay:XGINdicator:STATe OFF | XCorr Gain Indicator Off. Turns the cross-correlation gain indicator (gray area) off. | None |
| DISPlay:SNINfo:STATe ON | Spot Noise Info Display On. Turns the display of spot noise information in the diagram on. | None |
| DISPlay:SNINfo:STATe OFF | Spot 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 ON | Spur Removal On. Turns spur removal for the trace on. | Number; Number: 1,2,3,4,5,6 |
| DISPlay:WINDow<Window>:TRACe<Trace>:SPURs:SUPPress OFF | Spur 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 ON | Trace On. Turns the trace on. | Number; Number: 1,2,3,4,5,6 |
| DISPlay:WINDow<Window>:TRACe<Trace>:STATe OFF | Trace 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 ON | Trace Smoothing On. Turns trace smoothing on. | Number; Number: 1,2,3,4,5,6 |
| DISPlay:WINDow<Window>:TRACe<Trace>:SMOothing:STATe OFF | Trace 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 ON | Trace 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 OFF | Trace 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 ON | Y Auto Scale On. Turns automatic y-axis scaling on. | Number |
| DISPlay:WINDow<Window>:TRACe:Y:SCALe:AUTO OFF | Y Auto Scale Off. Turns automatic y-axis scaling off. | Number |
| DISPlay:WINDow<Window>:TRACe:Y:SCALe:AUTO ONCE | Y 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 ON | X Auto Scale On. Turns automatic x-axis scaling on. | Number |
| DISPlay:WINDow<Window>:TRACe:X:SCALe:AUTO OFF | X Auto Scale Off. Turns automatic x-axis scaling off. | Number |
| Command | What it does | Arguments |
|---|---|---|
| SOURce:VOLTage:STATe ON | DC Outputs On. Turns the DC power sources in general on. | None |
| SOURce:VOLTage:STATe OFF | DC Outputs Off. Turns the DC power sources in general off. | None |
| SOURce:VOLTage:POWer:LEVel:STATe ON | Vsupply On. Turns the supply voltage source (Vsupply) on. | None |
| SOURce:VOLTage:POWer:LEVel:STATe OFF | Vsupply 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 ON | Vtune On. Turns the tuning voltage source (Vtune) on. | None |
| SOURce:VOLTage:CONTrol:LEVel:STATe OFF | Vtune 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 ON | Vaux On. Turns the auxiliary voltage source (Vaux) on. | None |
| SOURce:VOLTage:AUX:LEVel:STATe OFF | Vaux 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 ON | Signal Source On. Turns the optional signal source output on. | None |
| SOURce:GENerator:STATe OFF | Signal 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 ON | Source Pulse Mod On. Turns internal pulse modulation of the signal source (OFF = sine output) on. | None |
| SOURce:GENerator:MODulation OFF | Source 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 ON | DUT Bypass On. Turns the DUT bypass (ON measures the noise of the FSWP itself) on. | None |
| SOURce:GENerator:DUTBypass OFF | DUT 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 |
| Command | What it does | Arguments |
|---|---|---|
| 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 ON | Auto Attenuation On. Turns automatic attenuation on. | None |
| INPut:ATTenuation:AUTO OFF | Auto Attenuation Off. Turns automatic attenuation off. | None |
| INPut:GAIN:STATe ON | Preamplifier On. Turns the internal preamplifier (option) on. | None |
| INPut:GAIN:STATe OFF | Preamplifier 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:RESet | Reset Input Protection. Reconnects the RF input after an overload condition has been removed. | None |
| Command | What it does | Arguments |
|---|---|---|
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| SYSTem:PRESet:CHANnel:EXEC | Preset Channel. Restores the default settings of the currently selected channel. | None |
| SYSTem:DISPlay:UPDate ON | Display Update On. Turns the display update during remote operation on. | None |
| SYSTem:DISPlay:UPDate OFF | Display 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? REMote | Read Remote Error List. Returns the list of errors that occurred during remote operation. | None |
| SYSTem:ERRor:CLEar:ALL | Clear Error List. Deletes all entries of the System Messages table. | None |
| SYSTem:PRESet | Preset. Presets the instrument (identical to *RST). | None |
| Command | What it does | Arguments |
|---|---|---|
| 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 ON | VCO Measurement On. Turns the VCO characterization measurement (OFF returns to phase noise) on. | None |
| CONFigure:VCO:MEASurement:STATe OFF | VCO Measurement Off. Turns the VCO characterization measurement (OFF returns to phase noise) off. | None |
| CONFigure:SNTune:MEASurement:STATe ON | Spot Noise Vs Tune On. Turns the spot noise vs tune measurement (OFF returns to phase noise) on. | None |
| CONFigure:SNTune:MEASurement:STATe OFF | Spot Noise Vs Tune Off. Turns the spot noise vs tune measurement (OFF returns to phase noise) off. | None |
| CONFigure:TRANsient:MEASurement:STATe ON | Transient Analysis On. Turns the PN transient analysis measurement (OFF returns to phase noise) on. | None |
| CONFigure:TRANsient:MEASurement:STATe OFF | Transient Analysis Off. Turns the PN transient analysis measurement (OFF returns to phase noise) off. | None |
| Command | What it does | Arguments |
|---|---|---|
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| INSTrument:SELect PNOise | Select 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 |
| Command | What it does | Arguments |
|---|---|---|
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| INITiate:CONTinuous OFF | Single Measurement. Switches to single measurement mode (recommended for remote control). | None |
| INITiate:CONTinuous ON | Continuous Measurement. Switches to continuous measurement mode. | None |
| INITiate:IMMediate | Start Measurement. Starts a new single measurement; synchronize with *OPC? or *WAI. | None |
| INITiate:CONMeas | Continue Measurement. Restarts a stopped or finished single measurement without resetting averaging traces. | None |
| Command | What it does | Arguments |
|---|---|---|
| HCOPy:DEVice:LANGuage <Format> | Set Screenshot Format. Selects the file format for screenshots. | Text: PNG,JPG,BMP,PDF,SVG,GDI |
| HCOPy:IMMediate | Take Screenshot. Stores a screenshot / starts a print job. | None |
| Command | What it does | Arguments |
|---|---|---|
| ABORt | Abort Measurement. Aborts the measurement in the current channel and resets the trigger system. | None |
| Command | What it does | Arguments |
|---|---|---|
| FORMat:DATA <Format> | Set Data Format. Selects the trace data transfer format. | Text: ASCii,REAL |
| Command | What it does | Arguments |
|---|---|---|
| CALibration:RESult? | Read Calibration Result. Returns the results collected during the last self-alignment. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *OPT? | Read Options. Returns the list of installed options. | None |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear 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 |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
| *TRG | Trigger Bus. Triggers all actions waiting for a trigger event (same as INITiate:IMMediate). | None |
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.
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.
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?.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.