The Holzworth HA7062C and HA7162C phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 109 commands for it, 53 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the HA7062C on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Holzworth HA7062C or HA7162C and writes the report from the measured results.
With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Holzworth HA7062C's VISA address
# Paste the address of your Holzworth HA7062C (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write(":SENS:PN:FREQ:CNTR:0.01S") # Set Freq Counter Interval
print(inst.query(":SENS:PN:MEAS:TYPE?")) # Read Measurement Type
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Holzworth HA7062C or HA7162C and writes the report from the measured results.
Describe the test in a sentence, for example “set freq counter interval on the HA7062C, then read measurement type and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.
109 commands in 13 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The HA7062C and HA7162C share this command set in TestFlow's library.
| Command | What it does | Arguments |
|---|---|---|
| :SENS:PN:MEAS:TYPE:<Type> | Set Measurement Type. Sets the measurement type to be performed (Absolute / Additive / AM Noise / Baseband). | Text: ABSOLUTE,ADDITIVE,AM NOISE,BASEBAND |
| :SENS:PN:MEAS:TYPE? | Read Measurement Type. Reads back the measurement type. | None |
| :SENS:PN:CORR:COUN:<Count> | Set Correlations. Sets the number of cross correlations. | Number |
| :SENS:PN:CORR:COUN? | Read Correlations. Reads back the number of cross correlations. | None |
| :SENS:PN:FREQ:STAR:<Frequency> | Set Offset Start. Sets the frequency offset start (how close to the carrier to measure) in Hz (kHz/MHz suffix accepted). | Number |
| :SENS:PN:FREQ:STAR? | Read Offset Start. Queries the measurement offset start frequency in Hz. | None |
| :SENS:PN:FREQ:STOP:<Frequency> | Set Offset Stop. Sets the frequency offset stop (how far from the carrier to measure) in Hz (kHz/MHz suffix accepted). | Number |
| :SENS:PN:FREQ:STOP? | Read Offset Stop. Queries the measurement offset stop frequency in Hz. | None |
| :SENS:PN:DATA:TYPE:<Type> | Set Data Type. Sets the data type to cross correlation or single channel (default Cross). | Text: CROSS,CHANNEL 1,CHANNEL 2 |
| :SENS:PN:DATA:TYPE? | Read Data Type. Queries the data type (Cross / Channel 1 / Channel 2). | None |
| :SENS:PN:MODE:<Mode> | Set Trigger Type. Sets the trigger type for the measurement. | Text: SINGLE,EACH,CONTINUOUS,PERSIST |
| :SENS:PN:MODE? | Read Trigger Type. Queries the trigger type. | None |
| :SENS:PN:SAMPLES:COUN:<Samples> | Set Data Resolution. Sets the data resolution (number of samples) for the measurement. | Number: 64,128,256,512,1024 |
| :SENS:PN:SAMPLES:COUN? | Read Data Resolution. Queries the data resolution. | None |
| :SENS:PN:MCONV:<Mode> | Set Mixer Conversion. Sets the mixer conversion calculation (Kd) to be calculated automatically or entered manually. | Text: AUTOMATIC,MANUAL |
| :SENS:PN:MCONV? | Read Mixer Conversion. Queries the mixer conversion calculation setting. | None |
| :SENS:PN:VCO:TRUE | Wide Lock BW On. Turns the wide PLL lock bandwidth for VCO measurements on. | None |
| :SENS:PN:VCO:FALSE | Wide Lock BW Off. Turns the wide PLL lock bandwidth off (normal lock bandwidth). | None |
| :SENS:PN:VCO? | Read Lock BW. Queries the PLL lock bandwidth setting (VCO Measurement Enabled/Disabled). | None |
| :SENS:PN:QUAD:SPEC:<Degrees> | Set Quadrature Spec. Specifies the quadrature requirement in degrees for additive measurements. | Text: 0.1,0.2,0.5,1.0,2.0,5.0,10.0,NO LIMIT |
| :SENS:PN:QUAD:SPEC? | Read Quadrature Spec. Queries the quadrature requirement setting. | None |
| :SENS:PN:GAIN:<Gain> | Set IF Gain. Sets the IF gain in dB for the measurement. | Text: AUTO,0,14,28,42 |
| :SENS:PN:GAIN? | Read IF Gain. Queries the IF gain setting. | None |
| :SENS:CORR:POW:STAT:<Splitter> | Set Splitter. Sets the DUT splitter to internal or external. | Text: INTERNAL,EXTERNAL |
| :SENS:CORR:POW:STAT? | Read Splitter. Queries the DUT splitter setting. | None |
| :SENS:PN:MEXT:ON | External Mixer On. Turns use of an external DUT mixer (phase detector) on. | None |
| :SENS:PN:MEXT:OFF | External Mixer Off. Turns use of an external DUT mixer off (internal mixer). | None |
| :SENS:PN:MEXT? | Read External Mixer. Queries the DUT mixer setting. | None |
| :SENS:PN:HX5100:1 | HX5100 In Use On. Tells the instrument that HX5100 phase shifters are in use. | None |
| :SENS:PN:HX5100:0 | HX5100 In Use Off. Tells the instrument that HX5100 phase shifters are not in use. | None |
| :SENS:PN:HX5100? | Read HX5100 In Use. Queries the HX5100 phase shifter setting. | None |
| :SENS:PN:HX4920:1 | HX4920 In Use On. Tells the instrument that HX4920 downconverter(s) are in use. | None |
| :SENS:PN:HX4920:0 | HX4920 In Use Off. Tells the instrument that HX4920 downconverter(s) are not in use. | None |
| :SENS:PN:HX4920? | Read HX4920 In Use. Queries the HX4920 setting. | None |
| :SENS:PN:LO:STATUS:<Mode> | Set LO Mode. Sets the instrument LO mode to internal or external LOs. | Text: INT,EXT |
| :SENS:PN:LO:STATUS? | Read LO Mode. Queries the LO mode setting. | None |
| :SENS:PN:FREQ:CNTR:<Interval> | Set Freq Counter Interval. Sets the frequency counter interval for external LO calibration. | Text: 0.01S,0.02S,0.05S,0.1S,0.2S,0.5S,1S,2S,5S,10S |
| :SENS:PN:FREQ:CNTR? | Read Freq Counter Interval. Queries the frequency counter interval. | None |
| :SENS:PN:<LO>:VTUNE:MAX:<Voltage> | Set LO Vtune Max. Sets the maximum tune voltage in V for an external LO (-10.000 to 12.000). | Text: LO1,LO2; Number: -10,12 |
| :SENS:PN:<LO>:VTUNE:MAX? | Read LO Vtune Max. Queries the maximum tune voltage for the LO. | Text: LO1,LO2 |
| :SENS:PN:<LO>:VTUNE:MIN:<Voltage> | Set LO Vtune Min. Sets the minimum tune voltage in V for an external LO (-10.000 to 12.000). | Text: LO1,LO2; Number: -10,12 |
| :SENS:PN:<LO>:VTUNE:MIN? | Read LO Vtune Min. Queries the minimum tune voltage for the LO. | Text: LO1,LO2 |
| :SENS:PN:DUT:VSUPPLY:<Voltage> | Set DUT Supply Voltage. Sets the DC voltage of the DUT supply in V (0.000 to 12.000). | Number: 0,12 |
| :SENS:PN:DUT:VSUPPLY? | Read DUT Supply Voltage. Queries the DUT supply voltage. | None |
| :SENS:PN:DUT:VTUNE:<Voltage> | Set DUT Tune Voltage. Sets the DUT tune voltage in V (-10.000 to 12.000). | Number: -10,12 |
| :SENS:PN:DUT:VTUNE? | Read DUT Tune Voltage. Queries the DUT tune voltage. | None |
| :SENS:PN:CORE:STATUS? | Read Measurement Status. Queries measurement status (Measurement initialized or Data not ready). | None |
| :SENS:PN:CORE:ERROR? | Read Measurement Error. Checks for measurement error messages. | None |
| :SENS:PN:CORE:DEBUG? | Read Debug Info. Reads back debug information for support. | None |
| :SENS:PN:SWE:POIN? | Read Number Of Points. Returns the number of measurement points. | None |
| :SENS:PN:SWE:SPUR:POIN? | Read Spur Count. Reads back the number of spurs found above the threshold. | None |
| Command | What it does | Arguments |
|---|---|---|
| :CALC:FP:DATA:CARR:<Channel>? | Read DUT Input. Queries the DUT input frequency (Hz) and power level (dBm) for the channel. | Text: CH1,CH2 |
| :CALC:FP:DATA:<LO>? | Read LO Input. Queries the LO input frequency (Hz) and power level (dBm). | Text: LO1,LO2 |
| :CALC:PN:TRACE:HOLD | Cancel LO Calibration. Stops the LO calibration routine. | None |
| :CALC:PN:DATA:FDAT? | Read Amplitude Data. Returns the amplitude data (dBc/Hz) as a comma separated string (smoothed / spur removed if enabled). | None |
| :CALC:PN:DATA:XDAT? | Read Frequency Data. Returns the offset frequency data (Hz) as a comma separated string. | None |
| :CALC:PN:TRAC:MARK?<Offset> | Read Spot Noise. Returns the offset frequency and phase noise value at the given offset (Hz unless kHz/MHz specified). | Number |
| :CALC:PN:TRAC:INTERP:ON | Marker Interpolation On. Turns marker data linear interpolation on. | None |
| :CALC:PN:TRAC:INTERP:OFF | Marker Interpolation Off. Turns marker data linear interpolation off. | None |
| :CALC:PN:TRAC:INTERP? | Read Marker Interpolation. Queries the marker interpolation status. | None |
| :CALC:PN:TRAC:SMO:STAT:ON | Smoothing On. Turns trace smoothing on. | None |
| :CALC:PN:TRAC:SMO:STAT:OFF | Smoothing Off. Turns trace smoothing off. | None |
| :CALC:PN:TRAC:SMO:STAT? | Read Smoothing State. Queries the smoothing status. | None |
| :CALC:PN:TRAC:SMO:PNTS:<Points> | Set Smoothing Points. Sets the number of smoothing points (3 to 99). | Number: 3,99 |
| :CALC:PN:TRAC:SMO:PNTS? | Read Smoothing Points. Queries the number of smoothing points. | None |
| :CALC:PN:TRAC:BDM:X:STAR:<Frequency> | Set Jitter Start. Sets the jitter integration start offset frequency in Hz. | Number |
| :CALC:PN:TRAC:BDM:X:STAR? | Read Jitter Start. Queries the jitter integration start frequency. | None |
| :CALC:PN:TRAC:BDM:X:STOP:<Frequency> | Set Jitter Stop. Sets the jitter integration stop offset frequency in Hz. | Number |
| :CALC:PN:TRAC:BDM:X:STOP? | Read Jitter Stop. Queries the jitter integration stop frequency. | None |
| :CALC:PN:TRAC:FUNC:INT:DATA? | Read Jitter Data. Reads back jitter data: frequency range, RMS noise (degrees), RMS jitter (s). | None |
| :CALC:PN:TRAC:SPUR:OMIS:ON | Spur Removal On. Turns spur removal on. | None |
| :CALC:PN:TRAC:SPUR:OMIS:OFF | Spur Removal Off. Turns spur removal off. | None |
| :CALC:PN:TRAC:SPUR:OMIS? | Read Spur Removal. Queries the spur removal status. | None |
| :CALC:PN:TRAC:SPUR:THR:<Threshold> | Set Spur Threshold. Sets the spur removal threshold in dB (0 to 99). | Number: 0,99 |
| :CALC:PN:TRAC:SPUR:THR? | Read Spur Threshold. Queries the spur removal threshold. | None |
| :CALC:PN:DATA:SDAT? | Read Spur Data. Reads back spur frequency and amplitude (dBc) pairs. | None |
| Command | What it does | Arguments |
|---|---|---|
| :IP:STATUS:<Mode> | Set IP Mode. Sets the IP status to static IP or DHCP (restart required). | Text: STATIC,DHCP |
| :IP:STATUS? | Read IP Mode. Queries the IP status. | None |
| :IP:ADDR:<Address> | Set Static IP. Sets the static IP address. | Text |
| :IP:ADDR? | Read Static IP. Queries the static IP address (not DHCP-assigned addresses). | None |
| :IP:GATEWAY:<Address> | Set Gateway. Sets the gateway IP address for static IP. | Text |
| :IP:GATEWAY? | Read Gateway. Queries the gateway address. | None |
| :IP:SUBNET:<Address> | Set Subnet. Sets the subnet mask for static IP. | Text |
| :IP:SUBNET? | Read Subnet. Queries the subnet mask. | None |
| Command | What it does | Arguments |
|---|---|---|
| :GPIB:ADDR:<Address> | Set GPIB Address. Sets the instrument GPIB address (0 to 30). | Number: 0,30 |
| :GPIB:ADDR? | Read GPIB Address. Queries the GPIB address. | None |
| :GPIB:EOIWLC:ON | GPIB EOI Last Char On. Turns GPIB EOI with last character on. | None |
| :GPIB:EOIWLC:OFF | GPIB EOI Last Char Off. Turns GPIB EOI with last character off. | None |
| :GPIB:EOIWLC? | Read GPIB EOI Last Char. Queries the GPIB EOI with last character setting. | None |
| :GPIB:RESPOND:ON | GPIB Always Respond On. Turns GPIB response to every command on. | None |
| :GPIB:RESPOND:OFF | GPIB Always Respond Off. Turns GPIB response to every command off (responds to queries only). | None |
| :GPIB:RESPOND? | Read GPIB Always Respond. Queries the GPIB response setting. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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). | Text: LO1,LO2; Number |
| :SOUR:<LO>:FREQ? | Read LO Frequency. Queries the internal LO frequency. | Text: LO1,LO2 |
| :SOUR:<LO>:PWR:<Power> | Set LO Power. Sets the power level of the internal LO in dBm (0.00 to 10.00). | Text: LO1,LO2; Number: 0,10 |
| :SOUR:<LO>:PWR? | Read LO Power. Queries the internal LO power level in dBm. | Text: LO1,LO2 |
| Command | What it does | Arguments |
|---|---|---|
| :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). | Number: 1,2; Text |
| :MMEM:PN:CAL:HX5100:VALID? | Read HX5100 Cal Valid. Checks whether all HX5100 calibration data was loaded successfully. | None |
| :MMEM:PN:<LO>:OCXO:CAL? | Read LO Calibration. Reads back the LO calibration table (point, Vtune, freq, power per point). | Text: LO1,LO2 |
| Command | What it does | Arguments |
|---|---|---|
| :INIT:PN:CAL | Start LO Calibration. Begins the calibration process for LO1 and LO2 (poll :STAT:OPER:COND? until ready). | None |
| :INIT:PN:IMM | Start Measurement. Begins the measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| :STAT:OPER:COND? | Read Instrument Status. Returns the instrument status (Instrument Busy or Instrument Ready). | None |
| Command | What it does | Arguments |
|---|---|---|
| :IDN? | Identify. Returns the instrument model number, serial number and comm module firmware version. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *SAV | Save State. Saves the current instrument state to memory. | None |
| *RCL | Recall State. Recalls the saved analyzer state from memory. | None |
| *RST | Reset. Returns the instrument to the factory default state. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Holzworth's programming documentation for the HA7062C and HA7162C and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Holzworth's programming manual: check it before you rely on an edge case. Last updated September 26, 2026.
Yes. The Holzworth HA7062C accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 109 SCPI commands for it: 53 queries that read values or state, and 56 settings and actions.
Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, :SENS:PN:FREQ:CNTR:0.01S and :SENS:PN:MEAS:TYPE?.
:SENS:PN:MEAS:TYPE? (read measurement type). Reads back the measurement type. The full list of queries is in the command reference on this page, grouped by subsystem.
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Holzworth HA7062C through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.