The Keysight E5080A, E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, and P9375A vector network analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 60 commands for it, 14 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 E5080A on a real bench.
Commands
60
Queries
14
Subsystems
13
Models covered
39
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Keysight E5080A, E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, or P9375A 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 E5080A's VISA address
# Paste the address of your Keysight E5080A (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("OUTPut:STATe ON") # RF Power On
print(inst.query("SENSe:FREQuency:STARt?")) # Read Start Freq
inst.close()
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Keysight E5080A, E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, or P9375A and writes the report from the measured results.
Describe the test in a sentence, for example “rf power on on the E5080A, 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.
60 commands in 13 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The E5080A, E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, and P9375A share this command set in TestFlow's library.
Sense (SENSe) (19)
Command
What it does
Arguments
SENSe:FREQuency:STARt <Frequency>
Set Start Freq. Sets the sweep start frequency in Hz.
Number
SENSe:FREQuency:STOP <Frequency>
Set Stop Freq. Sets the sweep stop frequency in Hz.
Number
SENSe:FREQuency:CENTer <Frequency>
Set Center Freq. Sets the sweep center frequency in Hz.
Number
SENSe:FREQuency:SPAN <Frequency>
Set Span Freq. Sets the sweep frequency span in Hz.
Number
SENSe:FREQuency:CW <Frequency>
Set CW Freq. Sets the CW (fixed) frequency in Hz, used in CW/power sweep modes.
Number
SENSe:FREQuency:STARt?
Read Start Freq. Returns the current start frequency in Hz.
None
SENSe:FREQuency:STOP?
Read Stop Freq. Returns the current stop frequency in Hz.
None
SENSe:SWEep:POINts <Points>
Set Points. Sets the number of measurement points per sweep.
Number
SENSe:SWEep:POINts?
Read Points. Returns the number of measurement points per sweep.
None
SENSe:SWEep:TYPE <Type>
Set Sweep Type. Sets the sweep type (linear, log, segment, power, or CW).
Text: LINear,LOGarithmic,SEGMent,POWer,CW
SENSe:SWEep:TIME <Seconds>
Set Sweep Time. Sets the sweep time in seconds.
Number
SENSe:BANDwidth <Bandwidth>
Set IF Bandwidth. Sets the IF (resolution) bandwidth in Hz.
Number
SENSe:BANDwidth?
Read IF Bandwidth. Returns the current IF bandwidth in Hz.
None
SENSe:AVERage:STATe ON
Average On. Enables trace averaging.
None
SENSe:AVERage:STATe OFF
Average Off. Disables trace averaging.
None
SENSe:AVERage:COUNt <Count>
Set Average Count. Sets the number of sweeps to average.
Number
SENSe:AVERage:CLEar
Average Clear. Restarts (clears) the averaging measurement.
None
SENSe:CORRection:STATe ON
Correction On. Turns measurement error correction (calibration) on.
Trigger Single. Triggers a single sweep when not in continuous mode.
None
Display (DISPlay) (3)
Command
What it does
Arguments
DISPlay:WINDow:TRACe:Y:SCALe:AUTO
Autoscale. Autoscales the active trace to fit the display.
None
DISPlay:WINDow:TRACe:Y:SCALe:PDIVision <Per_Div>
Set Y Scale. Sets the vertical scale per division for the active trace.
Number
DISPlay:WINDow:TRACe:Y:SCALe:RLEVel <Level>
Set Ref Level. Sets the reference level for the active trace.
Number
Mass memory (MMEMory) (3)
Command
What it does
Arguments
MMEMory:STORe '<Filename>'
Save State. Saves the instrument state/data to the named file.
Text
MMEMory:LOAD '<Filename>'
Recall State. Recalls an instrument state from the named file.
Text
MMEMory:STORe:SSCReen '<Filename>'
Save Screenshot. Saves a screenshot image to the named file.
Text
Source (SOURce) (2)
Command
What it does
Arguments
SOURce:POWer <Power>
Set Power Level. Sets the source output power level in dBm.
Number
SOURce:POWer?
Read Power Level. Returns the source output power level in dBm.
None
Output (OUTPut) (2)
Command
What it does
Arguments
OUTPut:STATe ON
RF Power On. Turns the RF source power output on.
None
OUTPut:STATe OFF
RF Power Off. Turns the RF source power output off.
None
System (SYSTem) (2)
Command
What it does
Arguments
SYSTem:PRESet
Preset. Presets the analyzer to its default measurement state.
None
SYSTem:ERRor?
Read Error. Reads the next message from the error queue.
None
Trigger (TRIGger) (1)
Command
What it does
Arguments
TRIGger:SOURce <Source>
Set Trigger Source. Sets the trigger source for the sweep.
Text: EXTernal,IMMediate,MANual
Other subsystem (1)
Command
What it does
Arguments
<Output Variable>=<Equation>
Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)
Number; Text
WAIT subsystem (1)
Command
What it does
Arguments
wait(<ms>)
Wait. Waits for number of milliseconds
Number
SAVE subsystem (1)
Command
What it does
Arguments
save2var <Variable_name>
Save2Variable. Saves last measurement to a variable
Text
IEEE 488.2 common commands (6)
Command
What it does
Arguments
*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
Where these commands come from
This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the E5080A, E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, and P9375A 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.
Frequently asked questions
Does the Keysight E5080A support SCPI remote control?
Yes. The Keysight E5080A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 60 SCPI commands for it: 14 queries that read values or state, and 46 settings and actions.
How do I control the Keysight E5080A from Python?
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?, OUTPut:STATe ON and SENSe:FREQuency:STARt?.
Which command reads a value from the Keysight E5080A?
SENSe:FREQuency:STARt? (read start freq). Returns the current start frequency in Hz. The full list of queries is in the command reference on this page, grouped by subsystem.
Can I automate the Keysight E5080A without writing code?
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 E5080A through the TestFlow desktop app, and writes the report from the measured results.
Your next test, automated today
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.