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.
Describe the test; TestFlow's agent uses this command set to drive your Keysight E5052B 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 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()Describe the test; TestFlow's agent uses this command set to drive your Keysight E5052B and writes the report from the measured results.
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.
160 commands in 14 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| :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 ON | Band Marker On. Turns the x-axis band marker (analysis range) on. | None |
| :CALCulate:PN1:TRACe1:BDMarker:X:STATe OFF | Band 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 ON | Spur Omission On. Turns spurious omission on. | None |
| :CALCulate:PN1:TRACe1:SPURious:OMISsion OFF | Spur 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 ON | Spur Power Display On. Turns spurious display merging (power display) on. | None |
| :CALCulate:PN1:TRACe1:SPURious:POWer OFF | Spur Power Display Off. Turns spurious display merging (power display) off. | None |
| :CALCulate:PN1:TRACe1:SPURious:THReshold:TABLe:CLEar | Clear Spur Threshold Table. Clears the spurious threshold table. | None |
| :CALCulate:PN1:TRACe1:SPURious:OSSPur:OMISsion ON | User Spur Omission On. Turns omission of user specified spurs on. | None |
| :CALCulate:PN1:TRACe1:SPURious:OSSPur:OMISsion OFF | User Spur Omission Off. Turns omission of user specified spurs off. | None |
| :CALCulate:PN1:TRACe1:SPURious:OSSPur:FLISt:CLEar | Clear 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 ON | Smoothing On. Turns trace smoothing on. | None |
| :CALCulate:PN1:TRACe1:SMOothing:STATe OFF | Smoothing 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:MEMorize | Data 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 ON | Marker 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 OFF | Marker 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:MAXimum | Marker 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:MINimum | Marker 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:PEAK | Marker 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:RPEak | Marker 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:LPEak | Marker 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:SPURious | Marker 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:TARGet | Marker 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 ON | Delta Marker Mode On. Turns the delta (reference) marker mode on. | None |
| :CALCulate:PN1:ALLTrace:MARKer:REFerence:STATe OFF | Delta Marker Mode Off. Turns the delta (reference) marker mode off. | None |
| :CALCulate:PN1:ALLTrace:MARKer:COUPle:STATe ON | Marker Couple On. Turns marker coupling between traces on. | None |
| :CALCulate:PN1:ALLTrace:MARKer:COUPle:STATe OFF | Marker Couple Off. Turns marker coupling between traces off. | None |
| :CALCulate:PN1:TRACe1:LIMit:STATe ON | Limit Test On. Turns the limit test on. | None |
| :CALCulate:PN1:TRACe1:LIMit:STATe OFF | Limit 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:CLEar | Clear Upper Limit. Clears the upper limit line segments. | None |
| :CALCulate:PN1:TRACe1:LIMit:LOWer:SEGMent:CLEar | Clear Lower Limit. Clears the lower limit line segments. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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:ASET | Auto 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 ON | Averaging On. Turns averaging on. | None |
| :SENSe:PN1:AVERage:STATe OFF | Averaging 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:CLEar | Clear 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 ON | Power Correction On. Turns the input power correction on. | None |
| :SENSe:CORRection:POWer:STATe OFF | Power Correction Off. Turns the input power correction off. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SOURce:VOLTage:CONTrol:LEVel:STATe ON | Vcontrol On. Turns the DC control voltage output on. | None |
| :SOURce:VOLTage:CONTrol:LEVel:STATe OFF | Vcontrol 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 ON | Vsupply On. Turns the DC power supply output on. | None |
| :SOURce:VOLTage:POWer:LEVel:STATe OFF | Vsupply 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 ON | AFC On. Turns the automatic frequency control on. | None |
| :SOURce:VOLTage:CONTrol:AFC:STATe OFF | AFC Off. Turns the automatic frequency control off. | None |
| :SOURce:VOLTage:CONTrol:AFC:IMMediate | Execute 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 |
| Command | What it does | Arguments |
|---|---|---|
| :DISPlay:PN1:TRACe1:MODE <Mode> | Set Trace Display. Selects data / memory / both trace display. | Text: OFF,DATA,MEMory,BOTH |
| :DISPlay:PN1:TRACe1:LIMit:LINE ON | Limit Line Display On. Turns the limit line display on. | None |
| :DISPlay:PN1:TRACe1:LIMit:LINE OFF | Limit Line Display Off. Turns the limit line display off. | None |
| :DISPlay:PN1:LIMit:FSIGn ON | Fail Sign On. Turns the limit test fail sign display on. | None |
| :DISPlay:PN1:LIMit:FSIGn OFF | Fail Sign Off. Turns the limit test fail sign display off. | None |
| :DISPlay:PN1:TRACe1:Y:SCALe:AUTO | Autoscale 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 ON | X Auto Scale On. Turns x-axis auto scaling on. | None |
| :DISPlay:PN1:TRACe1:X:SCALe:AUTO OFF | X 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 ON | Table Display On. Turns the text (table) area display on. | None |
| :DISPlay:PN1:TABLe:STATe OFF | Table Display Off. Turns the text (table) area display off. | None |
| :DISPlay:ENABle ON | Display On. Turns trace update on the display on. | None |
| :DISPlay:ENABle OFF | Display Off. Turns trace update on the display off. | None |
| :DISPlay:UPDate:IMMediate | Update Display. Updates the display once when display update is off. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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 PN1 | Select 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 ON | Trigger Average On. Turns trigger system initialization of the average count on. | None |
| :TRIGger:AVERage OFF | Trigger 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 ON | Trigger Output On. Turns the external trigger output on. | None |
| :TRIGger:OUTPut:STATe OFF | Trigger Output Off. Turns the external trigger output off. | None |
| :TRIGger:SOPC ON | Sweep End Wait On. Turns synchronization of the trigger system to *OPC?/*OPC/*WAI on. | None |
| :TRIGger:SOPC OFF | Sweep End Wait Off. Turns synchronization of the trigger system to *OPC?/*OPC/*WAI off. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :INITiate:PN1:CONTinuous ON | Continuous Measurement. Turns continuous initiation of the trigger system on. | None |
| :INITiate:PN1:CONTinuous OFF | Single Measurement Mode. Turns continuous initiation off (hold; use INITiate:PN1:IMMediate). | None |
| :INITiate:PN1:IMMediate | Start Measurement. Changes the trigger state from idle to wait-for-trigger once. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :SYSTem:ERRor:NEXT? | Read Error. Returns the next error number and description from the error queue. | None |
| :SYSTem:PRESet | Preset. Presets the instrument (same as *RST followed by INIT:CONT ON). | None |
| Command | What it does | Arguments |
|---|---|---|
| :ABORt | Abort Measurement. Aborts the measurement and resets the trigger system. | 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 the installed options. | None |
| *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 the result. | 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 instrument when the trigger source is BUS. | None |
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.
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.
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?.
: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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.