Phase Noise Analyzer · SCPI command comparison

Holzworth HA7062C vs Keysight E5052B: SCPI commands and remote control compared

In TestFlow's instrument library, the Holzworth HA7062C takes 109 SCPI commands, 53 of them queries, and the Keysight E5052B takes 160 SCPI commands, 24 of them queries. That is 51 more on the E5052B. Counting distinct command headers (the command path without its arguments), 1 are accepted by both, 105 exist only on the HA7062C, and 132 only on the E5052B. 1% of the HA7062C's command headers also exist on the E5052B.

Both libraries have commands under SENS, CALC, SOUR, MMEM, and INIT. Only the HA7062C has IP, GPIB, STAT, and IDN. Only the E5052B has DISPlay, TRIGger, FORMat, SYSTem, and ABORt.

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

HA7062C commands
109
E5052B commands
160
Shared headers
1
Unique headers
237

Run this on your bench

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

Get started

HA7062C vs E5052B 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.

Holzworth HA7062CKeysight E5052B
Commands in TestFlow's library109160
Queries (read a value or state)5324
Settings and actions56136
Subsystems1314
Distinct command headers106133
Headers the other lacks105132
Command languageSCPISCPI
Operation completeNot in library*OPC?
Error queueNot in librarySYSTem:ERRor?
Models on this command setHA7062C, HA7162CE5052B

Commands both accept

1 command header is in both libraries.

CommandWhat it does
*RSTReset. Returns the instrument to the factory default state.

Only on the Holzworth HA7062C

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

SENS (51 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).

Only on the Keysight E5052B

132 command headers in the E5052B library have no match in the HA7062C library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keysight E5052B command reference.

CALCulate (49 only on the E5052B)

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

SENSe (23 only on the E5052B)

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

SOURce (18 only on the E5052B)

CommandWhat it does
:SOURce:VOLTage:CONTrol:LEVel:STATe ONVcontrol On. Turns the DC control voltage output on.
:SOURce:VOLTage:CONTrol:LEVel:AMPLitude <Voltage>Set Vcontrol. Sets the DC control voltage in V (-15 to 35).
: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.

DISPlay (14 only on the E5052B)

CommandWhat it does
:DISPlay:PN1:TRACe1:MODE <Mode>Set Trace Display. Selects data / memory / both trace display.
:DISPlay:PN1:TRACe1:LIMit:LINE ONLimit Line Display On. Turns the limit line display on.
:DISPlay:PN1:LIMit:FSIGn ONFail Sign On. Turns the limit test fail sign display on.
:DISPlay:PN1:TRACe1:Y:SCALe:AUTOAutoscale Y. Executes auto scale of the y-axis.

MMEMory (8 only on the E5052B)

CommandWhat 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:STATe <FileName>Save State. Saves the instrument settings to a file (string in quotes).

IEEE 488.2 common (*) (7 only on the E5052B)

CommandWhat it does
*OPT?Read Options. Returns the installed options.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*CLSClear Status. Clears all event registers and the error queue.
*TST?Self Test. Runs the self-test and returns the result.

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: :SENS:PN:FREQ:CNTR:0.01S on the HA7062C and :TRIGger:OUTPut:STATe ON on the E5052B. 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 :SENSe:PN1:FREQuency:STARt? on the E5052B. 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_E5052B_ADDRESS")  # Keysight E5052B
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(":TRIGger:OUTPut:STATe ON")  # Trigger Output 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(":SENSe:PN1:FREQuency:STARt?"))  # Read Start Offset

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Holzworth HA7062C and the Keysight E5052B for remote control?

In TestFlow's library the HA7062C has 109 SCPI commands and the E5052B has 160 SCPI commands. 1 command headers are common to both, 105 are only on the HA7062C (mostly SENS and CALC), and 132 are only on the E5052B (mostly CALCulate and SENSe).

Can I use the same SCPI code for the Holzworth HA7062C and the Keysight E5052B?

Partly. 1 command headers are accepted by both. 237 are not, for example :SENS:PN:MEAS:TYPE:<Type> on the HA7062C and :CALCulate:PN1:DATA:CARRier? on the E5052B, so a script that uses those needs a separate branch for each instrument.

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

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

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

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