Vector Signal Generator · SCPI command reference

Keysight E8267D SCPI commands

The Keysight E8267D vector signal generator is controlled remotely with SCPI commands. TestFlow's instrument library holds 130 commands for it, 39 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 E8267D on a real bench.

Commands
130
Queries
39
Subsystems
8
Models covered
1

Run this on your bench

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

Get started

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

# Paste the address of your Keysight E8267D (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(":OUTPut:STATe?"))  # Read RF Output State

inst.close()

Run this on your bench

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

Get started

Run a E8267D test without writing code

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

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

Source (SOURce) (105)

CommandWhat it doesArguments
:SOURce:FREQuency:FIXed <Freq>Set Frequency. Sets the CW/fixed RF output frequency in Hz (100 kHz to 44 GHz depending on installed options).Number
:SOURce:FREQuency:FIXed?Read Frequency. Reads the current CW/fixed RF output frequency in Hz.None
:SOURce:FREQuency:MODE <Mode>Set Frequency Mode. Sets the frequency entry mode (fixed CW value, analog sweep, or list).Text: FIXed,CW,SWEep,LIST
:SOURce:FREQuency:MODE?Read Frequency Mode. Reads the current frequency entry mode.None
:SOURce:FREQuency:CENTer <Freq>Set Frequency Center. Sets the center frequency of the sweep range in Hz.Number
:SOURce:FREQuency:CENTer?Read Frequency Center. Reads the sweep center frequency in Hz.None
:SOURce:FREQuency:SPAN <Freq>Set Frequency Span. Sets the span of the sweep range in Hz.Number
:SOURce:FREQuency:SPAN?Read Frequency Span. Reads the sweep frequency span in Hz.None
:SOURce:FREQuency:STARt <Freq>Set Frequency Start. Sets the start frequency of the sweep range in Hz.Number
:SOURce:FREQuency:STARt?Read Frequency Start. Reads the sweep start frequency in Hz.None
:SOURce:FREQuency:STOP <Freq>Set Frequency Stop. Sets the stop frequency of the sweep range in Hz.Number
:SOURce:FREQuency:STOP?Read Frequency Stop. Reads the sweep stop frequency in Hz.None
:SOURce:FREQuency:MANual <Freq>Set Frequency Manual. Sets the frequency output when the sweep is in manual mode.Number
:SOURce:FREQuency:MANual?Read Frequency Manual. Reads the manual sweep frequency in Hz.None
:SOURce:FREQuency:OFFSet <Freq>Set Frequency Offset. Sets a frequency offset added to the displayed RF frequency.Number
:SOURce:FREQuency:OFFSet:STATe ONTurn On Frequency Offset. Applies the configured frequency offset to the displayed frequency.None
:SOURce:FREQuency:OFFSet:STATe OFFTurn Off Frequency Offset. Removes the frequency offset from the displayed frequency.None
:SOURce:FREQuency:MULTiplier <Mult>Set Frequency Multiplier. Sets a multiplication factor applied to the displayed RF frequency.Number
:SOURce:FREQuency:MULTiplier?Read Frequency Multiplier. Reads the frequency multiplier factor.None
:SOURce:POWer:LEVel:IMMediate:AMPLitude <Power>Set Power Level. Sets the RF output power level in dBm.Number
:SOURce:POWer:LEVel:IMMediate:AMPLitude?Read Power Level. Reads the current RF output power level in dBm.None
:SOURce:POWer:LEVel:IMMediate:OFFSet <Offset>Set Power Offset. Sets a power offset in dB added to the displayed RF level.Number
:SOURce:POWer:LEVel:IMMediate:OFFSet?Read Power Offset. Reads the current RF power offset in dB.None
:SOURce:POWer:MODE <Mode>Set Power Mode. Sets the RF power entry mode (fixed level or list sweep).Text: FIXed,LIST
:SOURce:POWer:MODE?Read Power Mode. Reads the current RF power entry mode.None
:SOURce:POWer:STARt <Power>Set Power Start. Sets the start level of the power sweep range in dBm.Number
:SOURce:POWer:STOP <Power>Set Power Stop. Sets the stop level of the power sweep range in dBm.Number
:SOURce:POWer:ALC:STATe ONTurn On ALC. Enables the automatic level control (ALC) loop.None
:SOURce:POWer:ALC:STATe OFFTurn Off ALC. Disables the automatic level control loop.None
:SOURce:POWer:ALC:STATe?Read ALC State. Reads whether the ALC loop is enabled.None
:SOURce:POWer:ALC:SOURce <Source>Set ALC Source. Selects the leveling source used by the ALC loop.Text: INTernal,DIODe,MMHead
:SOURce:POWer:ALC:SOURce?Read ALC Source. Reads the currently selected ALC leveling source.None
:SOURce:POWer:ALC:LEVel <Level>Set ALC Level. Sets the ALC level in dB used when leveling with an external detector.Number
:SOURce:POWer:ALC:BANDwidth <Freq>Set ALC Bandwidth. Sets the ALC loop bandwidth in Hz.Number
:SOURce:POWer:ALC:BANDwidth:AUTO ONTurn On ALC Bandwidth Auto. Lets the instrument select the ALC loop bandwidth automatically.None
:SOURce:POWer:ALC:BANDwidth:AUTO OFFTurn Off ALC Bandwidth Auto. Allows the ALC loop bandwidth to be set manually.None
:SOURce:POWer:ATTenuation <Atten>Set Attenuation. Sets the RF output attenuator value in dB.Number
:SOURce:POWer:ATTenuation?Read Attenuation. Reads the current RF output attenuation in dB.None
:SOURce:POWer:ATTenuation:AUTO ONTurn On Attenuator Auto. Couples the attenuator to the power level setting.None
:SOURce:POWer:ATTenuation:AUTO OFFTurn Off Attenuator Auto. Decouples the attenuator so it can be set manually.None
:SOURce:PHASe:ADJust <Phase>Set Phase. Adjusts the phase of the RF output signal relative to the current reference.Number
:SOURce:PHASe:ADJust?Read Phase. Reads the current RF phase adjustment.None
:SOURce:PHASe:REFerenceSet Phase Reference. Sets the current output phase as the zero reference.None
:SOURce:ROSCillator:SOURce?Read Reference Oscillator Source. Reads the reference oscillator source currently in use.None
:SOURce:ROSCillator:SOURce:AUTO ONTurn On Reference Source Auto. Lets the instrument select the reference oscillator source automatically.None
:SOURce:ROSCillator:SOURce:AUTO OFFTurn Off Reference Source Auto. Forces manual selection of the reference oscillator source.None
:SOURce:LIST:TYPE <Type>Set List Type. Selects whether the sweep uses the list table or the step sweep settings.Text: LIST,STEP
:SOURce:LIST:DIRection <Dir>Set List Direction. Sets the direction in which the list is processed.Text: UP,DOWN
:SOURce:LIST:DWELl:TYPE <Type>Set List Dwell Type. Selects whether dwell times come from the list table or the step sweep setting.Text: LIST,STEP
:SOURce:LIST:DWELl:POINts?Read List Dwell Points. Reads the number of dwell entries in the list.None
:SOURce:LIST:FREQuency:POINts?Read List Frequency Points. Reads the number of frequency entries in the list.None
:SOURce:LIST:POWer:POINts?Read List Power Points. Reads the number of power entries in the list.None
:SOURce:LIST:MODE?Read List Mode. Reads the current list processing mode.None
:SOURce:LIST:RETRace ONTurn On List Retrace. Makes the sweep return to the first point at the end of each cycle.None
:SOURce:LIST:RETRace OFFTurn Off List Retrace. Leaves the sweep at the last point at the end of each cycle.None
:SOURce:LIST:TRIGger:SOURce <Source>Set List Trigger Source. Selects the trigger source that advances the list.Text: BUS,IMMediate,EXTernal,KEY
:SOURce:LIST:TRIGger:SOURce?Read List Trigger Source. Reads the current list trigger source.None
:SOURce:DM:STATe ONTurn On IQ Modulation. Enables the I/Q modulator.None
:SOURce:DM:STATe OFFTurn Off IQ Modulation. Disables the I/Q modulator.None
:SOURce:DM:STATe?Read IQ Modulation State. Reads whether the I/Q modulator is enabled.None
:SOURce:DM:SOURce <Source>Set IQ Source. Selects the I/Q source driving the modulator.Text: EXTernal,INTernal,BBG1,EXT600,OFF
:SOURce:DM:SOURce?Read IQ Source. Reads the currently selected I/Q modulation source.None
:SOURce:DM:EXTernal:POLarity <Pol>Set External IQ Polarity. Sets the polarity of the externally applied I/Q signal.Text: NORMal,INVerted
:SOURce:DM:IQADjustment:STATe ONTurn On IQ Adjustments. Enables the manual I/Q adjustments (offset, gain, skew).None
:SOURce:DM:IQADjustment:STATe OFFTurn Off IQ Adjustments. Disables the manual I/Q adjustments.None
:SOURce:DM:IQADjustment:GAIN <Gain>Set IQ Gain Balance. Sets the I/Q gain balance in dB.Number
:SOURce:DM:IQADjustment:IOFFset <Offset>Set IQ I Offset. Sets the I channel DC offset as a percentage of full scale.Number
:SOURce:DM:IQADjustment:QOFFset <Offset>Set IQ Q Offset. Sets the Q channel DC offset as a percentage of full scale.Number
:SOURce:DM:IQADjustment:QSKew <Skew>Set IQ Quadrature Skew. Sets the quadrature angle error between the I and Q channels in degrees.Number
:SOURce:DM:IQADjustment:DELay <Sec>Set IQ Delay. Sets the delay applied to the I/Q signal in seconds.Number
:SOURce:RADio:ARB:STATe ONTurn On ARB. Enables the arbitrary waveform generator.None
:SOURce:RADio:ARB:STATe OFFTurn Off ARB. Disables the arbitrary waveform generator.None
:SOURce:RADio:ARB:STATe?Read ARB State. Reads whether the ARB generator is enabled.None
:SOURce:RADio:ARB:WAVeform <File>Load ARB Waveform. Selects the waveform or sequence for the ARB player (for example WFM1:my_waveform).Text
:SOURce:RADio:ARB:WAVeform?Read ARB Waveform. Reads the name of the waveform currently selected in the ARB player.None
:SOURce:RADio:ARB:SCLock:RATE <Rate>Set ARB Sample Clock. Sets the ARB sample clock rate in samples per second.Number
:SOURce:RADio:ARB:SCLock:RATE?Read ARB Sample Clock. Reads the ARB sample clock rate.None
:SOURce:AM:STATe ONTurn On AM. Enables amplitude modulation.None
:SOURce:AM:STATe OFFTurn Off AM. Disables amplitude modulation.None
:SOURce:AM:STATe?Read AM State. Reads whether amplitude modulation is enabled.None
:SOURce:AM:DEPTh:LINear <Percent>Set AM Depth. Sets the linear AM depth as a percentage.Number
:SOURce:AM:DEPTh:LINear?Read AM Depth. Reads the linear AM depth percentage.None
:SOURce:AM:SOURce <Source>Set AM Source. Selects the amplitude modulation source.Text: INTernal,EXTernal
:SOURce:AM:SOURce?Read AM Source. Reads the currently selected AM source.None
:SOURce:AM:INTernal:FREQuency <Freq>Set AM Internal Frequency. Sets the internal AM modulating frequency in Hz.Number
:SOURce:FM:STATe ONTurn On FM. Enables frequency modulation.None
:SOURce:FM:STATe OFFTurn Off FM. Disables frequency modulation.None
:SOURce:FM:STATe?Read FM State. Reads whether frequency modulation is enabled.None
:SOURce:FM:DEViation <Freq>Set FM Deviation. Sets the FM peak frequency deviation in Hz.Number
:SOURce:FM:DEViation?Read FM Deviation. Reads the FM peak frequency deviation in Hz.None
:SOURce:FM:SOURce <Source>Set FM Source. Selects the frequency modulation source.Text: INTernal,EXTernal
:SOURce:FM:INTernal:FREQuency <Freq>Set FM Internal Frequency. Sets the internal FM modulating frequency in Hz.Number
:SOURce:PM:STATe ONTurn On PM. Enables phase modulation.None
:SOURce:PM:STATe OFFTurn Off PM. Disables phase modulation.None
:SOURce:PM:DEViation <Dev>Set PM Deviation. Sets the PM peak phase deviation in radians or degrees.Number
:SOURce:PULM:STATe ONTurn On Pulse Modulation. Enables pulse modulation.None
:SOURce:PULM:STATe OFFTurn Off Pulse Modulation. Disables pulse modulation.None
:SOURce:PULM:SOURce <Source>Set Pulse Source. Selects the internal pulse generator or an external pulse input.Text: INTernal,EXTernal
:SOURce:PULM:INTernal:FREQuency <Freq>Set Pulse Frequency. Sets the internal pulse repetition frequency in Hz.Number
:SOURce:PULM:INTernal:PERiod <Sec>Set Pulse Period. Sets the internal pulse period in seconds.Number
:SOURce:PULM:INTernal:PWIDth <Sec>Set Pulse Width. Sets the internal pulse width in seconds.Number
:SOURce:LFOutput:STATe ONTurn On LF Output. Enables the low frequency (LF) output.None
:SOURce:LFOutput:STATe OFFTurn Off LF Output. Disables the low frequency (LF) output.None
:SOURce:LFOutput:AMPLitude <Volt>Set LF Amplitude. Sets the LF output amplitude in volts.Number
:SOURce:LFOutput:FUNCtion:FREQuency <Freq>Set LF Frequency. Sets the LF generator frequency in Hz.Number

Output (OUTPut) (8)

CommandWhat it doesArguments
:OUTPut:STATe ONTurn On RF Output. Enables the RF output signal.None
:OUTPut:STATe OFFTurn Off RF Output. Disables the RF output signal.None
:OUTPut:STATe?Read RF Output State. Reads whether the RF output is currently ON or OFF.None
:OUTPut:MODulation:STATe ONTurn On Modulation. Enables the modulation of the RF output signal.None
:OUTPut:MODulation:STATe OFFTurn Off Modulation. Disables the modulation of the RF output signal.None
:OUTPut:MODulation:STATe?Read Modulation State. Reads whether RF modulation is enabled.None
:OUTPut:PROTection:STATe ONTurn On Output Protection. Enables the reverse power protection on the RF output.None
:OUTPut:PROTection:STATe OFFTurn Off Output Protection. Disables the reverse power protection on the RF output.None

Mass memory (MMEMory) (2)

CommandWhat it doesArguments
:MMEMory:DELete <File>Delete File. Deletes the named file from instrument memory.Text
:MMEMory:CATalog?List Files. Lists the files in the current instrument directory.None

System (SYSTem) (2)

CommandWhat it doesArguments
:SYSTem:ERRor:NEXt?Read Error. Reads and removes the next entry from the error queue.None
:SYSTem:PRESetSystem Preset. Returns the instrument to its preset state.None

Other subsystem (1)

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

WAIT subsystem (1)

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

SAVE subsystem (1)

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

IEEE 488.2 common commands (10)

CommandWhat it doesArguments
*SAV <Register>,<Sequence>Save State Slot. Saves the current instrument state to an internal register.Number: 0-99; Number: 0-9
*RCL <Register>,<Sequence>Recall State Slot. Recalls the instrument state from an internal register.Number: 0-99; Number: 0-9
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.None
*OPT?Read Options. Returns the list of options installed in the instrument.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 E8267D 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 17, 2026.

Frequently asked questions

Does the Keysight E8267D support SCPI remote control?

Yes. The Keysight E8267D accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 130 SCPI commands for it: 39 queries that read values or state, and 91 settings and actions.

How do I control the Keysight E8267D 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 :OUTPut:STATe?.

Which command reads a value from the Keysight E8267D?

:OUTPut:STATe? (read rf output state). Reads whether the RF output is currently ON or OFF. The full list of queries is in the command reference on this page, grouped by subsystem.

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