Phase Noise Analyzer · SCPI command comparison

AnaPico APPH20G vs Rohde & Schwarz FSWP: SCPI commands and remote control compared

In TestFlow's instrument library, the AnaPico APPH20G takes 184 SCPI commands, 67 of them queries, and the Rohde & Schwarz FSWP takes 213 SCPI commands, 48 of them queries. That is 29 more on the FSWP. Counting distinct command headers (the command path without its arguments), 11 are accepted by both, 147 exist only on the APPH20G, and 160 only on the FSWP. 7% of the APPH20G's command headers also exist on the FSWP.

Both libraries have commands under SENSe, CALCulate, SYSTem, SOUR, INITiate, and ABORt. Only the FSWP has DISPlay, INPut, FETCh, CONFigure, TRACe, and INSTrument and 4 more.

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

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

APPH20G commands
184
FSWP commands
213
Shared headers
11
Unique headers
307

Run this on your bench

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

Get started

APPH20G 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.

AnaPico APPH20GRohde & Schwarz FSWP
Commands in TestFlow's library184213
Queries (read a value or state)6748
Settings and actions117165
Subsystems1020
Distinct command headers158171
Headers the other lacks147160
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setAPPH20G, APPH40G, APPH6040FSWP, FSWP26, FSWP50, FSWP8

Commands both accept

11 command headers are in both libraries.

CommandWhat it does
SYSTem:ERRor:NEXT?Read Error. Returns and removes the next entry in the error queue (0 = No error).
INITiate:IMMediateStart Measurement. Arms the trigger and starts the measurement in the active mode.
ABORtAbort Measurement. Aborts the measurement in progress.
*OPT?Read Options. Returns a comma-separated list of the installed options.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*RSTReset. Resets the instrument to its default state.
*CLSClear Status. Clears all event registers and the error queue.
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.
*WAIWait To Continue. Waits until all pending operations are complete before continuing.
*TRGTrigger Bus. Triggers the device if LAN is the selected trigger source (otherwise ignored).

Only on the AnaPico APPH20G

147 command headers in the APPH20G library have no match in the FSWP library. Below are 20 of them from the 5 largest subsystems; the full list is in the AnaPico APPH20G command reference.

SENSe (79 only on the APPH20G)

CommandWhat it does
SENSe:MODE <Mode>Set Measurement Mode. Selects the measurement mode: PN phase noise / VCO characterization / AN amplitude noise / FN frequency-noise based phase noise (BB and TRAN not yet available; *RST PN).
SENSe:MODE?Read Measurement Mode. Returns the active measurement mode.
SENSe:FREQuency:EXECuteStart Frequency Search. Starts the carrier frequency search (followed automatically by a power measurement); read results with CALCulate:FREQuency? and CALCulate:POWer?.
SENSe:POWer:EXECuteStart Power Measurement. Starts the carrier power measurement; read the result with CALCulate:POWer?.

CALCulate (39 only on the APPH20G)

CommandWhat it does
CALCulate:WAIT:AVERage ALLWait Measurement Complete. Blocks further SCPI requests until the measurement is complete (no timeout).
CALCulate:FREQuency?Read Detected Frequency. Returns the carrier frequency in Hz detected by the last frequency search.
CALCulate:POWer?Read Detected Power. Returns the carrier power level in dBm detected by the last frequency search.
CALCulate:PN:TRACe:FREQuency?Read PN Trace Frequency. Returns the offset frequency points in Hz of the most recent measurement as IEEE 488.2 block data (32-bit floats).

SYSTem (16 only on the APPH20G)

CommandWhat it does
SYSTem:ERRor:ALL?Read All Errors. Returns all entries in the error queue and clears it (0 = measurement ok).
SYSTem:RESTartRestart System. Restarts the instrument (same as a power cycle; terminates the connection).
SYSTem:COMMunicate:GPIB:ADDRess <Address>Set GPIB Address. Sets the GPIB address (1 to 30).
SYSTem:COMMunicate:GPIB:ADDRess?Read GPIB Address. Returns the GPIB address.

IEEE 488.2 common (*) (8 only on the APPH20G)

CommandWhat it does
*OPCOperation Complete Bit. Sets bit 0 of the Standard Event Status Register when all pending operations have finished.
*ESE <Value>Set Event Status Enable. Sets the Standard Event Status Enable register (0 to 255).
*ESR?Read Event Status. Returns the Standard Event Status Register.
*SRE <Value>Set Service Request Enable. Sets the Service Request Enable register (0 to 255).

SOUR (5 only on the APPH20G)

CommandWhat it does
SOUR:SUPP<Channel>:VOLT <Voltage>Set Supply Voltage. Sets the DUT DC supply voltage in V of supply channel 1 or 2 (0 to 15 V; manual VCO programming example).
SOUR:SUPP<Channel>:STAT ONSupply On. Turns the DUT DC supply of the channel on (manual VCO programming example).
SOURce:TUNE:DUT:VOLT <Voltage>Set DUT Tune Voltage. Sets the voltage in V at the DUT TUNE port (*RST 0).
SOURce:TUNE:DUT:VOLT?Read DUT Tune Voltage. Returns the configured DUT TUNE port voltage in V.

Only on the Rohde & Schwarz FSWP

160 command headers in the FSWP library have no match in the APPH20G 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).

SOURce (20 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:STATe ONVsupply On. Turns the supply voltage source (Vsupply) on.
SOURce:VOLTage:POWer:LEVel:MODE <Mode>Set Vsupply Mode. Selects whether Vsupply is controlled in terms of voltage or 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.

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.

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 INITiate:IMMediate (start measurement), 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_APPH20G_ADDRESS")  # AnaPico APPH20G
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: Start Measurement
a.write("INITiate:IMMediate")
b.write("INITiate:IMMediate")

# 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 AnaPico APPH20G or Rohde & Schwarz FSWP and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the AnaPico APPH20G and the Rohde & Schwarz FSWP for remote control?

In TestFlow's library the APPH20G has 184 SCPI commands and the FSWP has 213 SCPI commands. 11 command headers are common to both, 147 are only on the APPH20G (mostly SENSe and CALCulate), and 160 are only on the FSWP (mostly SENSe and CALCulate).

Can I use the same SCPI code for the AnaPico APPH20G and the Rohde & Schwarz FSWP?

Partly. 11 command headers are accepted by both, including SYSTem:ERRor:NEXT?, INITiate:IMMediate, and ABORt. 307 are not, for example SENSe:MODE on the APPH20G 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 APPH20G or the FSWP?

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

How do the APPH20G 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.