The Keysight DSA90254A, DSA90404A, DSA90604A, DSA90804A, DSA91204A, DSA91304A, DSAV084A, DSAV134A, DSAV164A, DSAV204A, DSAV254A, DSAV334A, DSAX91604A, DSAX92004A, DSAX92004Q, DSAX92504A, DSAX92504Q, DSAX92804A, DSAX93204A, DSAX93304Q, DSAX95004Q, DSAX96204Q, DSAZ204A, DSAZ254A, DSAZ334A, DSAZ504A, DSAZ634A, DSO90254A, DSO90404A, DSO90604A, DSO90804A, DSO91204A, DSO91304A, DSOV084A, DSOV134A, DSOV164A, DSOV204A, DSOV254A, DSOV334A, DSOX91604A, DSOX92004A, DSOX92004Q, DSOX92504A, DSOX92504Q, DSOX92804A, DSOX93204A, DSOX93304Q, DSOX95004Q, DSOX96204Q, DSOZ204A, DSOZ254A, DSOZ334A, DSOZ504A, and DSOZ634A oscilloscope is controlled remotely with SCPI commands. TestFlow's instrument library holds 151 commands for it, 60 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 DSA90254A on a real bench.
Commands
151
Queries
60
Subsystems
24
Models covered
54
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Keysight DSA90254A, DSA90404A, DSA90604A, DSA90804A, DSA91204A, DSA91304A, DSAV084A, DSAV134A, DSAV164A, DSAV204A, DSAV254A, DSAV334A, DSAX91604A, DSAX92004A, DSAX92004Q, DSAX92504A, DSAX92504Q, DSAX92804A, DSAX93204A, DSAX93304Q, DSAX95004Q, DSAX96204Q, DSAZ204A, DSAZ254A, DSAZ334A, DSAZ504A, DSAZ634A, DSO90254A, DSO90404A, DSO90604A, DSO90804A, DSO91204A, DSO91304A, DSOV084A, DSOV134A, DSOV164A, DSOV204A, DSOV254A, DSOV334A, DSOX91604A, DSOX92004A, DSOX92004Q, DSOX92504A, DSOX92504Q, DSOX92804A, DSOX93204A, DSOX93304Q, DSOX95004Q, DSOX96204Q, DSOZ204A, DSOZ254A, DSOZ334A, DSOZ504A, or DSOZ634A 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 DSA90254A's VISA address
# Paste the address of your Keysight DSA90254A (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(":AUToscale") # Auto Scale
print(inst.query(":MEASure:RESults?")) # Get Measure Results
inst.close()
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Keysight DSA90254A, DSA90404A, DSA90604A, DSA90804A, DSA91204A, DSA91304A, DSAV084A, DSAV134A, DSAV164A, DSAV204A, DSAV254A, DSAV334A, DSAX91604A, DSAX92004A, DSAX92004Q, DSAX92504A, DSAX92504Q, DSAX92804A, DSAX93204A, DSAX93304Q, DSAX95004Q, DSAX96204Q, DSAZ204A, DSAZ254A, DSAZ334A, DSAZ504A, DSAZ634A, DSO90254A, DSO90404A, DSO90604A, DSO90804A, DSO91204A, DSO91304A, DSOV084A, DSOV134A, DSOV164A, DSOV204A, DSOV254A, DSOV334A, DSOX91604A, DSOX92004A, DSOX92004Q, DSOX92504A, DSOX92504Q, DSOX92804A, DSOX93204A, DSOX93304Q, DSOX95004Q, DSOX96204Q, DSOZ204A, DSOZ254A, DSOZ334A, DSOZ504A, or DSOZ634A and writes the report from the measured results.
Describe the test in a sentence, for example “auto scale on the DSA90254A, then get measure results 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.
Timebase Scale. Sets the main timebase in seconds per division.
Number
:TIMebase:SCALe?
Get Timebase Scale. Queries the main timebase in seconds per division.
None
:TIMebase:RANGe <Range>
Timebase Range. Sets the full-scale horizontal time in seconds for 10 divisions.
Number
:TIMebase:POSition <Position>
Timebase Position. Sets the time in seconds between the trigger event and the horizontal reference point.
Number
:TIMebase:POSition?
Get Timebase Position. Queries the horizontal position of the trigger event relative to the reference point.
None
:TIMebase:REFerence <Reference>
Timebase Reference. Sets the horizontal reference point on the screen.
Text: LEFT,CENTer,RIGHt
:TIMebase:ROLL:ENABLE ON
Roll Mode On. Enables roll mode for continuous slow-sweep display.
None
:TIMebase:ROLL:ENABLE OFF
Roll Mode Off. Disables roll mode.
None
:TIMebase:WINDow:SCALe <Scale>
Zoom Scale. Sets the zoomed (delayed) window timebase in seconds per division.
Number
:TIMebase:WINDow:POSition <Position>
Zoom Position. Sets the horizontal position in the zoomed window relative to the trigger event.
Number
System (SYSTem) (9)
Command
What it does
Arguments
:SYSTem:HEADer OFF
Header Off. Turns off command headers in query responses so replies contain the value only.
None
:SYSTem:HEADer ON
Header On. Turns on command headers in query responses.
None
:SYSTem:ERRor?
Get Error. Reads and clears the next entry in the error queue.
None
:SYSTem:DSP "<Message>"
Display Message. Writes a quoted text message to the oscilloscope display.
Text
:SYSTem:LOCK ON
Key Lock On. Locks the front panel so the oscilloscope can only be controlled remotely.
None
:SYSTem:LOCK OFF
Key Lock Off. Unlocks the front panel keys and knobs.
None
:SYSTem:LONGform ON
Long Form On. Returns query response headers and alpha arguments in their long form.
None
:SYSTem:LONGform OFF
Long Form Off. Returns query response headers and alpha arguments in their abbreviated short form.
None
:SYSTem:SETup?
Get Setup. Reads the complete oscilloscope setup back as a binary block for later restore.
None
Display (DISPlay) (5)
Command
What it does
Arguments
:DISPlay:PERSistence MINimum
Persistence Minimum. Sets waveform persistence to minimum so old acquisitions are erased immediately.
None
:DISPlay:PERSistence INFinite
Persistence Infinite. Sets infinite persistence so acquisitions accumulate on screen without fading.
None
:DISPlay:PERSistence <Seconds>
Persistence Time. Sets variable persistence in seconds (100 ms to 200 s).
Number
:DISPlay:CGRade ON
Color Grade On. Turns on the colour grade (density) display of the waveform.
None
:DISPlay:CGRade OFF
Color Grade Off. Turns off the colour grade display of the waveform.
None
Other subsystem (2)
Command
What it does
Arguments
[PNG:DISPlay:DATA? PNG,SCReen,OFF]
Capture. Reads an uncompressed PNG screenshot of the current display back to the controller.
None
<Output Variable>=<Equation>
Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)
Number; Text
DISK subsystem (2)
Command
What it does
Arguments
:DISK:SAVE:IMAGe "<Filename>",PNG
Save Screen Image. Saves a PNG screen image to the specified file on the oscilloscope disk.
Text
:DISK:SAVE:WAVeform <Source>,"<Filename>",CSV
Save Waveform File. Saves the specified waveform to a CSV file on the oscilloscope disk.
Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4; Text
Auto setup (1)
Command
What it does
Arguments
:AUToscale
Auto Scale. Evaluates all input signals and sets the correct vertical, horizontal and trigger settings to display the signals.
None
Run control (1)
Command
What it does
Arguments
:RUN
Run. Starts repetitive acquisitions (same as pressing Run on the front panel).
None
Run control (1)
Command
What it does
Arguments
:STOP
Stop. Stops the acquisition system and freezes the last acquired waveform on screen.
None
Run control (1)
Command
What it does
Arguments
:SINGle
Single Trigger. Arms the oscilloscope for a single acquisition and stops after the trigger occurs.
None
DIG subsystem (1)
Command
What it does
Arguments
:DIGitize
Digitize. Acquires the specified channels according to the current settings and stops the acquisition.
None
CDIS subsystem (1)
Command
What it does
Arguments
:CDISplay
Clear Display. Clears the display and resets all associated measurements.
None
AST subsystem (1)
Command
What it does
Arguments
:ASTate?
Get Acquisition State. Returns the acquisition state (ARM, TRIG, ATRIG or ADONE).
None
RST subsystem (1)
Command
What it does
Arguments
:RSTate?
Get Run State. Returns the run state of the oscilloscope (RUN, STOP or SING).
None
VIEW subsystem (1)
Command
What it does
Arguments
:VIEW <Source>
Show Channel. Turns on the display of the specified waveform source.
Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4
BLAN subsystem (1)
Command
What it does
Arguments
:BLANk <Source>
Hide Channel. Turns off the display of the specified waveform source.
Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4
WAIT subsystem (1)
Command
What it does
Arguments
wait(<ms>)
Wait. Waits for number of milliseconds
Number
SAVE subsystem (1)
Command
What it does
Arguments
save2var <Variable_name>
Save2Variable. Saves last measurement to a variable
Text
IEEE 488.2 common commands (12)
Command
What it does
Arguments
*IDN?
Identify. Returns the instrument identification string (manufacturer, model, serial number, firmware version).
None
*RST
Reset. Restores the oscilloscope to its factory default state.
None
*CLS
Clear Status. Clears all event registers and the error queue.
None
*TST?
Self Test. Runs the internal self-test and returns 0 for pass or a non-zero code for failure.
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 executing the next command.
None
*TRG
Trigger Bus. Generates a bus trigger, equivalent to sending the :DIGitize command.
None
*ESR?
Get Event Status. Reads and clears the standard event status register.
None
*STB?
Get Status Byte. Reads the status byte register.
None
*OPT?
Get Options. Returns a comma-separated list of the licences and options installed in the oscilloscope.
None
*SAV <Register>
Save Setup. Stores the current oscilloscope setup in the specified save/recall register.
Number
*RCL <Register>
Recall Setup. Recalls a previously stored oscilloscope setup from the specified register.
Number
Where these commands come from
This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the DSA90254A, DSA90404A, DSA90604A, DSA90804A, DSA91204A, DSA91304A, DSAV084A, DSAV134A, DSAV164A, DSAV204A, DSAV254A, DSAV334A, DSAX91604A, DSAX92004A, DSAX92004Q, DSAX92504A, DSAX92504Q, DSAX92804A, DSAX93204A, DSAX93304Q, DSAX95004Q, DSAX96204Q, DSAZ204A, DSAZ254A, DSAZ334A, DSAZ504A, DSAZ634A, DSO90254A, DSO90404A, DSO90604A, DSO90804A, DSO91204A, DSO91304A, DSOV084A, DSOV134A, DSOV164A, DSOV204A, DSOV254A, DSOV334A, DSOX91604A, DSOX92004A, DSOX92004Q, DSOX92504A, DSOX92504Q, DSOX92804A, DSOX93204A, DSOX93304Q, DSOX95004Q, DSOX96204Q, DSOZ204A, DSOZ254A, DSOZ334A, DSOZ504A, and DSOZ634A 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 DSA90254A support SCPI remote control?
Yes. The Keysight DSA90254A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 151 SCPI commands for it: 60 queries that read values or state, and 91 settings and actions.
How do I control the Keysight DSA90254A 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?, :AUToscale and :MEASure:RESults?.
Which command reads a value from the Keysight DSA90254A?
:MEASure:RESults? (get measure results). Returns the results of the continuously displayed measurements as a comma-separated list. The full list of queries is in the command reference on this page, grouped by subsystem.
Can I automate the Keysight DSA90254A 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 DSA90254A 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.