Phase Noise Analyzer · SCPI command reference

Keysight E5045A, E5046A, and E5047A SCPI commands

The Keysight E5045A, E5046A, and E5047A phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 117 commands for it, 49 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 E5045A on a real bench.

Commands
117
Queries
49
Subsystems
10
Models covered
3

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight E5045A, E5046A, or E5047A and writes the report from the measured results.

Get started

Control the Keysight E5045A from Python

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 E5045A's VISA address

# Paste the address of your Keysight E5045A (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:PN:FREQuency:AUTO ON")  # Auto Frequency Search On
print(inst.query("SENSe:MODE?"))  # Read Measurement Mode

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight E5045A, E5046A, or E5047A and writes the report from the measured results.

Get started

Run a E5045A test without writing code

Describe the test in a sentence, for example “auto frequency search on on the E5045A, 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.

Get started

SCPI command reference

117 commands in 10 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The E5045A, E5046A, and E5047A share this command set in TestFlow's library.

Sense (SENSe) (53)

CommandWhat it doesArguments
SENSe:MODE <Mode>Set Measurement Mode. Selects the measurement mode (PN phase noise / VCO characterization / AN amplitude noise / FN frequency noise).Text: PN,VCO,AN,FN
SENSe:MODE?Read Measurement Mode. Returns the active measurement mode.None
SENSe:PN:REFerences <Reference>Set References. Selects standard internal (NORM), low noise internal (LN, option) or external references.Text: NORM,LN,EXT
SENSe:PN:REFerences<Ref>:SENSitivity <Sensitivity>Set Reference Sensitivity. Sets the tuning sensitivity in Hz/V of reference 1 or 2 (0.1 to 500).Number: 1,2; Number: 0.1,500
SENSe:PN:FREQuency <Frequency>Set DUT Frequency. Sets the DUT (carrier) frequency in Hz (*RST 100 MHz).Number
SENSe:PN:FREQuency?Read DUT Frequency. Returns the DUT frequency setting in Hz.None
SENSe:PN:FREQuency:AUTO ONAuto Frequency Search On. Turns the automatic frequency search at measurement start on.None
SENSe:PN:FREQuency:AUTO OFFAuto Frequency Search Off. Turns the automatic frequency search at measurement start off.None
SENSe:PN:FREQuency:DETect <When>Set Frequency Detect. Sets how often the automatic frequency search is performed.Text: ALWays,ONCE,NEVer
SENSe:PN:FREQuency:STARt <Frequency>Set Start Offset. Sets the start offset frequency in Hz (*RST 10).Number
SENSe:PN:FREQuency:STOP <Frequency>Set Stop Offset. Sets the stop offset frequency in Hz (*RST 100 MHz).Number
SENSe:PN:AVERage <Count>Set Average Count. Sets the average count of the measurement (1 to 10000).Number: 1,10000
SENSe:PN:CORRelation <Count>Set Correlation Count. Sets the number of cross correlations (1 to 10000).Number: 1,10000
SENSe:PN:PPD <Points>Set Points Per Decade. Sets the number of points per decade of the resulting trace (1 to 500).Number: 1,500
SENSe:PN:FUNCtion:RANGe <Min>,<Max>Set Analysis Range. Sets the offset range in Hz used for integral / jitter / Allan variance analysis.Number; Number
SENSe:PN:IFGain <Gain>Set IF Gain. Sets the IF gain in dB (0 to 60).Number: 0,60
SENSe:PN:IFGain:AUTO ONAuto IF Gain On. Turns automatic IF gain setting on.None
SENSe:PN:IFGain:AUTO OFFAuto IF Gain Off. Turns automatic IF gain setting off.None
SENSe:PN:IFGain:DETect <When>Set IF Gain Detect. Sets how often the IF gain is automatically determined.Text: ALWays,ONCe,NEVer
SENSe:PN:KPHI <Kphi>Set Kphi. Sets the phase detector constant Kphi in rad/V.Number
SENSe:PN:KPHI:AUTO ONAuto Kphi On. Turns automatic Kphi detection at measurement start on.None
SENSe:PN:KPHI:AUTO OFFAuto Kphi Off. Turns automatic Kphi detection at measurement start off.None
SENSe:PN:LOBandwidth <Bandwidth>Set PLL Bandwidth. Sets the PLL bandwidth in Hz (0.1 to 10000).Number: 0.1,10000
SENSe:PN:LOBandwidth:AUTO ONAuto PLL Bandwidth On. Turns automatic PLL bandwidth selection on.None
SENSe:PN:LOBandwidth:AUTO OFFAuto PLL Bandwidth Off. Turns automatic PLL bandwidth selection off.None
SENSe:PN:RESetReset Measurement. Resets the measurement detection state while keeping the configuration.None
SENSe:PN:SMOothing:STATe ONSmoothing On. Turns trace smoothing on.None
SENSe:PN:SMOothing:STATe OFFSmoothing Off. Turns trace smoothing off.None
SENSe:PN:SMOothing:APERture <Percent>Set Smoothing Aperture. Sets the smoothing aperture in percent (0.05 to 20).Number: 0.05,20
SENSe:PN:SPURious:OMISsion ONSpur Omission On. Turns spur omission for the trace and statistical analysis on.None
SENSe:PN:SPURious:OMISsion OFFSpur Omission Off. Turns spur omission for the trace and statistical analysis off.None
SENSe:PN:TEST <Definition>Define Test Set. Defines the test set as a comma separated keyword list (e.g. O1e3,O1e6,F,P,J,I,D,R,M).Text
SENSe:PN:TEST?Read Test Set Definition. Returns the test set definition.None
SENSe:FREQuency:EXECute?Execute Frequency Search. Starts the frequency search (followed by a power measurement if a signal is found).None
SENSe:POWer:EXECute?Execute Power Measurement. Starts the power measurement.None
SENSe:VCO:TEST:FREQuency ONVCO Test Frequency On. Turns the VCO characterization frequency parameter on.None
SENSe:VCO:TEST:FREQuency OFFVCO Test Frequency Off. Turns the VCO characterization frequency parameter off.None
SENSe:VCO:TEST:ISUPply ONVCO Test Supply Current On. Turns the VCO characterization supply current parameter on.None
SENSe:VCO:TEST:ISUPply OFFVCO Test Supply Current Off. Turns the VCO characterization supply current parameter off.None
SENSe:VCO:TEST:KPUShing ONVCO Test Pushing On. Turns the VCO characterization pushing parameter on.None
SENSe:VCO:TEST:KPUShing OFFVCO Test Pushing Off. Turns the VCO characterization pushing parameter off.None
SENSe:VCO:TEST:KVCO ONVCO Test Kvco On. Turns the VCO characterization tuning sensitivity (Kvco) parameter on.None
SENSe:VCO:TEST:KVCO OFFVCO Test Kvco Off. Turns the VCO characterization tuning sensitivity (Kvco) parameter off.None
SENSe:VCO:TEST:PNoise ONVCO Test Phase Noise On. Turns the VCO characterization phase noise parameter on.None
SENSe:VCO:TEST:PNoise OFFVCO Test Phase Noise Off. Turns the VCO characterization phase noise parameter off.None
SENSe:VCO:TEST:POWer ONVCO Test Power On. Turns the VCO characterization power parameter on.None
SENSe:VCO:TEST:POWer OFFVCO Test Power Off. Turns the VCO characterization power parameter off.None
SENSe:VCO:TEST:PNoise:OFFSet <Offsets>Set VCO PN Offsets. Sets up to four comma separated offset frequencies in Hz for VCO phase noise.Text
SENSe:VCO:TEST:PNoise:COUNt?Read VCO PN Offset Count. Returns the number of VCO phase noise offsets set.None
SENSe:VCO:TYPE <Type>Set VCO Type. Sets the DUT type (VCXO for slow / VCO for fast tuning sensitivity).Text: VCO,VCXO
SENSe:VCO:VOLTage:POINts <Points>Set VCO Voltage Points. Sets the number of tune voltage points (*RST 10).Number
SENSe:VCO:VOLTage:STARt <Voltage>Set VCO Start Voltage. Sets the start tuning voltage in V.Number
SENSe:VCO:VOLTage:STOP <Voltage>Set VCO Stop Voltage. Sets the stop tuning voltage in V.Number

Calculate (CALCulate) (40)

CommandWhat it doesArguments
CALCulate:FREQuency?Read Detected Frequency. Returns the detected frequency in Hz from the frequency search.None
CALCulate:POWer?Read Detected Power. Returns the detected power level in dBm from the frequency search.None
CALCulate:WAIT:AVERage <Event>Wait For Measurement. Blocks until the next iteration (NEXT) or the whole measurement (ALL) is complete.Text: NEXT,ALL
CALCulate:WAIT:AVERage <Event>,<Timeout>Wait For Measurement Timeout. Blocks until the event (NEXT / ALL / iteration number) or the timeout in ms occurs.Text: NEXT,ALL; Number
CALCulate:PN:TEST?Read PN Test Set. Returns the comma separated results of the defined test set.None
CALCulate:PN:TRACe:FREQuency?Read PN Frequencies. Returns the offset frequency points in Hz of the last measurement (block data).None
CALCulate:PN:TRACe:NOISe?Read PN Noise. Returns the phase noise points in dBc/Hz of the last measurement (block data).None
CALCulate:PN:TRACe:SPOT? <Offset>Measure PN Spot Noise. Returns the phase noise in dBc/Hz at the given offset frequency in Hz.Number
CALCulate:PN:TRACe:FUNCtion:AVARianceCalculate Allan Variance. Calculates the Allan variance of the current trace over the analysis range.None
CALCulate:PN:TRACe:FUNCtion:AVARiance:SIGMa?Read Allan Sigma. Returns the Allan variance sigma values (block data).None
CALCulate:PN:TRACe:FUNCtion:AVARiance:TAU?Read Allan Tau. Returns the Allan variance tau values in s (block data).None
CALCulate:PN:TRACe:FUNCtion:INTegral?Measure Integrated Noise. Returns the integrated phase noise in dBc over the analysis range.None
CALCulate:PN:TRACe:FUNCtion:JITTer?Measure RMS Jitter. Returns the RMS jitter in s over the analysis range.None
CALCulate:PN:TRACe:SPURious:FREQuency?Read PN Spur Frequencies. Returns the offset frequencies in Hz of the spurs (block data).None
CALCulate:PN:TRACe:SPURious:POWer?Read PN Spur Powers. Returns the power values in dBc of the spurs (block data).None
CALCulate:PN:PRELiminary:AVERage?Read PN Averages Done. Returns the number of averages of the current data.None
CALCulate:PN:PRELiminary:CORRelation?Read PN Correlations Done. Returns the number of cross correlations of the current data.None
CALCulate:AN:TRACe:FREQuency?Read AN Frequencies. Returns the offset frequencies in Hz of the amplitude noise measurement (block data).None
CALCulate:AN:TRACe:NOISe?Read AN Noise. Returns the amplitude noise spectrum in dBc/Hz (block data).None
CALCulate:AN:TRACe:SPOT? <Offset>Measure AN Spot Noise. Returns the amplitude noise in dBc/Hz at the given offset in Hz.Number
CALCulate:AN:TRACe:SPURious:FREQuency?Read AN Spur Frequencies. Returns the spur offset frequencies in Hz of the amplitude noise trace.None
CALCulate:AN:TRACe:SPURious:POWer?Read AN Spur Powers. Returns the spur powers in dBc of the amplitude noise trace.None
CALCulate:AN:PRELiminary:AVERage?Read AN Averages Done. Returns the number of averages of the current amplitude noise result.None
CALCulate:AN:PRELiminary:CORRelation?Read AN Correlations Done. Returns the number of cross correlations of the current amplitude noise result.None
CALCulate:FN:TRACe:FREQuency?Read FN Frequencies. Returns the offset frequencies in Hz of the frequency-noise mode phase noise measurement (block data).None
CALCulate:FN:TRACe:NOISe?Read FN Noise. Returns the frequency-noise mode phase noise spectrum in dBc/Hz (block data).None
CALCulate:FN:TRACe:SPOT? <Offset>Measure FN Spot Noise. Returns the frequency-noise mode phase noise in dBc/Hz at the given offset in Hz.Number
CALCulate:FN:TRACe:SPURious:FREQuency?Read FN Spur Frequencies. Returns the spur offset frequencies in Hz of the frequency-noise mode phase noise trace.None
CALCulate:FN:TRACe:SPURious:POWer?Read FN Spur Powers. Returns the spur powers in dBc of the frequency-noise mode phase noise trace.None
CALCulate:FN:PRELiminary:AVERage?Read FN Averages Done. Returns the number of averages of the current frequency-noise mode phase noise result.None
CALCulate:FN:PRELiminary:CORRelation?Read FN Correlations Done. Returns the number of cross correlations of the current frequency-noise mode phase noise result.None
CALCulate:VCO:WAIT <Event>Wait For VCO. Blocks until the next (NEXT) or last (ALL) VCO iteration result is ready.Text: NEXT,ALL
CALCulate:VCO:ITERation?Read VCO Iteration. Returns the iteration of the current VCO characterization measurement.None
CALCulate:VCO:TRACe:VOLTage?Read VCO Voltages. Returns the tune voltage values in V (block data).None
CALCulate:VCO:TRACe:FREQuency?Read VCO Frequencies. Returns the frequency values in Hz at each tune voltage (block data).None
CALCulate:VCO:TRACe:KVCO?Read VCO Kvco. Returns the Kv values in Hz/V at each tune voltage (block data).None
CALCulate:VCO:TRACe:KPUSh?Read VCO Pushing. Returns the pushing values in Hz/V at each tune voltage (block data).None
CALCulate:VCO:TRACe:ISupply?Read VCO Supply Current. Returns the supply current values in A at each tune voltage (block data).None
CALCulate:VCO:TRACe:POWer?Read VCO Power. Returns the power values in dBm at each tune voltage (block data).None
CALCulate:VCO:TRACe:PNoise? <Offset>Read VCO Phase Noise. Returns the phase noise in dBc/Hz at offset 1-4 for each tune voltage (block data).Number: 1,2,3,4

System (SYSTem) (6)

CommandWhat it doesArguments
SYSTem:ERRor:NEXT?Read Error. Returns the next entry of the error queue.None
SYSTem:ERRor:ALL?Read All Errors. Returns and clears all entries of the error queue.None
SYSTem:ERRor:RESTartRestart System. Restarts the instrument (same as power cycling).None
SYSTem:COMMunicate:LAN:CONFig <Mode>Set LAN Config. Selects how the IP address is assigned.Text: DHCP,MANual,AUTO
SYSTem:COMMunicate:LAN:IP?Read LAN IP. Returns the current IP address.None
SYSTem:COMMunicate:LAN:RESTartRestart LAN. Restarts the network to apply LAN setting changes.None

Source (SOURce) (3)

CommandWhat it doesArguments
SOURce:TUNE:DUT:STAT ONDUT Tune On. Turns the DUT TUNE port on.None
SOURce:TUNE:DUT:STAT OFFDUT Tune Off. Turns the DUT TUNE port off.None
SOURce:TUNE:DUT:VOLT <Voltage>Set DUT Tune Voltage. Sets the voltage at the DUT TUNE port in V.Number

Initiate (INITiate) (1)

CommandWhat it doesArguments
INITiate:IMMediateStart Measurement. Arms the trigger and starts the measurement.None

Abort (1)

CommandWhat it doesArguments
ABORtAbort Measurement. Aborts measurements in progress.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (10)

CommandWhat it doesArguments
*SAV <Register>Save Setup. Saves the instrument settings to the memory register.Number
*RCL <Register>Recall Setup. Recalls the instrument state from the memory register.Number
*OPT?Read Options. Returns the installed options.None
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear 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
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Triggers the device if bus trigger is the selected trigger source.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 E5045A, E5046A, and E5047A 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 September 26, 2026.

Frequently asked questions

Does the Keysight E5045A support SCPI remote control?

Yes. The Keysight E5045A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 117 SCPI commands for it: 49 queries that read values or state, and 68 settings and actions.

How do I control the Keysight E5045A 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?, SENSe:PN:FREQuency:AUTO ON and SENSe:MODE?.

Which command reads a value from the Keysight E5045A?

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.

Can I automate the Keysight E5045A 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 E5045A 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.