The AnaPico APPH20G, APPH40G, and APPH6040 phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 184 commands for it, 67 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 APPH20G on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your AnaPico APPH20G, APPH40G, or APPH6040 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 AnaPico APPH20G's VISA address
# Paste the address of your AnaPico APPH20G (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("SENSe:FREQuency:EXECute") # Start Frequency Search
print(inst.query("SENSe:MODE?")) # Read Measurement Mode
inst.close()Describe the test; TestFlow's agent uses this command set to drive your AnaPico APPH20G, APPH40G, or APPH6040 and writes the report from the measured results.
Describe the test in a sentence, for example “start frequency search on the APPH20G, then read measurement mode 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.
184 commands in 10 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The APPH20G, APPH40G, and APPH6040 share this command set in TestFlow's library.
| Command | What it does | Arguments |
|---|---|---|
| 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). | Text: PN,VCO,AN,FN,BB,TRAN |
| SENSe:MODE? | Read Measurement Mode. Returns the active measurement mode. | None |
| 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?. | None |
| SENSe:POWer:EXECute | Start Power Measurement. Starts the carrier power measurement; read the result with CALCulate:POWer?. | None |
| SENSe:PN:FREQuency <Frequency> | Set Carrier Frequency. Sets the DUT (carrier) frequency in Hz used when automatic frequency search is off (APPH20G: 1 MHz to 26 GHz with internal references; *RST 100 MHz). | Number |
| SENSe:PN:FREQuency? | Read Carrier Frequency. Returns the DUT (carrier) frequency in Hz. | None |
| SENSe:PN:FREQuency:AUTO ON | Auto Frequency Search On. Turns the automatic frequency search at the start of the measurement on. | None |
| SENSe:PN:FREQuency:AUTO OFF | Auto Frequency Search Off. Turns the automatic frequency search at the start of the measurement off. | None |
| SENSe:PN:FREQuency:DETect <Mode> | Set Frequency Search Mode. Sets how often the automatic frequency search is performed (ALWays every measurement / ONCe since startup / NEVer). | Text: ALWays,ONCe,NEVer |
| SENSe:PN:FREQuency:STARt <Frequency> | Set Start Offset. Sets the start offset frequency in Hz (*RST 10 Hz). | Number |
| SENSe:PN:FREQuency:STARt? | Read Start Offset. Returns the start offset frequency in Hz. | None |
| SENSe:PN:FREQuency:STOP <Frequency> | Set Stop Offset. Sets the stop offset frequency in Hz (*RST 100 MHz). | Number |
| SENSe:PN:FREQuency:STOP? | Read Stop Offset. Returns the stop offset frequency in Hz. | None |
| SENSe:PN:PPD <Points> | Set Points Per Decade. Sets the number of points per decade of the resulting trace (1 to 500; *RST 250). | Number: 1,500 |
| SENSe:PN:PPD? | Read Points Per Decade. Returns the number of points per decade of the resulting trace. | None |
| SENSe:PN:AVERage <Count> | Set Average Count. Sets the average count of the phase noise measurement (1 to 10000; *RST 1). | Number: 1,10000 |
| SENSe:PN:AVERage? | Read Average Count. Returns the average count of the phase noise measurement. | None |
| SENSe:PN:CORRelation <Count> | Set Correlation Count. Sets the number of cross-correlations of the phase noise measurement (1 to 10000; *RST 1). | Number: 1,10000 |
| SENSe:PN:CORRelation? | Read Correlation Count. Returns the number of cross-correlations of the phase noise measurement. | None |
| SENSe:PN:REFerences <Reference> | Set Reference. Selects the references: NORM standard internal / LN low noise internal (option LN) / EXT external (*RST NORM). | Text: NORM,LN,EXT |
| SENSe:PN:REFerences? | Read Reference. Returns the selected reference type. | None |
| SENSe:PN:REFerences<Channel>:SENSitivity <Sensitivity> | Set Reference Sensitivity. Sets the tuning sensitivity in Hz/V of the reference for channel 1 or 2 (0.1 to 500; *RST 10). | Number: 1,2; Number: 0.1,500 |
| SENSe:PN:REFerences<Channel>:SENSitivity? | Read Reference Sensitivity. Returns the tuning sensitivity in Hz/V of the reference for channel 1 or 2. | Number: 1,2 |
| SENSe:PN:REFerences:SENSitivity:EXECute | Execute Reference Sensitivity. Executes the reference sensitivity determination (listed in the command table without further description). | None |
| SENSe:PN:LOBandwidth <Bandwidth> | Set PLL Bandwidth. Sets the PLL bandwidth in Hz (0.1 to 10000; *RST 1). | Number: 0.1,10000 |
| SENSe:PN:LOBandwidth? | Read PLL Bandwidth. Returns the PLL bandwidth in Hz. | None |
| SENSe:PN:LOBandwidth:AUTO ON | Auto PLL Bandwidth On. Turns automatic selection of the optimal PLL bandwidth during the measurement on. | None |
| SENSe:PN:LOBandwidth:AUTO OFF | Auto PLL Bandwidth Off. Turns automatic selection of the optimal PLL bandwidth during the measurement off. | None |
| SENSe:PN:KPHI <Kphi> | Set Kphi. Sets the phase detector constant Kphi in rad/V (*RST 0). | Number |
| SENSe:PN:KPHI? | Read Kphi. Returns the phase detector constant Kphi in rad/V. | None |
| SENSe:PN:KPHI:AUTO ON | Auto Kphi On. Turns the automatic Kphi detection at the start of the measurement on. | None |
| SENSe:PN:KPHI:AUTO OFF | Auto Kphi Off. Turns the automatic Kphi detection at the start of the measurement off. | None |
| SENSe:PN:KPHI:DETect <Mode> | Set Kphi Detect Mode. Sets how often Kphi is automatically detected (ALWays / ONCe / NEVer; shown in the manual programming example). | Text: ALWays,ONCe,NEVer |
| SENSe:PN:IFGain <Gain> | Set IF Gain. Sets the IF gain in dB (0 to 60; *RST 0). | Number: 0,60 |
| SENSe:PN:IFGain? | Read IF Gain. Returns the IF gain in dB. | None |
| SENSe:PN:IFGain:AUTO ON | Auto IF Gain On. Turns the automatic IF gain setting on. | None |
| SENSe:PN:IFGain:AUTO OFF | Auto IF Gain Off. Turns the automatic IF gain setting off. | None |
| SENSe:PN:IFGain:DETect <Mode> | Set IF Gain Detect Mode. Sets how often the IF gain is automatically determined (ALWays / ONCe / NEVer). | Text: ALWays,ONCe,NEVer |
| SENSe:PN:FUNCtion:RANGe <Min>,<Max> | Set Integration Range. Sets the min and max offset frequency in Hz used for jitter / integrated noise / Allan variance (0.1 to 50e6 each). | Number: 0.1,50e6; Number: 0.1,50e6 |
| SENSe:PN:SPURious:OMISsion ON | Spur Omission On. Turns spur omission for the trace and statistical analysis on. | None |
| SENSe:PN:SPURious:OMISsion OFF | Spur Omission Off. Turns spur omission for the trace and statistical analysis off. | None |
| SENSe:PN:SMOothing:APERture <Aperture> | Set Smoothing Aperture. Sets the trace smoothing aperture in percent (0.05 to 20; *RST 0.05). | Number: 0.05,20 |
| SENSe:PN:SMOothing:APERture? | Read Smoothing Aperture. Returns the trace smoothing aperture in percent. | None |
| SENSe:PN:SMOothing:STATe ON | Trace Smoothing On. Turns trace smoothing on. | None |
| SENSe:PN:SMOothing:STATe OFF | Trace Smoothing Off. Turns trace smoothing off. | None |
| SENSe:PN:TEST <Definition> | Set Test Set. Defines the test set as a comma-separated keyword list (O<offset> spot noise / F freq / P power / J jitter / I integrated PN / D residual PM udeg / R residual PM urad / M residual FM) e.g. O1e3,O1e6,F,J. | Text |
| SENSe:PN:TEST? | Read Test Set Definition. Returns the test set definition (not the results). | None |
| SENSe:PN:RESet | Reset PN Measurement. Resets the phase noise measurement; configuration is kept but detect states are reset (ONCe active again). | None |
| SENS:AN:FREQ:AUTO ON | AN Auto Frequency Search On. Turns automatic frequency search for the AN measurement (manual programming example) on. | None |
| SENS:AN:FREQ:AUTO OFF | AN Auto Frequency Search Off. Turns automatic frequency search for the AN measurement (manual programming example) off. | None |
| SENS:AN:FREQ:DET <Mode> | Set AN Frequency Search Mode. Sets how often the AN frequency search is performed (ALWays / ONCe / NEVer; manual programming example). | Text: ALWays,ONCe,NEVer |
| SENS:AN:RES | Reset AN Measurement. Resets the AN measurement configuration (manual programming example). | None |
| SENS:AN:AVER <Count> | Set AN Average Count. Sets the average count of the AN measurement (manual programming example). | Number |
| SENS:AN:CORR <Count> | Set AN Correlation Count. Sets the number of cross-correlations of the AN measurement (manual programming example). | Number |
| SENS:AN:PPD <Points> | Set AN Points Per Decade. Sets the points per decade of the AN trace (manual programming example). | Number |
| SENS:AN:FREQ:STAR <Frequency> | Set AN Start Offset. Sets the AN start offset frequency in Hz (manual programming example). | Number |
| SENS:AN:FREQ:STOP <Frequency> | Set AN Stop Offset. Sets the AN stop offset frequency in Hz (manual programming example). | Number |
| SENS:AN:SPUR:THR <Threshold> | Set AN Spur Threshold. Sets the AN spur detection threshold in dB (manual programming example). | Number |
| SENS:AN:SPUR:OMIS ON | AN Spur Omission On. Turns spur omission for the AN trace (manual programming example) on. | None |
| SENS:AN:SPUR:OMIS OFF | AN Spur Omission Off. Turns spur omission for the AN trace (manual programming example) off. | None |
| SENS:AN:SMO:APER <Aperture> | Set AN Smoothing Aperture. Sets the AN trace smoothing aperture in percent (manual programming example). | Number |
| SENS:AN:SMO:STAT ON | AN Trace Smoothing On. Turns AN trace smoothing (manual programming example) on. | None |
| SENS:AN:SMO:STAT OFF | AN Trace Smoothing Off. Turns AN trace smoothing (manual programming example) off. | None |
| SENS:FN:FREQ:AUTO ON | FN Auto Frequency Search On. Turns automatic frequency search for the FN measurement (manual programming example) on. | None |
| SENS:FN:FREQ:AUTO OFF | FN Auto Frequency Search Off. Turns automatic frequency search for the FN measurement (manual programming example) off. | None |
| SENS:FN:FREQ:DET <Mode> | Set FN Frequency Search Mode. Sets how often the FN frequency search is performed (ALWays / ONCe / NEVer; manual programming example). | Text: ALWays,ONCe,NEVer |
| SENS:FN:RES | Reset FN Measurement. Resets the FN measurement configuration (manual programming example). | None |
| SENS:FN:AVER <Count> | Set FN Average Count. Sets the average count of the FN measurement (manual programming example). | Number |
| SENS:FN:CORR <Count> | Set FN Correlation Count. Sets the number of cross-correlations of the FN measurement (manual programming example). | Number |
| SENS:FN:PPD <Points> | Set FN Points Per Decade. Sets the points per decade of the FN trace (manual programming example). | Number |
| SENS:FN:FREQ:STAR <Frequency> | Set FN Start Offset. Sets the FN start offset frequency in Hz (manual programming example). | Number |
| SENS:FN:FREQ:STOP <Frequency> | Set FN Stop Offset. Sets the FN stop offset frequency in Hz (manual programming example). | Number |
| SENS:FN:SPUR:THR <Threshold> | Set FN Spur Threshold. Sets the FN spur detection threshold in dB (manual programming example). | Number |
| SENS:FN:SPUR:OMIS ON | FN Spur Omission On. Turns spur omission for the FN trace (manual programming example) on. | None |
| SENS:FN:SPUR:OMIS OFF | FN Spur Omission Off. Turns spur omission for the FN trace (manual programming example) off. | None |
| SENS:FN:SMO:APER <Aperture> | Set FN Smoothing Aperture. Sets the FN trace smoothing aperture in percent (manual programming example). | Number |
| SENS:FN:SMO:STAT ON | FN Trace Smoothing On. Turns FN trace smoothing (manual programming example) on. | None |
| SENS:FN:SMO:STAT OFF | FN Trace Smoothing Off. Turns FN trace smoothing (manual programming example) off. | None |
| SENSe:VCO:TEST:FREQuency ON | VCO Test Frequency On. Turns the frequency parameter of the VCO characterization on. | None |
| SENSe:VCO:TEST:FREQuency OFF | VCO Test Frequency Off. Turns the frequency parameter of the VCO characterization off. | None |
| SENSe:VCO:TEST:ISUPply ON | VCO Test Supply Current On. Turns the supply current parameter of the VCO characterization on. | None |
| SENSe:VCO:TEST:ISUPply OFF | VCO Test Supply Current Off. Turns the supply current parameter of the VCO characterization off. | None |
| SENSe:VCO:TEST:KPUShing ON | VCO Test Pushing On. Turns the pushing parameter of the VCO characterization on. | None |
| SENSe:VCO:TEST:KPUShing OFF | VCO Test Pushing Off. Turns the pushing parameter of the VCO characterization off. | None |
| SENSe:VCO:TEST:KVCO ON | VCO Test Kvco On. Turns the tune sensitivity (Kvco) parameter of the VCO characterization on. | None |
| SENSe:VCO:TEST:KVCO OFF | VCO Test Kvco Off. Turns the tune sensitivity (Kvco) parameter of the VCO characterization off. | None |
| SENSe:VCO:TEST:PNoise ON | VCO Test Phase Noise On. Turns the spot phase noise parameter of the VCO characterization on. | None |
| SENSe:VCO:TEST:PNoise OFF | VCO Test Phase Noise Off. Turns the spot phase noise parameter of the VCO characterization off. | None |
| SENSe:VCO:TEST:POWer ON | VCO Test Power On. Turns the power parameter of the VCO characterization on. | None |
| SENSe:VCO:TEST:POWer OFF | VCO Test Power Off. Turns the power parameter of the VCO characterization off. | None |
| SENSe:VCO:TEST:PNoise:OFFSet <Offsets> | Set VCO PN Offsets. Sets up to 4 comma-separated offset frequencies in Hz for the VCO spot phase noise (blank = 0 = disabled; *RST 10k,100k,1M,10M). | Text |
| SENSe:VCO:TEST:PNoise:OFFSet<Select>? | Read VCO PN Offset. Returns the VCO spot noise offset frequency in Hz for the selected offset (1 to 4). | Number: 1,2,3,4 |
| SENSe:VCO:TEST:PNoise:COUNt? | Read VCO PN Offset Count. Returns the number of VCO spot noise offsets that are set. | None |
| SENSe:VCO:TYPE <Type> | Set VCO Type. Selects the DUT type: fast tuning VCO or slow tuning VCXO (*RST VCO). | Text: VCO,VCXO |
| SENSe:VCO:VOLTage:POINts <Points> | Set VCO Voltage Points. Sets the number of tune voltage points of the VCO characterization (*RST 10). | Number |
| SENSe:VCO:VOLTage:STARt <Voltage> | Set VCO Start Voltage. Sets the start tuning voltage in V (*RST 0). | Number |
| SENSe:VCO:VOLTage:STOP <Voltage> | Set VCO Stop Voltage. Sets the stop tuning voltage in V (*RST 5). | Number |
| Command | What it does | Arguments |
|---|---|---|
| CALCulate:WAIT:AVERage ALL | Wait Measurement Complete. Blocks further SCPI requests until the measurement is complete (no timeout). | None |
| CALCulate:WAIT:AVERage NEXT | Wait Next Iteration. Blocks further SCPI requests until the next iteration is complete (no timeout). | None |
| CALCulate:WAIT:AVERage <Event>,<Timeout> | Wait Measurement Event. Blocks until the event (NEXT / ALL / iteration number) occurs or the timeout in ms expires (timeout returns error -393416). | Text: NEXT,ALL; Number |
| CALCulate:FREQuency? | Read Detected Frequency. Returns the carrier frequency in Hz detected by the last frequency search. | None |
| CALCulate:POWer? | Read Detected Power. Returns the carrier power level in dBm detected by the last frequency search. | None |
| 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). | None |
| CALCulate:PN:TRACe:NOISe? | Read PN Trace Noise. Returns the phase noise points in dBc/Hz of the most recent measurement as block data. | None |
| CALCulate:PN:TRACe:SPOT? <Offset> | Measure PN Spot Noise. Returns the phase noise in dBc/Hz of the last measurement at the given offset frequency in Hz. | Number |
| CALCulate:PN:TRACe:SPURious:FREQuency? | Read PN Spur Frequencies. Returns the offset frequencies in Hz of the spurs in the active trace as block data. | None |
| CALCulate:PN:TRACe:SPURious:POWer? | Read PN Spur Powers. Returns the power values in dBc of the spurs in the active trace as block data. | None |
| CALCulate:PN:TRACe:FUNCtion:JITTer? | Measure RMS Jitter. Returns the RMS jitter in s of the current trace over the SENSe:PN:FUNCtion:RANGe offset range. | None |
| CALCulate:PN:TRACe:FUNCtion:INTegral? | Measure Integrated Phase Noise. Returns the integrated phase noise in dBc of the current trace over the SENSe:PN:FUNCtion:RANGe offset range. | None |
| CALCulate:PN:TRACe:FUNCtion:AVARiance | Calculate Allan Variance. Calculates the Allan variance of the current trace over the SENSe:PN:FUNCtion:RANGe offset range. | None |
| CALCulate:PN:TRACe:FUNCtion:AVARiance:TAU? | Read Allan Variance Tau. Returns the tau values in s of the calculated Allan variance as block data. | None |
| CALCulate:PN:TRACe:FUNCtion:AVARiance:SIGMa? | Read Allan Variance Sigma. Returns the sigma values of the calculated Allan variance as block data. | None |
| CALCulate:PN:PRELiminary:AVERage? | Read PN Preliminary Averages. Returns the number of averages of the current phase noise data saved on the device. | None |
| CALCulate:PN:PRELiminary:CORRelation? | Read PN Preliminary Correlations. Returns the number of cross-correlations of the current phase noise data saved on the device. | None |
| CALCulate:PN:TEST? | Read Test Set Results. Returns the comma-separated results of the test set defined with SENSe:PN:TEST from the last measurement. | None |
| CALCulate:AN:TRACe:FREQuency? | Read AN Trace Frequency. Returns the offset frequency values in Hz of the current AN measurement as block data. | None |
| CALCulate:AN:TRACe:NOISe? | Read AN Trace Noise. Returns the amplitude noise spectrum values in dBc/Hz of the current measurement as block data. | None |
| CALCulate:AN:TRACe:SPOT? <Offset> | Measure AN Spot Noise. Returns the amplitude noise value in dBc/Hz at the given offset frequency in Hz. | Number |
| CALCulate:AN:TRACe:SPURious:FREQuency? | Read AN Spur Frequencies. Returns the offset frequencies in Hz of the spurs in the active AN trace as block data. | None |
| CALCulate:AN:TRACe:SPURious:POWer? | Read AN Spur Powers. Returns the power values in dBc of the spurs in the active AN trace as block data. | None |
| CALCulate:AN:PRELiminary:AVERage? | Read AN Preliminary Averages. Returns the number of averages of the current preliminary AN result. | None |
| CALCulate:AN:PRELiminary:CORRelation? | Read AN Preliminary Correlations. Returns the number of cross-correlations of the current preliminary AN result. | None |
| CALCulate:FN:TRACe:FREQuency? | Read FN Trace Frequency. Returns the offset frequency values in Hz of the current FN measurement as block data. | None |
| CALCulate:FN:TRACe:NOISe? | Read FN Trace Noise. Returns the phase noise (FN mode) spectrum values in dBc/Hz of the current measurement as block data. | None |
| CALCulate:FN:TRACe:SPOT? <Offset> | Measure FN Spot Noise. Returns the phase noise (FN mode) value in dBc/Hz at the given offset frequency in Hz. | Number |
| CALCulate:FN:TRACe:SPURious:FREQuency? | Read FN Spur Frequencies. Returns the offset frequencies in Hz of the spurs in the active FN trace as block data. | None |
| CALCulate:FN:TRACe:SPURious:POWer? | Read FN Spur Powers. Returns the power values in dBc of the spurs in the active FN trace as block data. | None |
| CALCulate:FN:PRELiminary:AVERage? | Read FN Preliminary Averages. Returns the number of averages of the current preliminary FN result. | None |
| CALCulate:FN:PRELiminary:CORRelation? | Read FN Preliminary Correlations. Returns the number of cross-correlations of the current preliminary FN result. | None |
| CALCulate:VCO:TRACe:FREQuency? | Read VCO Frequency. Returns the frequency in Hz at each tune voltage point as block data. | None |
| CALCulate:VCO:TRACe:ISupply? | Read VCO Supply Current. Returns the supply current in A at each tune voltage point as block data. | None |
| CALCulate:VCO:TRACe:KPUSh? | Read VCO Pushing. Returns the pushing in Hz/V at each tune voltage point as block data. | None |
| CALCulate:VCO:TRACe:KVCO? | Read VCO Kvco. Returns the tune sensitivity Kv in Hz/V at each tune voltage point as block data. | None |
| CALCulate:VCO:TRACe:PNoise? <Offset> | Read VCO Phase Noise. Returns the phase noise in dBc/Hz at each tune voltage point for offset 1 to 4 (SENSe:VCO:TEST:PNoise:OFFSet) as block data. | Number: 1,2,3,4 |
| CALCulate:VCO:TRACe:POWer? | Read VCO Power. Returns the power in dBm at each tune voltage point as block data. | None |
| CALCulate:VCO:TRACe:VOLTage? | Read VCO Voltage. Returns the tune voltage values in V of each measurement point as block data. | None |
| CALCulate:VCO:ITERation? | Read VCO Iteration. Returns the iteration of the current VCO characterization (call CALCulate:VCO:WAIT first). | None |
| CALCulate:VCO:WAIT ALL | VCO Wait Complete. Blocks until the VCO characterization is finished. | None |
| CALCulate:VCO:WAIT <Event>,<Timeout> | VCO Wait Event. Blocks until the requested VCO iteration (NEXT / ALL / iteration number) is ready or the timeout in ms expires. | Text: NEXT,ALL; Number |
| Command | What it does | Arguments |
|---|---|---|
| SYSTem:ERRor:NEXT? | Read Error. Returns and removes the next entry in the error queue (0 = No error). | None |
| SYSTem:ERRor:ALL? | Read All Errors. Returns all entries in the error queue and clears it (0 = measurement ok). | None |
| SYSTem:RESTart | Restart System. Restarts the instrument (same as a power cycle; terminates the connection). | None |
| SYSTem:COMMunicate:GPIB:ADDRess <Address> | Set GPIB Address. Sets the GPIB address (1 to 30). | Number: 1,30 |
| SYSTem:COMMunicate:GPIB:ADDRess? | Read GPIB Address. Returns the GPIB address. | None |
| SYSTem:COMMunicate:LAN:CONFig <Mode> | Set LAN Config. Selects the IP configuration mode (DHCP / MANual / AUTO = DHCP with Auto-IP fallback). | Text: DHCP,MANual,AUTO |
| SYSTem:COMMunicate:LAN:CONFig? | Read LAN Config. Returns the IP configuration mode. | None |
| SYSTem:COMMunicate:LAN:IP <IP> | Set LAN IP. Sets the IP address (quoted string e.g. "192.168.1.100"). | Text |
| SYSTem:COMMunicate:LAN:IP? | Read LAN IP. Returns the current IP address. | None |
| SYSTem:COMMunicate:LAN:SUBNet <Mask> | Set LAN Subnet. Sets the subnet mask (quoted string e.g. "255.255.255.0"). | Text |
| SYSTem:COMMunicate:LAN:SUBNet? | Read LAN Subnet. Returns the current subnet mask. | None |
| SYSTem:COMMunicate:LAN:GATEway <Gateway> | Set LAN Gateway. Sets the default gateway (quoted string e.g. "192.168.1.1"). | Text |
| SYSTem:COMMunicate:LAN:GATEway? | Read LAN Gateway. Returns the current default gateway. | None |
| SYSTem:COMMunicate:LAN:RESTart | Restart LAN. Restarts the network to apply LAN setting changes. | None |
| SYSTem:COMMunicate:LAN:DEFaults | Restore LAN Defaults. Restores the factory default LAN settings (AUTO mode). | None |
| SYSTem:COMMunicate:LAN:RTMO <Timeout> | Set LAN Reconnect Timeout. Sets the LAN reconnect timeout in s (INFinite or 0 to 1e6). | Text |
| SYSTem:COMMunicate:VXI:RTMO <Timeout> | Set VXI Reconnect Timeout. Sets the VXI-11 reconnect timeout in s (INFinite or 0 to 1e6). | Text |
| Command | What it does | Arguments |
|---|---|---|
| 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). | Number: 1,2; Number: 0,15 |
| SOUR:SUPP<Channel>:STAT ON | Supply On. Turns the DUT DC supply of the channel on (manual VCO programming example). | Number: 1,2 |
| SOUR:SUPP<Channel>:STAT OFF | Supply Off. Turns the DUT DC supply of the channel off (manual VCO programming example). | Number: 1,2 |
| SOURce:TUNE:DUT:VOLT <Voltage> | Set DUT Tune Voltage. Sets the voltage in V at the DUT TUNE port (*RST 0). | Number |
| SOURce:TUNE:DUT:VOLT? | Read DUT Tune Voltage. Returns the configured DUT TUNE port voltage in V. | None |
| SOURce:TUNE:DUT:STAT ON | DUT Tune On. Turns the DUT TUNE port output on. | None |
| SOURce:TUNE:DUT:STAT OFF | DUT Tune Off. Turns the DUT TUNE port output off. | None |
| Command | What it does | Arguments |
|---|---|---|
| INITiate:IMMediate | Start Measurement. Arms the trigger and starts the measurement in the active mode. | None |
| Command | What it does | Arguments |
|---|---|---|
| ABORt | Abort Measurement. Aborts the measurement in progress. | 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 |
|---|---|---|
| *OPT? | Read Options. Returns a comma-separated list of the installed options. | None |
| *OPC | Operation Complete Bit. Sets bit 0 of the Standard Event Status Register when all pending operations have finished. | None |
| *ESE <Value> | Set Event Status Enable. Sets the Standard Event Status Enable register (0 to 255). | Number: 0,255 |
| *ESR? | Read Event Status. Returns the Standard Event Status Register. | None |
| *SRE <Value> | Set Service Request Enable. Sets the Service Request Enable register (0 to 255). | Number: 0,255 |
| *SRE? | Read Service Request Enable. Returns the Service Request Enable register. | None |
| *STB? | Read Status Byte. Returns the status byte including the master summary status bit. | None |
| *SAV <Register> | Save Setup. Saves the instrument settings to the given memory register. | Number |
| *RCL <Register> | Recall Setup. Recalls the instrument state from the given memory register. | Number |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear Status. Clears all event registers and the error queue. | None |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
| *TRG | Trigger Bus. Triggers the device if LAN is the selected trigger source (otherwise ignored). | None |
This reference is generated from TestFlow's instrument library, which is drafted from AnaPico's programming documentation for the APPH20G, APPH40G, and APPH6040 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by AnaPico's programming manual: check it before you rely on an edge case. Last updated September 26, 2026.
Yes. The AnaPico APPH20G accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 184 SCPI commands for it: 67 queries that read values or state, and 117 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?, SENSe:FREQuency:EXECute and SENSe:MODE?.
SENSe:MODE? (read measurement mode). Returns the active measurement mode. 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 AnaPico APPH20G 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.