Phase Noise Analyzer · SCPI command comparison

Keysight E5052B vs Rohde & Schwarz FSWP: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight E5052B takes 160 SCPI commands, 24 of them queries, and the Rohde & Schwarz FSWP takes 213 SCPI commands, 48 of them queries. That is 53 more on the FSWP. Counting distinct command headers (the command path without its arguments), 18 are accepted by both, 115 exist only on the E5052B, and 153 only on the FSWP. 14% of the E5052B's command headers also exist on the FSWP.

Both libraries have commands under CALCulate, SENSe, SOURce, DISPlay, MMEMory, INITiate, FORMat, and SYSTem, plus 1 more root. Only the E5052B has TRIGger. Only the FSWP has INPut, FETCh, CONFigure, TRACe, INSTrument, and HCOPy and 1 more.

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the FSWP26, FSWP50, and FSWP8 the same command set as the FSWP, so the FSWP column applies to them too.

E5052B commands
160
FSWP commands
213
Shared headers
18
Unique headers
268

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5052B or Rohde & Schwarz FSWP and writes the report from the measured results.

Get started

E5052B vs FSWP at a glance

Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.

Keysight E5052BRohde & Schwarz FSWP
Commands in TestFlow's library160213
Queries (read a value or state)2448
Settings and actions136165
Subsystems1420
Distinct command headers133171
Headers the other lacks115153
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setE5052BFSWP, FSWP26, FSWP50, FSWP8

Commands both accept

18 command headers are in both libraries. Here are 12, taken across subsystems. Where the FSWP library writes the command differently, its form is shown under the E5052B's.

CommandWhat it does
:SOURce:VOLTage:CONTrol:LEVel:STATe ONVcontrol On. Turns the DC control voltage output on.
:MMEMory:STORe:STATe <FileName>FSWP: MMEMory:STORe:STATe 1, <FileName>Save State. Saves the instrument settings to a file (string in quotes).
:FORMat:DATA <Format>Set Data Format. Selects the data transfer format.
:SYSTem:ERRor:NEXT?Read Error. Returns the next error number and description from the error queue.
:ABORtAbort Measurement. Aborts the measurement and resets the trigger system.
*OPT?Read Options. Returns the installed options.
:SOURce:VOLTage:CONTrol:LEVel:AMPLitude <Voltage>Set Vcontrol. Sets the DC control voltage in V (-15 to 35).
:MMEMory:LOAD:STATe <FileName>FSWP: MMEMory:LOAD:STATe 1, <FileName>Load State. Recalls instrument settings from a file (string in quotes).
:SYSTem:PRESetPreset. Presets the instrument (same as *RST followed by INIT:CONT ON).
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
:SOURce:VOLTage:POWer:LEVel:STATe ONVsupply On. Turns the DC power supply output on.
*RSTReset. Resets the instrument to its default state.

Only on the Keysight E5052B

115 command headers in the E5052B library have no match in the FSWP library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keysight E5052B command reference.

CALCulate (49 only on the E5052B)

CommandWhat it does
:CALCulate:PN1:DATA:CARRier?Measure Carrier. Returns the measured carrier frequency in Hz and power in dBm.
:CALCulate:PN1:DATA:XDATa?Read X Data. Returns the x-axis (offset frequency) data.
:CALCulate:PN1:DATA:RDATa?Read Raw Data. Returns the measurement raw data.
:CALCulate:PN1:DATA:PDATa?Read Raw Power Data. Returns the measurement raw power data.

SENSe (23 only on the E5052B)

CommandWhat it does
:SENSe:PN1:FREQuency:STARt <Frequency>Set Start Offset. Sets the start offset frequency in Hz (1, 10, 100 or 1k).
:SENSe:PN1:FREQuency:STOP <Frequency>Set Stop Offset. Sets the stop offset frequency in Hz (100k to 100M).
:SENSe:PN1:FREQuency:STARt?Read Start Offset. Returns the start offset frequency in Hz.
:SENSe:PN1:FREQuency:STOP?Read Stop Offset. Returns the stop offset frequency in Hz.

DISPlay (14 only on the E5052B)

CommandWhat it does
:DISPlay:PN1:TRACe1:MODE <Mode>Set Trace Display. Selects data / memory / both trace display.
:DISPlay:PN1:TRACe1:LIMit:LINE ONLimit Line Display On. Turns the limit line display on.
:DISPlay:PN1:LIMit:FSIGn ONFail Sign On. Turns the limit test fail sign display on.
:DISPlay:PN1:TRACe1:Y:SCALe:AUTOAutoscale Y. Executes auto scale of the y-axis.

SOURce (14 only on the E5052B)

CommandWhat it does
:SOURce:VOLTage:CONTrol:LIMit:HIGH <Voltage>Set Vcontrol Limit High. Sets the upper limit of the DC control voltage in V.
:SOURce:VOLTage:CONTrol:LIMit:LOW <Voltage>Set Vcontrol Limit Low. Sets the lower limit of the DC control voltage in V.
:SOURce:VOLTage:CONTrol:DELay <Delay>Set Vcontrol Delay. Sets the DC control voltage delay in s (0 to 1).
:SOURce:VOLTage:POWer:LIMit:HIGH <Voltage>Set Vsupply Limit High. Sets the upper limit of the DC power supply voltage in V.

MMEMory (6 only on the E5052B)

CommandWhat it does
:MMEMory:LOAD:CORRection:POWer <FileName>Load Power Correction. Loads power correction data from a file (string in quotes).
:MMEMory:PN1:TRACe1:LOAD:LIMit:UPPer <FileName>Load Upper Limit. Loads the upper limit line from a file (string in quotes).
:MMEMory:PN1:TRACe1:LOAD:LIMit:LOWer <FileName>Load Lower Limit. Loads the lower limit line from a file (string in quotes).
:MMEMory:STORe:STYPe <Type>Set Save Type. Selects whether settings only or settings plus data are saved.

TRIGger (6 only on the E5052B)

CommandWhat it does
:TRIGger:MODE <Mode>Select Measurement Mode. Selects the measurement mode (PN1 = phase noise, SP1 = spectrum, FP1 = frequency/power, TR1 = transient, AM1 = AM noise, BB1 = baseband, PS1 = phase segment).
:TRIGger:PN1:SOURce <Source>Set Trigger Source. Selects the trigger source.
:TRIGger:AVERage ONTrigger Average On. Turns trigger system initialization of the average count on.
:TRIGger:EXTernal:SLOPe <Slope>Set External Trigger Slope. Selects the polarity of the external trigger.

Only on the Rohde & Schwarz FSWP

153 command headers in the FSWP library have no match in the E5052B library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz FSWP command reference.

SENSe (40 only on the FSWP)

CommandWhat it does
SENSe:SWEep:COUNt <Count>Set Average Count. Sets the number of measurements used to average traces (0 to 200000; 0 or 1 = single measurement).
SENSe:SWEep:TIME?Read Measurement Time. Returns the estimated measurement time in s.
SENSe:SWEep:TIME:REMaining?Read Remaining Time. Returns the remaining measurement time in s.
SENSe:SWEep:FSEGmentSkip Half Decade. Stops the measurement in the current half decade and resumes with the next half decade.

CALCulate (31 only on the FSWP)

CommandWhat it does
CALCulate:RANGe<Range>:EVALuation:STATe ONIntegrate Full Range On. Turns integration over the complete measurement range for residual calculations (OFF = custom range) on.
CALCulate:RANGe<Range>:EVALuation:STARt <Frequency>Set Integration Start. Sets the start offset frequency in Hz of a custom integration range.
CALCulate:RANGe<Range>:EVALuation:STOP <Frequency>Set Integration Stop. Sets the stop offset frequency in Hz of a custom integration range.
CALCulate:RANGe<Range>:EVALuation:TRACe <Trace>Set Integration Trace. Selects the trace used for residual calculation in an integration range (NONE turns it off).

DISPlay (18 only on the FSWP)

CommandWhat it does
DISPlay:XGINdicator:STATe ONXCorr Gain Indicator On. Turns the cross-correlation gain indicator (gray area) on.
DISPlay:SNINfo:STATe ONSpot Noise Info Display On. Turns the display of spot noise information in the diagram on.
DISPlay:SNINfo:TRACe <Trace>Set Spot Noise Trace. Selects the trace for which spot noise information is evaluated (1 to 6).
DISPlay:WINDow<Window>:TRACe<Trace>:SPURs:SUPPress ONSpur Removal On. Turns spur removal for the trace on.

SOURce (16 only on the FSWP)

CommandWhat it does
SOURce:VOLTage:STATe ONDC Outputs On. Turns the DC power sources in general on.
SOURce:VOLTage:POWer:LEVel:MODE <Mode>Set Vsupply Mode. Selects whether Vsupply is controlled in terms of voltage or current.
SOURce:CURRent:POWer:LIMit:HIGH <Current>Set Vsupply Current Limit. Sets the maximum Vsupply current in A (0 to 2).
SOURce:VOLTage:AUX:LEVel:STATe ONVaux On. Turns the auxiliary voltage source (Vaux) on.

FETCh (11 only on the FSWP)

CommandWhat it does
FETCh:RANGe<Range>:PNOise<Trace>:IPN?Measure Integrated Phase Noise. Returns the integrated phase noise in dBc for the integration range and trace.
FETCh:RANGe<Range>:PNOise<Trace>:RPM?Measure Residual PM. Returns the residual PM in degrees for the integration range and trace.
FETCh:RANGe<Range>:PNOise<Trace>:RFM?Measure Residual FM. Returns the residual FM in Hz for the integration range and trace.
FETCh:RANGe<Range>:PNOise<Trace>:RMS?Measure RMS Jitter. Returns the RMS jitter in s for the integration range and trace.

INPut (9 only on the FSWP)

CommandWhat it does
INPut:ATTenuation <Attenuation>Set Attenuation. Sets the RF attenuation in dB in 5 dB steps (auto attenuation must be off).
INPut:ATTenuation:AUTO ONAuto Attenuation On. Turns automatic attenuation on.
INPut:GAIN:STATe ONPreamplifier On. Turns the internal preamplifier (option) on.
INPut:GAIN:VALue <Gain>Set Preamp Gain. Sets the preamplifier gain in dB (15 or 30 depending on model).

Control both from Python

With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold :SOURce:VOLTage:CONTrol:LEVel:STATe (vcontrol on), and the same line runs on each. For the reading, both libraries hold :SYSTem:ERRor:NEXT? (read error), and the same line runs on each. For the basics, see the PyVISA tutorial.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find both VISA addresses

a = rm.open_resource("PASTE_E5052B_ADDRESS")  # Keysight E5052B
b = rm.open_resource("PASTE_FSWP_ADDRESS")  # Rohde & Schwarz FSWP
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Vcontrol On
a.write(":SOURce:VOLTage:CONTrol:LEVel:STATe ON")
b.write("SOURce:VOLTage:CONTrol:LEVel:STATe ON")

# The same reading on both: Read Error
print(a.query(":SYSTem:ERRor:NEXT?"))
print(b.query("SYSTem:ERRor:NEXT?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5052B or Rohde & Schwarz FSWP and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight E5052B and the Rohde & Schwarz FSWP for remote control?

In TestFlow's library the E5052B has 160 SCPI commands and the FSWP has 213 SCPI commands. 18 command headers are common to both, 115 are only on the E5052B (mostly CALCulate and SENSe), and 153 are only on the FSWP (mostly SENSe and CALCulate).

Can I use the same SCPI code for the Keysight E5052B and the Rohde & Schwarz FSWP?

Partly. 18 command headers are accepted by both, including :SOURce:VOLTage:CONTrol:LEVel:STATe, :MMEMory:STORe:STATe, and :FORMat:DATA. 268 are not, for example :CALCulate:PN1:DATA:CARRier? on the E5052B and SENSe:SWEep:COUNt on the FSWP, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the E5052B or the FSWP?

The FSWP: 160 commands for the E5052B against 213 for the FSWP in TestFlow's library. Of those, 24 on the E5052B and 48 on the FSWP are queries that read a value or state, and the library splits them into 14 and 20 subsystems.

How do the E5052B and FSWP signal operation complete and report errors?

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. Each command named here is listed in the tables on this page and on each instrument's command reference.

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.