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.
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.
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 APPH20G | Holzworth HA7062C | |
|---|---|---|
| Commands in TestFlow's library | 184 | 109 |
| Queries (read a value or state) | 67 | 53 |
| Settings and actions | 117 | 56 |
| Subsystems | 10 | 13 |
| Distinct command headers | 158 | 106 |
| Headers the other lacks | 153 | 101 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | APPH20G, APPH40G, APPH6040 | HA7062C, HA7162C |
5 command headers are in both libraries. Where the HA7062C library writes the command differently, its form is shown under the APPH20G's.
| Command | What it does |
|---|---|
| SENSe:PN:FREQuency:STARt?HA7062C: :SENS:PN:FREQ:STAR? | Read Start Offset. Returns the start offset frequency in Hz. |
| *SAV <Register>HA7062C: *SAV | Save 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: *RCL | Recall Setup. Recalls the instrument state from the given memory register. |
| *RST | Reset. Resets the instrument to its default state. |
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.
| Command | What 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:EXECute | Start Frequency Search. Starts the carrier frequency search (followed automatically by a power measurement); read results with CALCulate:FREQuency? and CALCulate:POWer?. |
| SENSe:POWer:EXECute | Start Power Measurement. Starts the carrier power measurement; read the result with CALCulate:POWer?. |
| Command | What it does |
|---|---|
| CALCulate:WAIT:AVERage ALL | Wait 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). |
| Command | What 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:RESTart | Restart 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). |
| Command | What it does |
|---|---|
| *OPT? | Read Options. Returns a comma-separated list of the installed options. |
| *OPC | Operation 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. |
| Command | What 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 ON | Supply 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. |
| Command | What it does |
|---|---|
| ABORt | Abort Measurement. Aborts the measurement in progress. |
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.
| 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). |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.