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.
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.
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 APPH20G | Rohde & Schwarz FSWP | |
|---|---|---|
| Commands in TestFlow's library | 184 | 213 |
| Queries (read a value or state) | 67 | 48 |
| Settings and actions | 117 | 165 |
| Subsystems | 10 | 20 |
| Distinct command headers | 158 | 171 |
| Headers the other lacks | 147 | 160 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | APPH20G, APPH40G, APPH6040 | FSWP, FSWP26, FSWP50, FSWP8 |
11 command headers are in both libraries.
| Command | What it does |
|---|---|
| SYSTem:ERRor:NEXT? | Read Error. Returns and removes the next entry in the error queue (0 = No error). |
| INITiate:IMMediate | Start Measurement. Arms the trigger and starts the measurement in the active mode. |
| ABORt | Abort 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). |
| *RST | Reset. Resets the instrument to its default state. |
| *CLS | Clear 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. |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. |
| *TRG | Trigger Bus. Triggers the device if LAN is the selected trigger source (otherwise ignored). |
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.
| Command | What 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:EXECute | Start Frequency Search. Starts the carrier frequency search (followed automatically by a power measurement); read results with CALCulate:FREQuency? and CALCulate:POWer?. |
| SENSe:POWer:EXECute | Start Power Measurement. Starts the carrier power measurement; read the result with CALCulate:POWer?. |
| Command | What it does |
|---|---|
| CALCulate:WAIT:AVERage ALL | Wait 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). |
| Command | What it does |
|---|---|
| SYSTem:ERRor:ALL? | Read All Errors. Returns all entries in the error queue and clears it (0 = measurement ok). |
| SYSTem:RESTart | Restart 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. |
| Command | What it does |
|---|---|
| *OPC | Operation 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). |
| Command | What 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 ON | Supply 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. |
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.
| 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 |
|---|---|
| SOURce:VOLTage:STATe ON | DC Outputs On. Turns the DC power sources in general on. |
| SOURce:VOLTage:POWer:LEVel:STATe ON | Vsupply 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. |
| 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 |
|---|---|
| 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 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()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.
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).
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.
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.
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.