Radio Test Set · SCPI command reference

Keysight E6640A SCPI commands

The Keysight E6640A radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 170 commands for it, 70 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 E6640A on a real bench.

Commands
170
Queries
70
Subsystems
18
Models covered
1

Run this on your bench

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

Get started

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

# Paste the address of your Keysight E6640A (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")  # Turn On RF Output
print(inst.query(":SENSe:FEED:RF:PORT:INPut?"))  # Read RF Input Port

inst.close()

Run this on your bench

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

Get started

Run a E6640A test without writing code

Describe the test in a sentence, for example “turn on rf output on the E6640A, then read rf input port 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

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

Sense (SENSe) (55)

CommandWhat it doesArguments
:SENSe:FEED:RF:PORT:INPut <Port>Set RF Input Port. Selects the RF port used as analyzer input (E6640A full-duplex RFIO ports (RFIO3/RFIO4 half-duplex on M9430A hardware)).Text: RFIO1,RFIO2,RFIO3,RFIO4
:SENSe:FEED:RF:PORT:INPut?Read RF Input Port. Reads the RF port used as analyzer input (E6640A full-duplex RFIO ports (RFIO3/RFIO4 half-duplex on M9430A hardware)).None
:SENSe:FEED:RF:PORT:OUTPut <Port>Set RF Output Port. Selects the RF port used as source output (E6640A full-duplex RFIO ports (RFIO3/RFIO4 half-duplex on M9430A hardware)).Text: RFOut,RFIO1,RFIO2,RFIO3,RFIO4
:SENSe:FEED:RF:PORT:OUTPut?Read RF Output Port. Reads the RF port used as source output (E6640A full-duplex RFIO ports (RFIO3/RFIO4 half-duplex on M9430A hardware)).None
:SENSe:HDUPlex:PORT:INPut <Port>Set Half Duplex Input Port. Selects which half-duplex port (RFIO3 or RFIO4) is used when RF Input is selected.Text: RFIO3,RFIO4
:SENSe:HDUPlex:PORT:INPut?Read Half Duplex Input Port. Reads which half-duplex port (RFIO3 or RFIO4) is used when RF Input is selected.None
:SENSe:HDUPlex:PORT:OUTPut <Port>Set Half Duplex Output Port. Selects which half-duplex port (RFIO3 or RFIO4) is used when RF Output is selected.Text: RFIO3,RFIO4
:SENSe:HDUPlex:PORT:OUTPut?Read Half Duplex Output Port. Reads which half-duplex port (RFIO3 or RFIO4) is used when RF Output is selected.None
:SENSe:FREQuency:CENTer <Freq>Set Center Frequency. Sets the analyzer center frequency in Hz.Number
:SENSe:FREQuency:CENTer?Read Center Frequency. Reads the analyzer center frequency in Hz.None
:SENSe:POWer:RF:RANGe <Level>Set Expected Power Range. Sets the analyzer RF input range (expected peak power) in dBm.Number
:SENSe:POWer:RF:RANGe?Read Expected Power Range. Reads the analyzer RF input range (expected peak power) in dBm.None
:SENSe:POWer:RF:RANGe:MIXer:OFFSet <Offset>Set Mixer Level Offset. Sets the mixer level offset relative to the range setting in dB.Number
:SENSe:POWer:RF:RANGe:MIXer:OFFSet?Read Mixer Level Offset. Reads the mixer level offset relative to the range setting in dB.None
:SENSe:POWer:RF:RANGe:PARatio <dB>Set Peak To Average Ratio. Sets the expected peak-to-average ratio of the input signal in dB.Number
:SENSe:POWer:RF:RANGe:PARatio?Read Peak To Average Ratio. Reads the expected peak-to-average ratio of the input signal in dB.None
:SENSe:CORRection:BTS:RF:LOSS <dB>Set BTS External Loss. Sets the external loss/attenuation in dB in BTS device mode.Number
:SENSe:CORRection:BTS:RF:LOSS?Read BTS External Loss. Reads the external loss/attenuation in dB in BTS device mode.None
:SENSe:CORRection:MS:RF:LOSS <dB>Set MS External Loss. Sets the external loss/attenuation in dB in MS device mode.Number
:SENSe:CORRection:MS:RF:LOSS?Read MS External Loss. Reads the external loss/attenuation in dB in MS device mode.None
:SENSe:CORRection:SA:RF:GAIN <dB>Set External Gain. Sets the external gain in dB applied to analyzer measurements.Number
:SENSe:CORRection:SA:RF:GAIN?Read External Gain. Reads the external gain in dB applied to analyzer measurements.None
:SENSe:CORRection:CSET<Set>:RF:PORT <Port>Set Correction Set Port. Assigns an amplitude correction set (1 to 8) to an RF port.Number: 1,2,3,4,5,6,7,8; Text
:SENSe:CORRection:CSET<Set>:DATA <Data>Set Correction Set Data. Loads frequency/amplitude pairs (freq,ampl,...) into an amplitude correction set.Number: 1,2,3,4,5,6,7,8; Text
:SENSe:CORRection:CSET<Set>:STATe ONTurn On Correction Set. Applies the amplitude correction set.Number: 1,2,3,4,5,6,7,8
:SENSe:CORRection:CSET<Set>:STATe OFFTurn Off Correction Set. Stops applying the amplitude correction set.Number: 1,2,3,4,5,6,7,8
:SENSe:CORRection:CSET<Set>:DELeteDelete Correction Set. Deletes the amplitude correction set data.Number: 1,2,3,4,5,6,7,8
:SENSe:CORRection:CSET:ALL:STATe ONTurn On All Corrections. Turns all amplitude correction sets on.None
:SENSe:CORRection:CSET:ALL:STATe OFFTurn Off All Corrections. Turns all amplitude correction sets off.None
:SENSe:ROSCillator:SOURce:TYPE <Type>Set Reference Source Type. Selects the frequency reference source.Text: INTernal,EXTernal,SENSe,PULSe
:SENSe:ROSCillator:SOURce:TYPE?Read Reference Source Type. Reads the frequency reference source.None
:SENSe:ROSCillator:EXTernal:FREQuency <Freq>Set External Reference Frequency. Sets the expected external reference frequency in Hz.Number
:SENSe:ROSCillator:EXTernal:FREQuency?Read External Reference Frequency. Reads the expected external reference frequency in Hz.None
:SENSe:WAVeform:SWEep:TIME <Seconds>Set Waveform Measure Time. Sets the waveform measurement acquisition time in seconds.Number
:SENSe:WAVeform:SWEep:TIME?Read Waveform Measure Time. Reads the waveform measurement acquisition time in seconds.None
:SENSe:WAVeform:SRATe <Rate>Set Waveform Sample Rate. Sets the waveform sample rate in Hz.Number
:SENSe:WAVeform:SRATe?Read Waveform Sample Rate. Reads the waveform sample rate in Hz.None
:SENSe:WAVeform:DIF:BANDwidth <BW>Set Waveform IF Bandwidth. Sets the waveform digital IF bandwidth in Hz.Number
:SENSe:WAVeform:DIF:BANDwidth?Read Waveform IF Bandwidth. Reads the waveform digital IF bandwidth in Hz.None
:SENSe:WAVeform:AVERage:STATe ONTurn On Waveform Averaging. Turns waveform averaging on.None
:SENSe:WAVeform:AVERage:STATe OFFTurn Off Waveform Averaging. Turns waveform averaging off.None
:SENSe:WAVeform:AVERage:STATe?Read Waveform Averaging State. Reads the on/off state set by Turn_On_Waveform_Averaging / Turn_Off_Waveform_Averaging.None
:SENSe:WAVeform:AVERage:COUNt <Count>Set Waveform Average Count. Sets the number of waveform averages.Number
:SENSe:WAVeform:AVERage:COUNt?Read Waveform Average Count. Reads the number of waveform averages.None
:SENSe:SPECtrum:FREQuency:SPAN <Span>Set Spectrum Span. Sets the complex spectrum frequency span in Hz.Number
:SENSe:SPECtrum:FREQuency:SPAN?Read Spectrum Span. Reads the complex spectrum frequency span in Hz.None
:SENSe:SPECtrum:BANDwidth:RESolution <RBW>Set Spectrum RBW. Sets the complex spectrum resolution bandwidth in Hz.Number
:SENSe:SPECtrum:BANDwidth:RESolution?Read Spectrum RBW. Reads the complex spectrum resolution bandwidth in Hz.None
:SENSe:SPECtrum:BANDwidth:RESolution:AUTO ONTurn On Spectrum Auto RBW. Sets the spectrum RBW to auto.None
:SENSe:SPECtrum:BANDwidth:RESolution:AUTO OFFTurn Off Spectrum Auto RBW. Sets the spectrum RBW to manual.None
:SENSe:SPECtrum:AVERage:STATe ONTurn On Spectrum Averaging. Turns spectrum averaging on.None
:SENSe:SPECtrum:AVERage:STATe OFFTurn Off Spectrum Averaging. Turns spectrum averaging off.None
:SENSe:SPECtrum:AVERage:STATe?Read Spectrum Averaging State. Reads the on/off state set by Turn_On_Spectrum_Averaging / Turn_Off_Spectrum_Averaging.None
:SENSe:SPECtrum:AVERage:COUNt <Count>Set Spectrum Average Count. Sets the number of spectrum averages.Number
:SENSe:SPECtrum:AVERage:COUNt?Read Spectrum Average Count. Reads the number of spectrum averages.None

Source (SOURce) (49)

CommandWhat it doesArguments
:SOURce:FREQuency:CW <Freq>Set Source Frequency. Sets the source RF output frequency in Hz.Number
:SOURce:FREQuency:CW?Read Source Frequency. Reads the source RF output frequency in Hz.None
:SOURce:FREQuency:OFFSet <Freq>Set Source Frequency Offset. Sets the source frequency offset in Hz.Number
:SOURce:FREQuency:OFFSet?Read Source Frequency Offset. Reads the source frequency offset in Hz.None
:SOURce:POWer:LEVel:IMMediate:AMPLitude <Level>Set Source Power. Sets the source RF output power in dBm.Number
:SOURce:POWer:LEVel:IMMediate:AMPLitude?Read Source Power. Reads the source RF output power in dBm.None
:SOURce:POWer:LEVel:IMMediate:OFFSet <Offset>Set Source Power Offset. Sets the source amplitude offset in dB.Number
:SOURce:POWer:LEVel:IMMediate:OFFSet?Read Source Power Offset. Reads the source amplitude offset in dB.None
:SOURce:RADio:DEVice <Device>Set Source Radio Device. Sets the source radio device type (base station or mobile).Text: BTS,MS
:SOURce:RADio:DEVice?Read Source Radio Device. Reads the source radio device type (base station or mobile).None
:SOURce:RADio:BAND:LINK <Link>Set Source Band Link. Sets the source band link direction (downlink or uplink).Text: DOWN,UP
:SOURce:RADio:BAND:LINK?Read Source Band Link. Reads the source band link direction (downlink or uplink).None
:SOURce:PRESetPreset Source. Presets all source settings to default values.None
:SOURce:RADio:ARB:STATe ONTurn On ARB. Turns the ARB waveform playback on.None
:SOURce:RADio:ARB:STATe OFFTurn Off ARB. Turns the ARB waveform playback off.None
:SOURce:RADio:ARB:STATe?Read ARB State. Reads the on/off state set by Turn_On_ARB / Turn_Off_ARB.None
:SOURce:RADio:ARB:LOAD <File>Load ARB File. Loads a waveform file from disk into ARB memory (quoted path).Text
:SOURce:RADio:ARB:WAVeform <File>Set ARB Waveform. Selects the waveform in ARB memory to be played (quoted file name).Text
:SOURce:RADio:ARB:WAVeform?Read ARB Waveform. Reads the waveform in ARB memory to be played (quoted file name).None
:SOURce:RADio:ARB:CATalog?Read ARB Catalog. Returns the list of waveforms loaded in ARB memory.None
:SOURce:RADio:ARB:DELete <File>Delete ARB File. Deletes the named waveform from ARB memory.Text
:SOURce:RADio:ARB:DELete:ALLDelete All ARB Files. Deletes all waveforms from ARB memory.None
:SOURce:RADio:ARB:DEFault:DIRectory <Directory>Set ARB Default Directory. Sets the default directory used for loading waveform files.Text
:SOURce:RADio:ARB:DEFault:DIRectory?Read ARB Default Directory. Reads the default directory used for loading waveform files.None
:SOURce:RADio:ARB:BASeband:FREQuency:OFFSet <Freq>Set ARB Baseband Frequency Offset. Sets the ARB baseband frequency offset in Hz.Number
:SOURce:RADio:ARB:BASeband:FREQuency:OFFSet?Read ARB Baseband Frequency Offset. Reads the ARB baseband frequency offset in Hz.None
:SOURce:RADio:ARB:SCLock:RATE <Rate>Set ARB Sample Clock. Sets the ARB sample clock rate in Hz.Number
:SOURce:RADio:ARB:SCLock:RATE?Read ARB Sample Clock. Reads the ARB sample clock rate in Hz.None
:SOURce:RADio:ARB:RSCaling <Percent>Set ARB Runtime Scaling. Sets the ARB runtime scaling in percent.Number
:SOURce:RADio:ARB:RSCaling?Read ARB Runtime Scaling. Reads the ARB runtime scaling in percent.None
:SOURce:RADio:ARB:TRIGger:TYPE <Type>Set ARB Trigger Type. Sets the ARB trigger type.Text: CONTinuous,SINGle,GATE,SADVance
:SOURce:RADio:ARB:TRIGger:TYPE?Read ARB Trigger Type. Reads the ARB trigger type.None
:SOURce:RADio:ARB:TRIGger:SOURce <Source>Set ARB Trigger Source. Sets the ARB trigger source.Text: KEY,BUS,EXTernal2
:SOURce:RADio:ARB:TRIGger:SOURce?Read ARB Trigger Source. Reads the ARB trigger source.None
:SOURce:RADio:ARB:TRIGger:INITiateTrigger ARB. Sends an immediate trigger to the ARB.None
:SOURce:LIST:STATe ONTurn On List Sequencer. Turns the source list sequencer on.None
:SOURce:LIST:STATe OFFTurn Off List Sequencer. Turns the source list sequencer off.None
:SOURce:LIST:STATe?Read List Sequencer State. Reads the on/off state set by Turn_On_List_Sequencer / Turn_Off_List_Sequencer.None
:SOURce:LIST:NUMBer:STEPs <Steps>Set List Number Of Steps. Sets the number of steps in the source list sequence.Number
:SOURce:LIST:NUMBer:STEPs?Read List Number Of Steps. Reads the number of steps in the source list sequence.None
:SOURce:LIST:STEP<Step>:SETup:CNFRequency <Freq>Set List Step Frequency. Sets the center frequency in Hz of the given list step.Number; Number
:SOURce:LIST:STEP<Step>:SETup:AMPLitude <Level>Set List Step Amplitude. Sets the output power in dBm of the given list step.Number; Number
:SOURce:LIST:STEP<Step>:SETup:WAVeform <File>Set List Step Waveform. Sets the waveform played in the given list step.Number; Text
:SOURce:LIST:STEP<Step>:SETup:DURation:TYPE <Type>Set List Step Duration Type. Sets whether the step duration is a time or a waveform count.Number; Text: TIME,COUNt,CONTinuous
:SOURce:LIST:STEP<Step>:SETup:DURation:TCOunt <Value>Set List Step Duration. Sets the step duration (seconds or count, per duration type).Number; Number
:SOURce:LIST:SETup:CLEarClear List. Clears all steps of the source list sequence.None
:SOURce:LIST:TRIGger:INITiate:IMMediateInitiate List. Arms (initiates) the source list sequence.None
:SOURce:LIST:TRIGger:IMMediateTrigger List. Sends an immediate trigger to the source list sequence.None
:SOURce:LIST:INITiation:ARMed?Read List Armed. Returns whether the source list sequence is armed.None

Trigger (TRIGger) (12)

CommandWhat it doesArguments
:TRIGger:WAVeform:SEQuence:SOURce <Source>Set Waveform Trigger Source. Selects the trigger source of the waveform measurement.Text: IMMediate,EXTernal1,EXTernal2,RFBurst,VIDeo,FRAMe,IF
:TRIGger:SPECtrum:SEQuence:SOURce <Source>Set Spectrum Trigger Source. Selects the trigger source of the spectrum measurement.Text: IMMediate,EXTernal1,EXTernal2,RFBurst,VIDeo,FRAMe,IF
:TRIGger:SEQuence:RFBurst:LEVel:ABSolute <Level>Set RF Burst Trigger Level. Sets the absolute RF burst trigger level in dBm.Number
:TRIGger:SEQuence:RFBurst:LEVel:ABSolute?Read RF Burst Trigger Level. Reads the absolute RF burst trigger level in dBm.None
:TRIGger:SEQuence:EXTernal1:LEVel <Volts>Set External1 Trigger Level. Sets the External 1 trigger level in volts.Number
:TRIGger:SEQuence:EXTernal1:LEVel?Read External1 Trigger Level. Reads the External 1 trigger level in volts.None
:TRIGger:SEQuence:EXTernal1:SLOPe <Slope>Set External1 Trigger Slope. Sets the External 1 trigger slope.Text: POSitive,NEGative
:TRIGger:SEQuence:EXTernal1:SLOPe?Read External1 Trigger Slope. Reads the External 1 trigger slope.None
:TRIGger:SEQuence:DELay <Seconds>Set Trigger Delay. Sets the trigger delay in seconds.Number
:TRIGger:SEQuence:DELay?Read Trigger Delay. Reads the trigger delay in seconds.None
:TRIGger:SEQuence:DELay:STATe ONTurn On Trigger Delay. Turns the trigger delay on.None
:TRIGger:SEQuence:DELay:STATe OFFTurn Off Trigger Delay. Turns the trigger delay off.None

System (SYSTem) (10)

CommandWhat it doesArguments
:SYSTem:ERRor:NEXT?Read Error. Reads and removes the oldest entry in the error queue.None
:SYSTem:PRESetSystem Preset. Performs a mode preset of the current mode.None
:SYSTem:PRESet:TYPE <Type>Set Preset Type. Sets the type of preset performed by System_Preset.Text: FACTory,MODE,USER
:SYSTem:DEFault <Scope>Restore Defaults. Restores system defaults for the selected scope.Text: ALL,ALIGn,INPut,MISC,MODes,PON
:SYSTem:OPTions?Read System Options. Returns the list of installed options (same as *OPT?).None
:SYSTem:APPLication:CATalog:NAME?Read Application Catalog. Returns the list of installed applications.None
:SYSTem:APPLication:CURRent:NAME?Read Current Application. Returns the name of the currently running application.None
:SYSTem:APPLication:CURRent:REVision?Read Current Application Revision. Returns the revision of the currently running application.None
:SYSTem:CONFigure:SYSTem?Read System Configuration. Returns the system configuration (hardware and software) information.None
:SYSTem:DATE?Read System Date. Returns the system date.None

Initiate (INITiate) (7)

CommandWhat it doesArguments
:INITiate:CONTinuous ONTurn On Continuous Sweep. Sets continuous measurement mode.None
:INITiate:CONTinuous OFFTurn Off Continuous Sweep. Sets single measurement mode.None
:INITiate:CONTinuous?Read Continuous Sweep State. Reads the on/off state set by Turn_On_Continuous_Sweep / Turn_Off_Continuous_Sweep.None
:INITiate:IMMediateInitiate. Starts a measurement cycle (single mode) or restarts continuous measurement.None
:INITiate:WAVeformInitiate Waveform. Initiates a trigger cycle for the waveform measurement without returning data.None
:INITiate:SPECtrumInitiate Spectrum. Initiates a trigger cycle for the spectrum measurement without returning data.None
:INITiate:RESTartRestart Measurement. Restarts the current measurement from the beginning.None

Output (OUTPut) (6)

CommandWhat it doesArguments
:OUTPut:STATe ONTurn On RF Output. Turns the source RF output on.None
:OUTPut:STATe OFFTurn Off RF Output. Turns the source RF output off.None
:OUTPut:STATe?Read RF Output State. Reads the on/off state set by Turn_On_RF_Output / Turn_Off_RF_Output.None
:OUTPut:MODulation:STATe ONTurn On Modulation. Turns the source modulation on.None
:OUTPut:MODulation:STATe OFFTurn Off Modulation. Turns the source modulation off (CW output).None
:OUTPut:MODulation:STATe?Read Modulation State. Reads the on/off state set by Turn_On_Modulation / Turn_Off_Modulation.None

Instrument (INSTrument) (5)

CommandWhat it doesArguments
:INSTrument:SELect <Mode>Set Mode. Selects the measurement application mode (BASIC = I/Q Analyzer).Text: SA,BASIC,SEQAN,WCDMA,EDGEGSM
:INSTrument:SELect?Read Mode. Reads the measurement application mode (BASIC = I/Q Analyzer).None
:INSTrument:CATalog?Read Mode Catalog. Returns the list of installed measurement modes.None
:INSTrument:NSELect <Number>Set Mode Number. Selects the measurement mode by its mode number (e.g. 8 = I/Q Analyzer).Number
:INSTrument:NSELect?Read Mode Number. Reads the measurement mode by its mode number (e.g. 8 = I/Q Analyzer).None

FORM subsystem (4)

CommandWhat it doesArguments
:FORMat:TRACe:DATA <Format>Set Data Format. Sets the trace data format (ASCii, INTeger,32, REAL,32 or REAL,64).Text: ASCii
:FORMat:TRACe:DATA?Read Data Format. Reads the trace data format (ASCii, INTeger,32, REAL,32 or REAL,64).None
:FORMat:BORDer <Order>Set Byte Order. Sets the binary data byte order.Text: NORMal,SWAPped
:FORMat:BORDer?Read Byte Order. Reads the binary data byte order.None

Configure (CONFigure) (3)

CommandWhat it doesArguments
:CONFigure:WAVeformConfigure Waveform. Selects the I/Q waveform (time domain) measurement with default settings.None
:CONFigure:SPECtrumConfigure Spectrum. Selects the complex spectrum measurement with default settings.None
:CONFigure?Read Current Measurement. Returns the name of the current measurement.None

Fetch (FETCh) (2)

CommandWhat it doesArguments
:FETCh:WAVeform<n>?Fetch Waveform. Fetches waveform results: n=0 I/Q pairs, n=1 scalar results (sample time, mean power, ...), n=2 envelope trace.Number: 0,1,2,3,4
:FETCh:SPECtrum<n>?Fetch Spectrum. Fetches complex spectrum results selected by n.Number: 0,1,2,3,4

Read (READ) (2)

CommandWhat it doesArguments
:READ:WAVeform<n>?Read Waveform. Starts the waveform measurement and returns the results selected by n.Number: 0,1,2,3,4
:READ:SPECtrum<n>?Read Spectrum. Starts the spectrum measurement and returns the results selected by n.Number: 0,1,2,3,4

Abort (1)

CommandWhat it doesArguments
:ABORtAbort. Aborts the current measurement.None

Measurement (MEASure) (1)

CommandWhat it doesArguments
:MEASure:WAVeform<n>?Measure Waveform. Selects the waveform measurement with defaults, measures and returns the results selected by n.Number: 0,1,2,3,4

CAL subsystem (1)

CommandWhat it doesArguments
:CALibration:ALLAlign All. Performs a full alignment of the instrument.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 (9)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string.None
*RSTReset. Resets the current mode to its default state.None
*CLSClear Status. Clears the status registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass.None
*CAL?Self Calibration. Performs a full alignment and returns 0 on success, 1 on failure.None
*OPT?Read Options. Returns the installed options.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. Generates a bus trigger.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 E6640A 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 12, 2026.

Frequently asked questions

Does the Keysight E6640A support SCPI remote control?

Yes. The Keysight E6640A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 170 SCPI commands for it: 70 queries that read values or state, and 100 settings and actions.

How do I control the Keysight E6640A 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:FEED:RF:PORT:INPut?.

Which command reads a value from the Keysight E6640A?

:SENSe:FEED:RF:PORT:INPut? (read rf input port). Reads the RF port used as analyzer input (E6640A full-duplex RFIO ports (RFIO3/RFIO4 half-duplex on M9430A hardware)). The full list of queries is in the command reference on this page, grouped by subsystem.

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