Phase Noise Analyzer · SCPI command comparison

AnaPico APPH20G vs Holzworth HA7062C: SCPI commands and remote control compared

In TestFlow's instrument library, the AnaPico APPH20G takes 184 SCPI commands, 67 of them queries, and the Holzworth HA7062C takes 109 SCPI commands, 53 of them queries. That is 75 more on the APPH20G. Counting distinct command headers (the command path without its arguments), 5 are accepted by both, 153 exist only on the APPH20G, and 101 only on the HA7062C. 3% of the APPH20G's command headers also exist on the HA7062C.

Both libraries have commands under SENSe, CALCulate, SOUR, and INITiate. Only the APPH20G has SYSTem and ABORt. Only the HA7062C has IP, GPIB, MMEM, STAT, and IDN.

Only the APPH20G library has an operation-complete command (*OPC?); the HA7062C library has none. Only the APPH20G library has an error-queue read (SYSTem:ERRor?); the HA7062C library has none.

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 HA7162C the same command set as the HA7062C, so the HA7062C column applies to it too.

APPH20G commands
184
HA7062C commands
109
Shared headers
5
Unique headers
254

Run this on your bench

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

Get started

APPH20G vs HA7062C 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 APPH20GHolzworth HA7062C
Commands in TestFlow's library184109
Queries (read a value or state)6753
Settings and actions11756
Subsystems1013
Distinct command headers158106
Headers the other lacks153101
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?Not in library
Models on this command setAPPH20G, APPH40G, APPH6040HA7062C, HA7162C

Commands both accept

5 command headers are in both libraries. Where the HA7062C library writes the command differently, its form is shown under the APPH20G's.

CommandWhat it does
SENSe:PN:FREQuency:STARt?HA7062C: :SENS:PN:FREQ:STAR?Read Start Offset. Returns the start offset frequency in Hz.
*SAV <Register>HA7062C: *SAVSave Setup. Saves the instrument settings to the given memory register.
SENSe:PN:FREQuency:STOP?HA7062C: :SENS:PN:FREQ:STOP?Read Stop Offset. Returns the stop offset frequency in Hz.
*RCL <Register>HA7062C: *RCLRecall Setup. Recalls the instrument state from the given memory register.
*RSTReset. Resets the instrument to its default state.

Only on the AnaPico APPH20G

153 command headers in the APPH20G library have no match in the HA7062C library. Below are 21 of them from the 6 largest subsystems; the full list is in the AnaPico APPH20G command reference.

SENSe (77 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 (17 only on the APPH20G)

CommandWhat it does
SYSTem:ERRor:NEXT?Read Error. Returns and removes the next entry in the error queue (0 = No error).
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).

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

CommandWhat it does
*OPT?Read Options. Returns a comma-separated list of the installed options.
*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.

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.

ABORt (1 only on the APPH20G)

CommandWhat it does
ABORtAbort Measurement. Aborts the measurement in progress.

Only on the Holzworth HA7062C

101 command headers in the HA7062C library have no match in the APPH20G library. Below are 23 of them from the 6 largest subsystems; the full list is in the Holzworth HA7062C command reference.

SENS (49 only on the HA7062C)

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

CALC (25 only on the HA7062C)

CommandWhat 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:HOLDCancel 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).

GPIB (8 only on the HA7062C)

CommandWhat 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:ONGPIB EOI Last Char On. Turns GPIB EOI with last character on.
:GPIB:EOIWLC:OFFGPIB EOI Last Char Off. Turns GPIB EOI with last character off.

IP (8 only on the HA7062C)

CommandWhat 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).

SOUR (4 only on the HA7062C)

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

MMEM (3 only on the HA7062C)

CommandWhat 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).

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, the two libraries have no common command with a worked example on both, so each instrument uses its own: SENSe:FREQuency:EXECute on the APPH20G and :SENS:PN:FREQ:CNTR:0.01S on the HA7062C. For the reading, both libraries hold SENSe:PN:FREQuency:STARt? (read start offset); the HA7062C library writes it as :SENS:PN:FREQ:STAR?. 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_HA7062C_ADDRESS")  # Holzworth HA7062C
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("SENSe:FREQuency:EXECute")  # Start Frequency Search
b.write(":SENS:PN:FREQ:CNTR:0.01S")  # Set Freq Counter Interval

# The same reading on both: Read Start Offset
print(a.query("SENSe:PN:FREQuency:STARt?"))
print(b.query(":SENS:PN:FREQ:STAR?"))

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 Holzworth HA7062C and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the AnaPico APPH20G and the Holzworth HA7062C for remote control?

In TestFlow's library the APPH20G has 184 SCPI commands and the HA7062C has 109 SCPI commands. 5 command headers are common to both, 153 are only on the APPH20G (mostly SENSe and CALCulate), and 101 are only on the HA7062C (mostly SENS and CALC).

Can I use the same SCPI code for the AnaPico APPH20G and the Holzworth HA7062C?

Partly. 5 command headers are accepted by both, including SENSe:PN:FREQuency:STARt? and SENSe:PN:FREQuency:STOP?. 254 are not, for example SENSe:MODE on the APPH20G and :SENS:PN:MEAS:TYPE:<Type> on the HA7062C, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the APPH20G or the HA7062C?

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

How do the APPH20G and HA7062C signal operation complete and report errors?

Only the APPH20G library has an operation-complete command (*OPC?); the HA7062C library has none. Only the APPH20G 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.

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.