The Keysight 8714ES vector network analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 51 commands for it, 9 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 8714ES on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Keysight 8714ES 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 Keysight 8714ES's VISA address
# Paste the address of your Keysight 8714ES (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("SENSe1:FUNCtion 'XFRequency:S 1,1'") # Measure S11
print(inst.query("SENSe1:FREQuency:STARt?")) # Read Start Freq
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Keysight 8714ES and writes the report from the measured results.
Describe the test in a sentence, for example “measure s11 on the 8714ES, then read start freq 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.
51 commands in 11 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| SENSe1:FUNCtion 'XFRequency:S 1,1' | Measure S11. Selects the S11 parameter for measurement. | None |
| SENSe1:FUNCtion 'XFRequency:S 1,2' | Measure S12. Selects the S12 parameter for measurement. | None |
| SENSe1:FUNCtion 'XFRequency:S 2,1' | Measure S21. Selects the S21 parameter for measurement. | None |
| SENSe1:FUNCtion 'XFRequency:S 2,2' | Measure S22. Selects the S22 parameter for measurement. | None |
| SENSe1:FREQuency:STARt <Frequency> | Set Start Freq. Sets the start frequency (append units such as HZ, MHZ or GHZ). | Number |
| SENSe1:FREQuency:STOP <Frequency> | Set Stop Freq. Sets the stop frequency (append units such as HZ, MHZ or GHZ). | Number |
| SENSe1:FREQuency:CENTer <Frequency> | Set Center Freq. Sets the center frequency (append units). | Number |
| SENSe1:FREQuency:SPAN <Frequency> | Set Span Freq. Sets the frequency span (append units). | Number |
| SENSe1:FREQuency:STARt? | Read Start Freq. Returns the start frequency in Hz. | None |
| SENSe1:FREQuency:STOP? | Read Stop Freq. Returns the stop frequency in Hz. | None |
| SENSe1:SWEep:POINts <Points> | Set Points. Sets the number of measurement points per sweep. | Number: 3,5,11,21,51,101,201,401,801,1601 |
| SENSe1:BWIDth:RESolution <Bandwidth> | Set IF Bandwidth. Sets the IF bandwidth in Hz. | Number: 15,250,1200,3700,4000,6500 |
| SENSe1:AVERage:STATe ON | Average On. Turns trace averaging on. | None |
| SENSe1:AVERage:STATe OFF | Average Off. Turns trace averaging off. | None |
| SENSe1:AVERage:COUNt <Factor> | Set Average Factor. Sets the averaging factor (number of sweeps). | Number |
| SENSe1:AVERage:CLEar | Average Restart. Restarts the averaging measurement. | None |
| SENSe1:CORRection:STATe ON | Correction On. Turns measurement error correction on. | None |
| SENSe1:CORRection:STATe OFF | Correction Off. Turns measurement error correction off. | None |
| Command | What it does | Arguments |
|---|---|---|
| CALCulate1:FORMat MLOGarithmic | Format LogMag. Sets the display format to log magnitude. | None |
| CALCulate1:FORMat PHASe | Format Phase. Sets the display format to phase. | None |
| CALCulate1:FORMat GDELay | Format Delay. Sets the display format to group delay. | None |
| CALCulate1:FORMat SMITh | Format Smith. Sets the display format to Smith chart. | None |
| CALCulate1:FORMat POLar | Format Polar. Sets the display format to polar. | None |
| CALCulate1:FORMat MLINear | Format LinMag. Sets the display format to linear magnitude. | None |
| CALCulate1:FORMat SWR | Format SWR. Sets the display format to SWR. | None |
| CALCulate1:FORMat REAL | Format Real. Sets the display format to real. | None |
| CALCulate1:FORMat IMAGinary | Format Imaginary. Sets the display format to imaginary. | None |
| CALCulate1:MARKer1:STATe ON | Marker 1 On. Turns on marker 1 and makes it active. | None |
| CALCulate1:MARKer:AOFF | Markers Off. Turns all markers off. | None |
| CALCulate1:MARKer1:X <Frequency> | Set Marker Freq. Places marker 1 at the specified frequency (append units). | Number |
| CALCulate1:MARKer1:Y? | Read Marker. Outputs the active marker value (and stimulus) over GPIB. | None |
| CALCulate1:MARKer1:MAXimum | Marker Search Max. Moves the active marker to the trace maximum. | None |
| CALCulate1:MARKer1:MINimum | Marker Search Min. Moves the active marker to the trace minimum. | None |
| Command | What it does | Arguments |
|---|---|---|
| INITiate1:CONTinuous OFF;:INITiate1:IMMediate | Single Sweep. Triggers a single sweep and then holds. | None |
| INITiate1:CONTinuous ON | Continuous Sweep. Sets continuous-sweep trigger mode. | None |
| INITiate1:CONTinuous OFF | Hold. Holds the sweep (stops triggering). | None |
| Command | What it does | Arguments |
|---|---|---|
| DISPlay:WINDow1:TRACe:Y:SCALe:AUTO ONCE | Autoscale. Autoscales the active channel trace. | None |
| DISPlay:WINDow1:TRACe:Y:SCALe:PDIVision <Per_Div> | Set Scale Per Div. Sets the vertical scale per division for the active trace. | Number |
| DISPlay:WINDow1:TRACe:Y:SCALe:RLEVel <Value> | Set Reference Value. Sets the reference value for the active trace. | Number |
| Command | What it does | Arguments |
|---|---|---|
| SOURce1:POWer:LEVel <Power> | Set Power Level. Sets the source output power level in dBm. | Number |
| SOURce1:POWer:LEVel? | Read Power Level. Returns the source output power level in dBm. | None |
| Command | What it does | Arguments |
|---|---|---|
| TRACe:DATA? CH1FDATA | Read Formatted Data. Outputs the formatted trace data array over GPIB. | None |
| TRACe:DATA? CH1SDATA | Read Raw Data. Outputs the corrected (raw) complex data array over GPIB. | None |
| Command | What it does | Arguments |
|---|---|---|
| SYSTem:ERRor? | Read Error. Outputs the next message from the error queue. | None |
| SYSTem:PRESet | Preset. Presets the analyzer to its default state. | 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 |
|---|---|---|
| *IDN? | Identify. Outputs the instrument identification string over GPIB. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
| *CLS | Clear Status. Clears the status registers and error queue. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the 8714ES and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Keysight's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.
Yes. The Keysight 8714ES accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 51 SCPI commands for it: 9 queries that read values or state, and 42 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?, SENSe1:FUNCtion 'XFRequency:S 1,1' and SENSe1:FREQuency:STARt?.
SENSe1:FREQuency:STARt? (read start freq). Returns the start frequency in Hz. 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 Keysight 8714ES 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.