The Keysight E6680A radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 165 commands for it, 68 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 E6680A on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Keysight E6680A 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 E6680A's VISA address
# Paste the address of your Keysight E6680A (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()Describe the test; TestFlow's agent uses this command set to drive your Keysight E6680A and writes the report from the measured results.
Describe the test in a sentence, for example “turn on rf output on the E6680A, 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.
165 commands in 18 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| :SENSe:FEED:RF:PORT:INPut <Port> | Set RF Input Port. Selects the RF port used as analyzer input (E6680A TRX RFIO ports 1-8). | Text: RFIO1,RFIO2,RFIO3,RFIO4,RFIO5,RFIO6,RFIO7,RFIO8,NONE |
| :SENSe:FEED:RF:PORT:INPut? | Read RF Input Port. Reads the RF port used as analyzer input (E6680A TRX RFIO ports 1-8). | None |
| :SENSe:FEED:RF:PORT:OUTPut <Port> | Set RF Output Port. Selects the RF port used as source output (E6680A TRX RFIO ports 1-8). | Text: RFIO1,RFIO2,RFIO3,RFIO4,RFIO5,RFIO6,RFIO7,RFIO8,NONE |
| :SENSe:FEED:RF:PORT:OUTPut? | Read RF Output Port. Reads the RF port used as source output (E6680A TRX RFIO ports 1-8). | None |
| :SENSe:FEED:RF:PORT:OUTPut:BROadcast <Ports> | Set Output Broadcast. Sets source broadcast mode so the same signal is output on the listed port pairs/quads, or OFF. | Text: P12,P34,P1234,P56,P78,P5678,OFF |
| :SENSe:FEED:RF:PORT:OUTPut:BROadcast? | Read Output Broadcast. Reads source broadcast mode so the same signal is output on the listed port pairs/quads, or OFF. | 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 ON | Turn On Correction Set. Applies the amplitude correction set. | Number: 1,2,3,4,5,6,7,8 |
| :SENSe:CORRection:CSET<Set>:STATe OFF | Turn Off Correction Set. Stops applying the amplitude correction set. | Number: 1,2,3,4,5,6,7,8 |
| :SENSe:CORRection:CSET<Set>:DELete | Delete Correction Set. Deletes the amplitude correction set data. | Number: 1,2,3,4,5,6,7,8 |
| :SENSe:CORRection:CSET:ALL:STATe ON | Turn On All Corrections. Turns all amplitude correction sets on. | None |
| :SENSe:CORRection:CSET:ALL:STATe OFF | Turn 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: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 ON | Turn On Spectrum Auto RBW. Sets the spectrum RBW to auto. | None |
| :SENSe:SPECtrum:BANDwidth:RESolution:AUTO OFF | Turn Off Spectrum Auto RBW. Sets the spectrum RBW to manual. | None |
| :SENSe:SPECtrum:AVERage:STATe ON | Turn On Spectrum Averaging. Turns spectrum averaging on. | None |
| :SENSe:SPECtrum:AVERage:STATe OFF | Turn 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 |
| Command | What it does | Arguments |
|---|---|---|
| :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:PRESet | Preset Source. Presets all source settings to default values. | None |
| :SOURce:RADio:ARB:STATe ON | Turn On ARB. Turns the ARB waveform playback on. | None |
| :SOURce:RADio:ARB:STATe OFF | Turn 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:ALL | Delete 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,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,EXTernal1,EXTernal2,PXI |
| :SOURce:RADio:ARB:TRIGger:SOURce? | Read ARB Trigger Source. Reads the ARB trigger source. | None |
| :SOURce:RADio:ARB:TRIGger:INITiate | Trigger ARB. Sends an immediate trigger to the ARB. | None |
| :SOURce:LIST:STATe ON | Turn On List Sequencer. Turns the source list sequencer on. | None |
| :SOURce:LIST:STATe OFF | Turn 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:CLEar | Clear List. Clears all steps of the source list sequence. | None |
| :SOURce:LIST:TRIGger:INITiate:IMMediate | Initiate List. Arms (initiates) the source list sequence. | None |
| :SOURce:LIST:TRIGger:IMMediate | Trigger 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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 ON | Turn On Trigger Delay. Turns the trigger delay on. | None |
| :TRIGger:SEQuence:DELay:STATe OFF | Turn Off Trigger Delay. Turns the trigger delay off. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SYSTem:ERRor:NEXT? | Read Error. Reads and removes the oldest entry in the error queue. | None |
| :SYSTem:PRESet | System 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 |
| Command | What it does | Arguments |
|---|---|---|
| :INITiate:CONTinuous ON | Turn On Continuous Sweep. Sets continuous measurement mode. | None |
| :INITiate:CONTinuous OFF | Turn 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:IMMediate | Initiate. Starts a measurement cycle (single mode) or restarts continuous measurement. | None |
| :INITiate:WAVeform | Initiate Waveform. Initiates a trigger cycle for the waveform measurement without returning data. | None |
| :INITiate:SPECtrum | Initiate Spectrum. Initiates a trigger cycle for the spectrum measurement without returning data. | None |
| :INITiate:RESTart | Restart Measurement. Restarts the current measurement from the beginning. | None |
| Command | What it does | Arguments |
|---|---|---|
| :OUTPut:STATe ON | Turn On RF Output. Turns the source RF output on. | None |
| :OUTPut:STATe OFF | Turn 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 ON | Turn On Modulation. Turns the source modulation on. | None |
| :OUTPut:MODulation:STATe OFF | Turn 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 |
| Command | What it does | Arguments |
|---|---|---|
| :INSTrument:SELect <Mode> | Set Mode. Selects the measurement application mode (BASIC = I/Q Analyzer). | Text: BASIC,SA,NR5G,LTEAFDD,LTEATDD,WLAN,BTooth,SEQAN,VMA |
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :CONFigure:WAVeform | Configure Waveform. Selects the I/Q waveform (time domain) measurement with default settings. | None |
| :CONFigure:SPECtrum | Configure Spectrum. Selects the complex spectrum measurement with default settings. | None |
| :CONFigure? | Read Current Measurement. Returns the name of the current measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :ABORt | Abort. Aborts the current measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :CALibration:ALL | Align All. Performs a full alignment of the instrument. | 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 |
|---|---|---|
| *IDN? | Identify. Returns the instrument identification string. | None |
| *RST | Reset. Resets the current mode to its default state. | None |
| *CLS | Clear 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 |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
| *TRG | Trigger Bus. Generates a bus trigger. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the E6680A 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.
Yes. The Keysight E6680A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 165 SCPI commands for it: 68 queries that read values or state, and 97 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?, :OUTPut:STATe ON and :SENSe:FEED:RF:PORT:INPut?.
:SENSe:FEED:RF:PORT:INPut? (read rf input port). Reads the RF port used as analyzer input (E6680A TRX RFIO ports 1-8). 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 E6680A 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.