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.
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.
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 E5052B | Rohde & Schwarz FSWP | |
|---|---|---|
| Commands in TestFlow's library | 160 | 213 |
| Queries (read a value or state) | 24 | 48 |
| Settings and actions | 136 | 165 |
| Subsystems | 14 | 20 |
| Distinct command headers | 133 | 171 |
| Headers the other lacks | 115 | 153 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | E5052B | FSWP, FSWP26, FSWP50, FSWP8 |
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.
| Command | What it does |
|---|---|
| :SOURce:VOLTage:CONTrol:LEVel:STATe ON | Vcontrol 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. |
| :ABORt | Abort 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:PRESet | Preset. 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 ON | Vsupply On. Turns the DC power supply output on. |
| *RST | Reset. Resets the instrument to its default state. |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :DISPlay:PN1:TRACe1:MODE <Mode> | Set Trace Display. Selects data / memory / both trace display. |
| :DISPlay:PN1:TRACe1:LIMit:LINE ON | Limit Line Display On. Turns the limit line display on. |
| :DISPlay:PN1:LIMit:FSIGn ON | Fail Sign On. Turns the limit test fail sign display on. |
| :DISPlay:PN1:TRACe1:Y:SCALe:AUTO | Autoscale Y. Executes auto scale of the y-axis. |
| Command | What 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. |
| Command | What 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. |
| Command | What 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 ON | Trigger 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. |
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.
| Command | What 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:FSEGment | Skip Half Decade. Stops the measurement in the current half decade and resumes with the next half decade. |
| Command | What it does |
|---|---|
| CALCulate:RANGe<Range>:EVALuation:STATe ON | Integrate 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). |
| Command | What it does |
|---|---|
| DISPlay:XGINdicator:STATe ON | XCorr Gain Indicator On. Turns the cross-correlation gain indicator (gray area) on. |
| DISPlay:SNINfo:STATe ON | Spot 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 ON | Spur Removal On. Turns spur removal for the trace on. |
| Command | What it does |
|---|---|
| SOURce:VOLTage:STATe ON | DC 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 ON | Vaux On. Turns the auxiliary voltage source (Vaux) on. |
| Command | What 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. |
| Command | What 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 ON | Auto Attenuation On. Turns automatic attenuation on. |
| INPut:GAIN:STATe ON | Preamplifier 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). |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.