In TestFlow's instrument library, the Holzworth HA7062C takes 109 SCPI commands, 53 of them queries, and the Rohde & Schwarz FSWP takes 213 SCPI commands, 48 of them queries. That is 104 more on the FSWP. Counting distinct command headers (the command path without its arguments), 1 are accepted by both, 105 exist only on the HA7062C, and 170 only on the FSWP. 1% of the HA7062C's command headers also exist on the FSWP.
Both libraries have commands under SENS, CALC, SOUR, MMEM, and INIT. Only the HA7062C has IP, GPIB, STAT, and IDN. Only the FSWP has DISPlay, INPut, FETCh, SYSTem, CONFigure, and TRACe and 5 more.
Only the FSWP library has an operation-complete command (*OPC?); the HA7062C library has none. Only the FSWP library has an error-queue read (SYSTem:ERRor?); the HA7062C library has none.
TestFlow's library gives the HA7162C the same command set as the HA7062C, so the HA7062C column applies to it 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 Holzworth HA7062C 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.
| Holzworth HA7062C | Rohde & Schwarz FSWP | |
|---|---|---|
| Commands in TestFlow's library | 109 | 213 |
| Queries (read a value or state) | 53 | 48 |
| Settings and actions | 56 | 165 |
| Subsystems | 13 | 20 |
| Distinct command headers | 106 | 171 |
| Headers the other lacks | 105 | 170 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | Not in library | SYSTem:ERRor? |
| Models on this command set | HA7062C, HA7162C | FSWP, FSWP26, FSWP50, FSWP8 |
1 command header is in both libraries.
| Command | What it does |
|---|---|
| *RST | Reset. Returns the instrument to the factory default state. |
105 command headers in the HA7062C library have no match in the FSWP library. Below are 23 of them from the 6 largest subsystems; the full list is in the Holzworth HA7062C command reference.
| Command | What it does |
|---|---|
| :SENS:PN:MEAS:TYPE:<Type> | Set Measurement Type. Sets the measurement type to be performed (Absolute / Additive / AM Noise / Baseband). |
| :SENS:PN:MEAS:TYPE? | Read Measurement Type. Reads back the measurement type. |
| :SENS:PN:CORR:COUN:<Count> | Set Correlations. Sets the number of cross correlations. |
| :SENS:PN:CORR:COUN? | Read Correlations. Reads back the number of cross correlations. |
| Command | What it does |
|---|---|
| :CALC:FP:DATA:CARR:<Channel>? | Read DUT Input. Queries the DUT input frequency (Hz) and power level (dBm) for the channel. |
| :CALC:FP:DATA:<LO>? | Read LO Input. Queries the LO input frequency (Hz) and power level (dBm). |
| :CALC:PN:TRACE:HOLD | Cancel LO Calibration. Stops the LO calibration routine. |
| :CALC:PN:DATA:FDAT? | Read Amplitude Data. Returns the amplitude data (dBc/Hz) as a comma separated string (smoothed / spur removed if enabled). |
| Command | What it does |
|---|---|
| :GPIB:ADDR:<Address> | Set GPIB Address. Sets the instrument GPIB address (0 to 30). |
| :GPIB:ADDR? | Read GPIB Address. Queries the GPIB address. |
| :GPIB:EOIWLC:ON | GPIB EOI Last Char On. Turns GPIB EOI with last character on. |
| :GPIB:EOIWLC:OFF | GPIB EOI Last Char Off. Turns GPIB EOI with last character off. |
| Command | What it does |
|---|---|
| :IP:STATUS:<Mode> | Set IP Mode. Sets the IP status to static IP or DHCP (restart required). |
| :IP:STATUS? | Read IP Mode. Queries the IP status. |
| :IP:ADDR:<Address> | Set Static IP. Sets the static IP address. |
| :IP:ADDR? | Read Static IP. Queries the static IP address (not DHCP-assigned addresses). |
| Command | What it does |
|---|---|
| :SOUR:<LO>:FREQ:<Frequency> | Set LO Frequency. Sets the frequency of the internal LO (9.765625 MHz to 6.001 GHz; Hz or MHz/GHz suffix). |
| :SOUR:<LO>:FREQ? | Read LO Frequency. Queries the internal LO frequency. |
| :SOUR:<LO>:PWR:<Power> | Set LO Power. Sets the power level of the internal LO in dBm (0.00 to 10.00). |
| :SOUR:<LO>:PWR? | Read LO Power. Queries the internal LO power level in dBm. |
| Command | What it does |
|---|---|
| :MMEM:PN:CAL:HX5100:CH<Channel>:DATA:<Data> | Load HX5100 Cal Line. Loads one line of the HX5100 calibration file for the channel (send each line in file order). |
| :MMEM:PN:CAL:HX5100:VALID? | Read HX5100 Cal Valid. Checks whether all HX5100 calibration data was loaded successfully. |
| :MMEM:PN:<LO>:OCXO:CAL? | Read LO Calibration. Reads back the LO calibration table (point, Vtune, freq, power per point). |
170 command headers in the FSWP library have no match in the HA7062C 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, the two libraries have no common command with a worked example on both, so each instrument uses its own: :SENS:PN:FREQ:CNTR:0.01S on the HA7062C and CONFigure:VCO:MEASurement:STATe ON on the FSWP. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: :SENS:PN:MEAS:TYPE? on the HA7062C and FETCh:PNOise1:SPURs? on the FSWP. 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_HA7062C_ADDRESS") # Holzworth HA7062C
b = rm.open_resource("PASTE_FSWP_ADDRESS") # Rohde & Schwarz FSWP
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# No shared setting with an example on both, so each uses its own command
a.write(":SENS:PN:FREQ:CNTR:0.01S") # Set Freq Counter Interval
b.write("CONFigure:VCO:MEASurement:STATe ON") # VCO Measurement On
# No shared reading with an example on both, so each uses its own command
print(a.query(":SENS:PN:MEAS:TYPE?")) # Read Measurement Type
print(b.query("FETCh:PNOise1:SPURs?")) # Measure Spurs
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Holzworth HA7062C or Rohde & Schwarz FSWP and writes the report from the measured results.
In TestFlow's library the HA7062C has 109 SCPI commands and the FSWP has 213 SCPI commands. 1 command headers are common to both, 105 are only on the HA7062C (mostly SENS and CALC), and 170 are only on the FSWP (mostly SENSe and CALCulate).
Partly. 1 command headers are accepted by both. 275 are not, for example :SENS:PN:MEAS:TYPE:<Type> on the HA7062C and SENSe:SWEep:COUNt on the FSWP, so a script that uses those needs a separate branch for each instrument.
The FSWP: 109 commands for the HA7062C against 213 for the FSWP in TestFlow's library. Of those, 53 on the HA7062C and 48 on the FSWP are queries that read a value or state, and the library splits them into 13 and 20 subsystems.
Only the FSWP library has an operation-complete command (*OPC?); the HA7062C library has none. Only the FSWP library has an error-queue read (SYSTem:ERRor?); the HA7062C library has none. 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.