Phase Noise Analyzer · SCPI command reference

Keysight E5052B SCPI commands

The Keysight E5052B phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 160 commands for it, 24 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 E5052B on a real bench.

Commands
160
Queries
24
Subsystems
14
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight E5052B and writes the report from the measured results.

Get started

Control the Keysight E5052B 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 E5052B's VISA address

# Paste the address of your Keysight E5052B (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(":TRIGger:OUTPut:STATe ON")  # Trigger Output On
print(inst.query(":SENSe:PN1:FREQuency:STARt?"))  # Read Start Offset

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight E5052B and writes the report from the measured results.

Get started

Run a E5052B test without writing code

Describe the test in a sentence, for example “trigger output on on the E5052B, then read start offset 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

160 commands in 14 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

Calculate (CALCulate) (58)

CommandWhat it doesArguments
:CALCulate:PN1:DATA:CARRier?Measure Carrier. Returns the measured carrier frequency in Hz and power in dBm.None
:CALCulate:PN1:DATA:XDATa?Read X Data. Returns the x-axis (offset frequency) data.None
:CALCulate:PN1:DATA:RDATa?Read Raw Data. Returns the measurement raw data.None
:CALCulate:PN1:DATA:PDATa?Read Raw Power Data. Returns the measurement raw power data.None
:CALCulate:PN1:TRACe1:DATA:FDATa?Read Trace Data. Returns the formatted trace data (dBc/Hz).None
:CALCulate:PN1:TRACe1:DATA:FMEMory?Read Memory Data. Returns the formatted memory trace data.None
:CALCulate:PN1:TRACe1:DATA:SDATa?Read Spur Flags. Returns the spurious flag (0 or 1) of each trace point.None
:CALCulate:PN1:TRACe1:FUNCtion:TYPE <Type>Set Analysis Type. Selects the trace analysis type.Text: OFF,STATistics,INTegral
:CALCulate:PN1:TRACe1:FUNCtion:DOMain:X <Domain>Set Analysis Range. Selects full range or band marker range for analysis.Text: FRANge,BDMarker
:CALCulate:PN1:TRACe1:BDMarker:X:STATe ONBand Marker On. Turns the x-axis band marker (analysis range) on.None
:CALCulate:PN1:TRACe1:BDMarker:X:STATe OFFBand Marker Off. Turns the x-axis band marker (analysis range) off.None
:CALCulate:PN1:TRACe1:BDMarker:X:STARt <Frequency>Set Band Marker Start. Sets the band marker start offset in Hz.Number
:CALCulate:PN1:TRACe1:BDMarker:X:STOP <Frequency>Set Band Marker Stop. Sets the band marker stop offset in Hz.Number
:CALCulate:PN1:TRACe1:FUNCtion:INTegral:DATA?Measure Integral. Returns integrated noise, frequency range, RMS radians, RMS degrees, jitter and residual FM.None
:CALCulate:PN1:TRACe1:FUNCtion:STATistics:DATA?Measure Statistics. Returns mean, standard deviation and peak-to-peak of the trace.None
:CALCulate:PN1:TRACe1:FUNCtion:AVARiance:DATA? <AvgTime>,<Cutoff>Measure Allan Variance. Returns Allan variance and jitter for the average time in s and cut-off frequency in Hz.Number: 0.000000001,1000; Number: 0,1000000000
:CALCulate:PN1:TRACe1:SPURious:OMISsion ONSpur Omission On. Turns spurious omission on.None
:CALCulate:PN1:TRACe1:SPURious:OMISsion OFFSpur Omission Off. Turns spurious omission off.None
:CALCulate:PN1:TRACe1:SPURious:SENSibility <Value>Set Spur Sensibility. Sets the spurious sensibility (0.01 to 10).Number: 0.01,10
:CALCulate:PN1:TRACe1:SPURious:THReshold:LEVel:MINimum <Level>Set Spur Min Level. Sets the minimum spurious threshold level in dBc (-500 to 500).Number: -500,500
:CALCulate:PN1:TRACe1:SPURious:SLISt?Read Spur List. Returns the spurious list of the trace.None
:CALCulate:PN1:TRACe1:SPURious:POWer ONSpur Power Display On. Turns spurious display merging (power display) on.None
:CALCulate:PN1:TRACe1:SPURious:POWer OFFSpur Power Display Off. Turns spurious display merging (power display) off.None
:CALCulate:PN1:TRACe1:SPURious:THReshold:TABLe:CLEarClear Spur Threshold Table. Clears the spurious threshold table.None
:CALCulate:PN1:TRACe1:SPURious:OSSPur:OMISsion ONUser Spur Omission On. Turns omission of user specified spurs on.None
:CALCulate:PN1:TRACe1:SPURious:OSSPur:OMISsion OFFUser Spur Omission Off. Turns omission of user specified spurs off.None
:CALCulate:PN1:TRACe1:SPURious:OSSPur:FLISt:CLEarClear User Spur List. Clears the user specified spur frequency list.None
:CALCulate:PN1:TRACe1:HOLD <Hold>Set Trace Hold. Selects trace data hold.Text: OFF,MAXimum,MINimum
:CALCulate:PN1:TRACe1:SMOothing:STATe ONSmoothing On. Turns trace smoothing on.None
:CALCulate:PN1:TRACe1:SMOothing:STATe OFFSmoothing Off. Turns trace smoothing off.None
:CALCulate:PN1:TRACe1:SMOothing:APERture <Percent>Set Smoothing Aperture. Sets the smoothing aperture in percent (0.05 to 25).Number: 0.05,25
:CALCulate:PN1:TRACe1:MATH:MEMorizeData To Memory. Copies the measurement data to memory.None
:CALCulate:PN1:TRACe1:MATH:FUNCtion <Function>Set Math Function. Selects the trace math function.Text: NORMal,SUBTract,DIVide,ADD,MULTiply,USER
:CALCulate:PN1:TRACe1:MATH:OFFSet <Offset>Set Math Offset. Sets the trace math offset.Number
:CALCulate:PN1:TRACe1:MARKer<Marker>:STATe ONMarker On. Turns the marker (1 to 10) on.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:STATe OFFMarker Off. Turns the marker (1 to 10) off.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:X <Position>Set Marker X. Moves the marker to the given offset frequency in Hz.Number: 1,2,3,4,5,6,7,8,9,10; Number
:CALCulate:PN1:TRACe1:MARKer<Marker>:X?Read Marker X. Returns the marker x position (offset frequency in Hz).Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:Y?Read Marker Y. Returns the marker y value.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:EXECute:MAXimumMarker To Maximum. Moves the marker to the maximum.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:EXECute:MINimumMarker To Minimum. Moves the marker to the minimum.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:EXECute:PEAKMarker To Peak. Moves the marker to the peak.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:EXECute:RPEakMarker To Right Peak. Moves the marker to the next peak to the right.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:EXECute:LPEakMarker To Left Peak. Moves the marker to the next peak to the left.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:EXECute:SPURiousMarker To Spurious. Moves the marker to the spurious (spur power display only).Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:EXECute:TARGetMarker To Target. Moves the marker to the target value.Number: 1,2,3,4,5,6,7,8,9,10
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:TARGet:Y <Value>Set Marker Target. Sets the marker search target value.Number: 1,2,3,4,5,6,7,8,9,10; Number
:CALCulate:PN1:TRACe1:MARKer<Marker>:SEARch:TRACking:TYPE <Type>Set Marker Tracking. Selects the marker search tracking type.Number: 1,2,3,4,5,6,7,8,9,10; Text: OFF,MAXimum,MINimum,PEAK,TARGet,SPURious
:CALCulate:PN1:ALLTrace:MARKer:REFerence:STATe ONDelta Marker Mode On. Turns the delta (reference) marker mode on.None
:CALCulate:PN1:ALLTrace:MARKer:REFerence:STATe OFFDelta Marker Mode Off. Turns the delta (reference) marker mode off.None
:CALCulate:PN1:ALLTrace:MARKer:COUPle:STATe ONMarker Couple On. Turns marker coupling between traces on.None
:CALCulate:PN1:ALLTrace:MARKer:COUPle:STATe OFFMarker Couple Off. Turns marker coupling between traces off.None
:CALCulate:PN1:TRACe1:LIMit:STATe ONLimit Test On. Turns the limit test on.None
:CALCulate:PN1:TRACe1:LIMit:STATe OFFLimit Test Off. Turns the limit test off.None
:CALCulate:PN1:TRACe1:LIMit:FAIL?Read Limit Fail. Returns the limit test result of the trace (1 = fail).None
:CALCulate:PN1:ALLTrace:LIMit:FAIL?Read All Limit Fail. Returns the limit test result of all traces (1 = fail).None
:CALCulate:PN1:TRACe1:LIMit:UPPer:SEGMent:CLEarClear Upper Limit. Clears the upper limit line segments.None
:CALCulate:PN1:TRACe1:LIMit:LOWer:SEGMent:CLEarClear Lower Limit. Clears the lower limit line segments.None

Sense (SENSe) (25)

CommandWhat it doesArguments
:SENSe:PN1:FREQuency:STARt <Frequency>Set Start Offset. Sets the start offset frequency in Hz (1, 10, 100 or 1k).Number: 1,10,100,1000
:SENSe:PN1:FREQuency:STOP <Frequency>Set Stop Offset. Sets the stop offset frequency in Hz (100k to 100M).Number: 100000,1000000,5000000,10000000,20000000,40000000,100000000
:SENSe:PN1:FREQuency:STARt?Read Start Offset. Returns the start offset frequency in Hz.None
:SENSe:PN1:FREQuency:STOP?Read Stop Offset. Returns the stop offset frequency in Hz.None
:SENSe:PN1:FBANd <Band>Set Frequency Band. Selects the carrier frequency band (BAND1 10-41 MHz ... BAND4 default).Text: BAND1,BAND2,BAND3,BAND4,BAND5,BAND6
:SENSe:PN1:CRANge <Range>Set Capture Range. Selects the normal or wide capture range.Text: NORMal,WIDE
:SENSe:PN1:IFGain <Gain>Set IF Gain. Sets the IF gain in dB in 10 dB steps (0 to 50).Number: 0,10,20,30,40,50
:SENSe:ATTenuation:LEVel <Attenuation>Set Attenuation. Sets the input attenuator in dB in 5 dB steps (0 to 35).Number: 0,5,10,15,20,25,30,35
:SENSe:PN1:ASETAuto Set. Automatically sets attenuation, frequency band and IF gain for the carrier.None
:SENSe:PN1:CORRelation:COUNt <Count>Set Correlation Count. Sets the cross-correlation count (1 to 10000).Number: 1,10000
:SENSe:PN1:AVERage:STATe ONAveraging On. Turns averaging on.None
:SENSe:PN1:AVERage:STATe OFFAveraging Off. Turns averaging off.None
:SENSe:PN1:AVERage:COUNt <Count>Set Average Count. Sets the averaging count (1 to 999).Number: 1,999
:SENSe:PN1:AVERage:CLEarClear Average. Clears and restarts averaging.None
:SENSe:PN1:LOBandwidth <Bandwidth>Set LO Bandwidth. Selects the local bandwidth optimization.Text: NARRow,WIDE
:SENSe:PN1:ROSCillator:BANDwidth <Bandwidth>Set Reference Bandwidth. Selects the bandwidth of the reference oscillator.Text: NARRow,WIDE
:SENSe:PN1:ROSCillator:REFerence<Ref>:SOURce <Source>Set PN Reference Source. Selects internal or external source for reference oscillator 1 or 2.Number: 1,2; Text: INTernal,EXTernal
:SENSe:PN1:SEGTable <Quality>Set Segment Table. Selects the segment table used (normal or fast).Text: NORMal,FAST
:SENSe:PN1:SWEep:POINts?Read Sweep Points. Returns the number of measurement points.None
:SENSe:PN1:EPRescaler:DIVision <Division>Set Prescaler Division. Sets the external prescaler division ratio.Number: 1,2,4,8,16,32,64,128,256
:SENSe:PN1:EPRescaler:POWer <Power>Set Prescaler Power. Sets the external prescaler output power in dBm (-15 to 0).Number: -15,0
:SENSe:ROSCillator:REF1:SOURce <Source>Set Reference1 Source. Selects internal or external source of reference oscillator 1 (phase noise mode).Text: INTernal,EXTernal
:SENSe:ROSCillator:SOURce?Read Reference Source. Returns the source of the reference oscillator (INTernal, EXTernal or UNLock).None
:SENSe:CORRection:POWer:STATe ONPower Correction On. Turns the input power correction on.None
:SENSe:CORRection:POWer:STATe OFFPower Correction Off. Turns the input power correction off.None

Source (SOURce) (21)

CommandWhat it doesArguments
:SOURce:VOLTage:CONTrol:LEVel:STATe ONVcontrol On. Turns the DC control voltage output on.None
:SOURce:VOLTage:CONTrol:LEVel:STATe OFFVcontrol Off. Turns the DC control voltage output off.None
:SOURce:VOLTage:CONTrol:LEVel:AMPLitude <Voltage>Set Vcontrol. Sets the DC control voltage in V (-15 to 35).Number: -15,35
:SOURce:VOLTage:CONTrol:LIMit:HIGH <Voltage>Set Vcontrol Limit High. Sets the upper limit of the DC control voltage in V.Number: -15,35
:SOURce:VOLTage:CONTrol:LIMit:LOW <Voltage>Set Vcontrol Limit Low. Sets the lower limit of the DC control voltage in V.Number: -15,35
:SOURce:VOLTage:CONTrol:DELay <Delay>Set Vcontrol Delay. Sets the DC control voltage delay in s (0 to 1).Number: 0,1
:SOURce:VOLTage:POWer:LEVel:STATe ONVsupply On. Turns the DC power supply output on.None
:SOURce:VOLTage:POWer:LEVel:STATe OFFVsupply Off. Turns the DC power supply output off.None
:SOURce:VOLTage:POWer:LEVel:AMPLitude <Voltage>Set Vsupply. Sets the DC power supply voltage in V (0 to 16).Number: 0,16
:SOURce:VOLTage:POWer:LIMit:HIGH <Voltage>Set Vsupply Limit High. Sets the upper limit of the DC power supply voltage in V.Number: 0,16
:SOURce:VOLTage:POWer:LIMit:LOW <Voltage>Set Vsupply Limit Low. Sets the lower limit of the DC power supply voltage in V.Number: 0,16
:SOURce:VOLTage:POWer:DELay <Delay>Set Vsupply Delay. Sets the DC power supply delay in s (0 to 1).Number: 0,1
:SOURce:VOLTage:CONTrol:AFC:STATe ONAFC On. Turns the automatic frequency control on.None
:SOURce:VOLTage:CONTrol:AFC:STATe OFFAFC Off. Turns the automatic frequency control off.None
:SOURce:VOLTage:CONTrol:AFC:IMMediateExecute AFC. Executes the automatic frequency control once.None
:SOURce:VOLTage:CONTrol:AFC:TARGet <Frequency>Set AFC Target. Sets the AFC target frequency in Hz.Number
:SOURce:VOLTage:CONTrol:AFC:TOLerance <Frequency>Set AFC Tolerance. Sets the AFC frequency tolerance in Hz (20 to 10M).Number: 20,10000000
:SOURce:VOLTage:CONTrol:AFC:SENSitivity <Sensitivity>Set AFC Sensitivity. Sets the AFC tuning sensitivity in Hz/V.Number
:SOURce:VOLTage:CONTrol:AFC:LIMit:HIGH <Voltage>Set AFC Limit High. Sets the upper control voltage limit for AFC in V.Number: -15,35
:SOURce:VOLTage:CONTrol:AFC:LIMit:LOW <Voltage>Set AFC Limit Low. Sets the lower control voltage limit for AFC in V.Number: -15,35
:SOURce:VOLTage:CONTrol:AFC:ITERation <Count>Set AFC Iteration. Sets the maximum number of AFC iterations (1 to 99).Number: 1,99

Display (DISPlay) (19)

CommandWhat it doesArguments
:DISPlay:PN1:TRACe1:MODE <Mode>Set Trace Display. Selects data / memory / both trace display.Text: OFF,DATA,MEMory,BOTH
:DISPlay:PN1:TRACe1:LIMit:LINE ONLimit Line Display On. Turns the limit line display on.None
:DISPlay:PN1:TRACe1:LIMit:LINE OFFLimit Line Display Off. Turns the limit line display off.None
:DISPlay:PN1:LIMit:FSIGn ONFail Sign On. Turns the limit test fail sign display on.None
:DISPlay:PN1:LIMit:FSIGn OFFFail Sign Off. Turns the limit test fail sign display off.None
:DISPlay:PN1:TRACe1:Y:SCALe:AUTOAutoscale Y. Executes auto scale of the y-axis.None
:DISPlay:PN1:TRACe1:Y:SCALe:PDIVision <Value>Set Scale Per Division. Sets the y-axis scale per division.Number
:DISPlay:PN1:TRACe1:Y:SCALe:RLEVel <Level>Set Reference Level. Sets the y-axis reference level.Number
:DISPlay:PN1:TRACe1:Y:SCALe:RPOSition <Position>Set Reference Position. Sets the reference position (0 to 30 divisions).Number: 0,30
:DISPlay:PN1:Y:SCALe:DIVisions <Divisions>Set Y Divisions. Sets the number of y-axis divisions (4 to 30).Number: 4,30
:DISPlay:PN1:TRACe1:X:SCALe:AUTO ONX Auto Scale On. Turns x-axis auto scaling on.None
:DISPlay:PN1:TRACe1:X:SCALe:AUTO OFFX Auto Scale Off. Turns x-axis auto scaling off.None
:DISPlay:PN1:TRACe1:X:SCALe:LEFT <Frequency>Set X Left. Sets the left edge offset frequency of the x-axis in Hz.Number
:DISPlay:PN1:TRACe1:X:SCALe:RIGHt <Frequency>Set X Right. Sets the right edge offset frequency of the x-axis in Hz.Number
:DISPlay:PN1:TABLe:STATe ONTable Display On. Turns the text (table) area display on.None
:DISPlay:PN1:TABLe:STATe OFFTable Display Off. Turns the text (table) area display off.None
:DISPlay:ENABle ONDisplay On. Turns trace update on the display on.None
:DISPlay:ENABle OFFDisplay Off. Turns trace update on the display off.None
:DISPlay:UPDate:IMMediateUpdate Display. Updates the display once when display update is off.None

Trigger (TRIGger) (10)

CommandWhat it doesArguments
:TRIGger:MODE <Mode>Select Measurement Mode. Selects the measurement mode (PN1 = phase noise, SP1 = spectrum, FP1 = frequency/power, TR1 = transient, AM1 = AM noise, BB1 = baseband, PS1 = phase segment).Text: PN1,SP1,FP1,TR1,AM1,BB1,PS1
:TRIGger:MODE PN1Select Phase Noise Mode. Selects the phase noise measurement mode.None
:TRIGger:PN1:SOURce <Source>Set Trigger Source. Selects the trigger source.Text: INTernal,EXTernal,MANual,BUS
:TRIGger:AVERage ONTrigger Average On. Turns trigger system initialization of the average count on.None
:TRIGger:AVERage OFFTrigger Average Off. Turns trigger system initialization of the average count off.None
:TRIGger:EXTernal:SLOPe <Slope>Set External Trigger Slope. Selects the polarity of the external trigger.Text: POSitive,NEGative
:TRIGger:OUTPut:STATe ONTrigger Output On. Turns the external trigger output on.None
:TRIGger:OUTPut:STATe OFFTrigger Output Off. Turns the external trigger output off.None
:TRIGger:SOPC ONSweep End Wait On. Turns synchronization of the trigger system to *OPC?/*OPC/*WAI on.None
:TRIGger:SOPC OFFSweep End Wait Off. Turns synchronization of the trigger system to *OPC?/*OPC/*WAI off.None

Mass memory (MMEMory) (8)

CommandWhat it doesArguments
:MMEMory:LOAD:CORRection:POWer <FileName>Load Power Correction. Loads power correction data from a file (string in quotes).Text
:MMEMory:PN1:TRACe1:LOAD:LIMit:UPPer <FileName>Load Upper Limit. Loads the upper limit line from a file (string in quotes).Text
:MMEMory:PN1:TRACe1:LOAD:LIMit:LOWer <FileName>Load Lower Limit. Loads the lower limit line from a file (string in quotes).Text
:MMEMory:STORe:STATe <FileName>Save State. Saves the instrument settings to a file (string in quotes).Text
:MMEMory:LOAD:STATe <FileName>Load State. Recalls instrument settings from a file (string in quotes).Text
:MMEMory:STORe:STYPe <Type>Set Save Type. Selects whether settings only or settings plus data are saved.Text: STATe,DSTate
:MMEMory:PN1:TRACe1:STORe:DATA <FileName>Save Trace Data. Saves the active trace data to a file (string in quotes).Text
:MMEMory:STORe:IMAGe <FileName>Save Screen Image. Saves the display image to a .bmp or .png file (string in quotes).Text

Initiate (INITiate) (3)

CommandWhat it doesArguments
:INITiate:PN1:CONTinuous ONContinuous Measurement. Turns continuous initiation of the trigger system on.None
:INITiate:PN1:CONTinuous OFFSingle Measurement Mode. Turns continuous initiation off (hold; use INITiate:PN1:IMMediate).None
:INITiate:PN1:IMMediateStart Measurement. Changes the trigger state from idle to wait-for-trigger once.None

FORM subsystem (2)

CommandWhat it doesArguments
:FORMat:DATA <Format>Set Data Format. Selects the data transfer format.Text: ASCii,REAL32,REAL64
:FORMat:BORDer <Order>Set Byte Order. Selects the byte order of binary transfers.Text: NORMal,SWAPped

System (SYSTem) (2)

CommandWhat it doesArguments
:SYSTem:ERRor:NEXT?Read Error. Returns the next error number and description from the error queue.None
:SYSTem:PRESetPreset. Presets the instrument (same as *RST followed by INIT:CONT ON).None

Abort (1)

CommandWhat it doesArguments
:ABORtAbort Measurement. Aborts the measurement and resets the trigger system.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 (8)

CommandWhat it doesArguments
*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 the result.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 instrument when the trigger source is BUS.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 E5052B 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 E5052B support SCPI remote control?

Yes. The Keysight E5052B accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 160 SCPI commands for it: 24 queries that read values or state, and 136 settings and actions.

How do I control the Keysight E5052B 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?, :TRIGger:OUTPut:STATe ON and :SENSe:PN1:FREQuency:STARt?.

Which command reads a value from the Keysight E5052B?

:SENSe:PN1:FREQuency:STARt? (read start offset). Returns the start offset frequency in Hz. The full list of queries is in the command reference on this page, grouped by subsystem.

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