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.
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.
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 | Keysight E5052B | |
|---|---|---|
| Commands in TestFlow's library | 109 | 160 |
| Queries (read a value or state) | 53 | 24 |
| Settings and actions | 56 | 136 |
| Subsystems | 13 | 14 |
| Distinct command headers | 106 | 133 |
| Headers the other lacks | 105 | 132 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | Not in library | SYSTem:ERRor? |
| Models on this command set | HA7062C, HA7162C | E5052B |
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 E5052B 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). |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :SOURce:VOLTage:CONTrol:LEVel:STATe ON | Vcontrol 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. |
| Command | What it does |
|---|---|
| :DISPlay:PN1:TRACe1:MODE <Mode> | Set Trace Display. Selects data / memory / both trace display. |
| :DISPlay:PN1:TRACe1:LIMit:LINE ON | Limit Line Display On. Turns the limit line display on. |
| :DISPlay:PN1:LIMit:FSIGn ON | Fail Sign On. Turns the limit test fail sign display on. |
| :DISPlay:PN1:TRACe1:Y:SCALe:AUTO | Autoscale Y. Executes auto scale of the y-axis. |
| Command | What 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). |
| Command | What it does |
|---|---|
| *OPT? | Read Options. Returns the installed options. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| *TST? | Self Test. Runs the self-test and returns the result. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.