The Keysight DSOX2024A oscilloscope is controlled remotely with SCPI commands. TestFlow's instrument library holds 167 commands for it, 63 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 DSOX2024A on a real bench.
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 DSOX2024A's VISA address
# Paste the address of your Keysight DSOX2024A (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:VPP? CHANnel1")) # Measure Vpp
inst.close()Describe the test in a sentence, for example “auto scale on the DSOX2024A, then measure vpp 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.
167 commands in 22 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| :MEASure:SOURce <Source> | Measure Source. Selects the source used by subsequent measurement commands. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:SOURce? | Get Measure Source. Queries the source currently selected for measurements. | None |
| :MEASure:WINDow <Window> | Measure Window. Selects whether measurements are made in the main window, the zoomed window or gated by markers. | Text: MAIN,ZOOM,AUTO |
| :MEASure:VPP? <Source> | Measure Vpp. Measures the peak-to-peak voltage of the selected source. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:VMAX? <Source> | Measure Vmax. Measures the maximum voltage of the selected source. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:VMIN? <Source> | Measure Vmin. Measures the minimum voltage of the selected source. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:VAMPlitude? <Source> | Measure Vamplitude. Measures the amplitude (top minus base) of the selected source. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:VTOP? <Source> | Measure Vtop. Measures the top (logic high) voltage level of the selected source. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:VBASe? <Source> | Measure Vbase. Measures the base (logic low) voltage level of the selected source. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:FREQuency? <Source> | Measure Frequency. Measures the frequency in hertz of the first complete cycle on screen. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:PERiod? <Source> | Measure Period. Measures the period in seconds of the first complete cycle on screen. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:PWIDth? <Source> | Measure Pos Width. Measures the width in seconds of the first positive pulse on screen. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:NWIDth? <Source> | Measure Neg Width. Measures the width in seconds of the first negative pulse on screen. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:DUTYcycle? <Source> | Measure Duty Cycle. Measures the positive duty cycle of the first complete cycle as a percentage. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:NDUTy? <Source> | Measure Neg Duty Cycle. Measures the negative duty cycle of the first complete cycle as a percentage. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:RISetime? <Source> | Measure Rise Time. Measures the rise time in seconds of the first rising edge on screen. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:FALLtime? <Source> | Measure Fall Time. Measures the fall time in seconds of the first falling edge on screen. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:OVERshoot? <Source> | Measure Overshoot. Measures the overshoot of the first edge on screen as a percentage. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:PREShoot? <Source> | Measure Preshoot. Measures the preshoot of the first edge on screen as a percentage. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:XMAX? <Source> | Measure X At Max. Measures the horizontal position at which the maximum voltage occurs. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:XMIN? <Source> | Measure X At Min. Measures the horizontal position at which the minimum voltage occurs. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:VAVerage? <Interval>,<Source> | Measure Vaverage. Measures the average voltage over one cycle or over the whole display. | Text: CYCLe,DISPlay; Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:VRMS? <Interval>,<Type>,<Source> | Measure Vrms. Measures the AC or DC RMS voltage over one cycle or over the whole display. | Text: CYCLe,DISPlay; Text: AC,DC; Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:PHASe? <Source_1>,<Source_2> | Measure Phase. Measures the phase shift in degrees between the two specified sources. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4; Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:DELay? <Source_1>,<Source_2> | Measure Delay. Measures the delay in seconds between the selected edges of the two specified sources. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4; Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :MEASure:CLEar | Clear Measurements. Clears all selected measurements and markers from the screen. | None |
| Command | What it does | Arguments |
|---|---|---|
| :CHANnel<Channel>:DISPlay ON | Channel On. Turns on the display of the specified analog channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:DISPlay OFF | Channel Off. Turns off the display of the specified analog channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:DISPlay? | Get Channel State. Queries whether the specified analog channel is displayed (1) or not (0). | Text: 1,2,3,4 |
| :CHANnel<Channel>:COUPling <Coupling> | Channel Coupling. Selects the input coupling of the specified analog channel. | Text: 1,2,3,4; Text: AC,DC |
| :CHANnel<Channel>:COUPling? | Get Channel Coupling. Queries the input coupling of the specified analog channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:SCALe <Scale> | Channel Scale. Sets the vertical scale of the specified channel in units per division. | Text: 1,2,3,4; Number |
| :CHANnel<Channel>:SCALe? | Get Channel Scale. Queries the vertical scale of the specified channel in units per division. | Text: 1,2,3,4 |
| :CHANnel<Channel>:RANGe <Range> | Channel Range. Sets the full-scale vertical range of the specified channel (8 divisions). | Text: 1,2,3,4; Number |
| :CHANnel<Channel>:RANGe? | Get Channel Range. Queries the full-scale vertical range of the specified channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:OFFSet <Offset> | Channel Offset. Sets the value at the centre of the screen for the specified channel (vertical offset). | Text: 1,2,3,4; Number |
| :CHANnel<Channel>:OFFSet? | Get Channel Offset. Queries the vertical offset of the specified channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:PROBe <Ratio> | Channel Probe Ratio. Sets the probe attenuation ratio of the specified channel (0.1 to 10000). | Text: 1,2,3,4; Number |
| :CHANnel<Channel>:PROBe? | Get Channel Probe Ratio. Queries the probe attenuation ratio of the specified channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:PROBe:SKEW <Skew> | Channel Probe Skew. Sets the channel-to-channel skew factor in seconds to compensate for probe and cable delay. | Text: 1,2,3,4; Number |
| :CHANnel<Channel>:UNITs <Unit> | Channel Units. Sets the measurement units for the probe connected to the specified channel. | Text: 1,2,3,4; Text: VOLT,AMPere |
| :CHANnel<Channel>:LABel <Label> | Channel Label. Sets the label string shown on screen for the specified analog channel. | Text: 1,2,3,4; Text |
| :CHANnel<Channel>:INVert ON | Channel Invert On. Inverts the displayed waveform of the specified channel about the offset value. | Text: 1,2,3,4 |
| :CHANnel<Channel>:INVert OFF | Channel Invert Off. Removes the waveform inversion of the specified channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:BWLimit ON | Bandwidth Limit On. Enables the internal low-pass bandwidth limit filter on the specified channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:BWLimit OFF | Bandwidth Limit Off. Disables the bandwidth limit filter so the channel runs at full bandwidth. | Text: 1,2,3,4 |
| :CHANnel<Channel>:VERNier ON | Fine Adjust On. Enables fine (vernier) adjustment of the vertical scale on the specified channel. | Text: 1,2,3,4 |
| :CHANnel<Channel>:VERNier OFF | Fine Adjust Off. Disables vernier adjustment so the vertical scale steps in a 1-2-5 sequence. | Text: 1,2,3,4 |
| Command | What it does | Arguments |
|---|---|---|
| :TRIGger:FORCe | Force Trigger. Forces an immediate trigger event regardless of whether the trigger condition is met. | None |
| :TRIGger:MODE <Mode> | Trigger Mode. Selects the trigger type used by the oscilloscope. | Text: EDGE,GLITch,PATTern,SHOLd,TRANsition,TV,SBUS1 |
| :TRIGger:MODE? | Get Trigger Mode. Queries the currently selected trigger type. | None |
| :TRIGger:SWEep <Sweep> | Trigger Sweep. Selects auto or triggered (normal) sweep mode. | Text: AUTO,NORMal |
| :TRIGger:SWEep? | Get Trigger Sweep. Queries the current trigger sweep mode. | None |
| :TRIGger:EDGE:SOURce <Source> | Trigger Source. Selects the source used for edge triggering. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4,EXTernal,LINE,WGEN |
| :TRIGger:EDGE:SOURce? | Get Trigger Source. Queries the current edge trigger source. | None |
| :TRIGger:EDGE:SLOPe <Slope> | Trigger Slope. Selects the edge direction that produces a trigger. | Text: POSitive,NEGative,EITHer,ALTernate |
| :TRIGger:EDGE:SLOPe? | Get Trigger Slope. Queries the current edge trigger slope. | None |
| :TRIGger:EDGE:LEVel <Level>,<Source> | Trigger Level. Sets the edge trigger threshold voltage for the specified source. | Number; Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4,EXTernal |
| :TRIGger:EDGE:LEVel? | Get Trigger Level. Queries the edge trigger threshold voltage. | None |
| :TRIGger:EDGE:COUPling <Coupling> | Trigger Coupling. Sets the coupling applied to the edge trigger path. | Text: AC,DC,LFReject |
| :TRIGger:EDGE:REJect <Reject> | Trigger Reject. Enables or disables the low-frequency or high-frequency reject filter in the trigger path. | Text: OFF,LFReject,HFReject |
| :TRIGger:HOLDoff <Holdoff> | Trigger Holdoff. Sets the trigger holdoff time in seconds (40 ns to 10 s). | Number |
| :TRIGger:HOLDoff? | Get Trigger Holdoff. Queries the trigger holdoff time in seconds. | None |
| :TRIGger:NREJect ON | Noise Reject On. Adds hysteresis to the trigger circuitry to reject noise. | None |
| :TRIGger:NREJect OFF | Noise Reject Off. Removes the trigger noise-reject hysteresis. | None |
| :TRIGger:HFReject ON | HF Reject On. Enables the 50 kHz high-frequency reject filter in the trigger path. | None |
| :TRIGger:HFReject OFF | HF Reject Off. Disables the high-frequency reject filter in the trigger path. | None |
| Command | What it does | Arguments |
|---|---|---|
| :WAVeform:SOURce <Source> | Waveform Source. Selects the source of the waveform data read back over the bus. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :WAVeform:FORMat <Format> | Waveform Format. Sets the data transmission format of the waveform data. | Text: WORD,BYTE,ASCii |
| :WAVeform:POINts <Points> | Waveform Points. Sets the number of waveform points transferred from the oscilloscope. | Number |
| :WAVeform:POINts:MODE <Mode> | Waveform Points Mode. Selects whether measurement-record, maximum or raw acquisition-record points are transferred. | Text: NORMal,MAXimum,RAW |
| :WAVeform:BYTeorder <Order> | Waveform Byte Order. Sets whether the least or most significant byte is transmitted first for WORD data. | Text: LSBFirst,MSBFirst |
| :WAVeform:UNSigned ON | Waveform Unsigned On. Returns waveform data as unsigned integers. | None |
| :WAVeform:UNSigned OFF | Waveform Unsigned Off. Returns waveform data as signed integers. | None |
| :WAVeform:DATA? | Get Waveform Data. Reads the waveform data of the selected source in the selected format. | None |
| :WAVeform:PREamble? | Get Waveform Preamble. Queries the waveform preamble (format, type, points, count, X/Y increments, origins and references). | None |
| :WAVeform:XINCrement? | Get X Increment. Queries the time in seconds between consecutive waveform data points. | None |
| :WAVeform:XORigin? | Get X Origin. Queries the time value in seconds of the first waveform data point. | None |
| :WAVeform:XREFerence? | Get X Reference. Queries the data point index that corresponds to the X origin. | None |
| :WAVeform:YINCrement? | Get Y Increment. Queries the voltage change per least significant bit of the waveform data. | None |
| :WAVeform:YORigin? | Get Y Origin. Queries the voltage value at the vertical reference position of the waveform data. | None |
| :WAVeform:YREFerence? | Get Y Reference. Queries the data value that corresponds to the Y origin. | None |
| Command | What it does | Arguments |
|---|---|---|
| :WGEN:FUNCtion <Function> | Wgen Function. Selects the waveform shape produced by the built-in waveform generator. | Text: SINusoid,SQUare,RAMP,PULSe,NOISe,DC |
| :WGEN:FREQuency <Frequency> | Wgen Frequency. Sets the waveform generator output frequency in hertz. | Number |
| :WGEN:VOLTage <Amplitude> | Wgen Amplitude. Sets the waveform generator output amplitude in volts peak-to-peak. | Number |
| :WGEN:VOLTage:OFFSet <Offset> | Wgen Offset. Sets the waveform generator DC offset voltage. | Number |
| :WGEN:VOLTage:HIGH <High> | Wgen High Level. Sets the waveform generator high-level voltage. | Number |
| :WGEN:VOLTage:LOW <Low> | Wgen Low Level. Sets the waveform generator low-level voltage. | Number |
| :WGEN:FUNCtion:SQUare:DCYCle <Duty> | Wgen Square Duty. Sets the duty cycle of the square waveform as a percentage. | Number |
| :WGEN:FUNCtion:RAMP:SYMMetry <Symmetry> | Wgen Ramp Symmetry. Sets the symmetry of the ramp waveform as a percentage of rising time. | Number |
| :WGEN:FUNCtion:PULSe:WIDTh <Width> | Wgen Pulse Width. Sets the pulse width in seconds of the pulse waveform. | Number |
| :WGEN:OUTPut:LOAD <Load> | Wgen Output Load. Sets the expected output load impedance of the waveform generator. | Text: ONEMeg,FIFTy |
| :WGEN:OUTPut ON | Wgen Output On. Turns on the waveform generator output. | None |
| :WGEN:OUTPut OFF | Wgen Output Off. Turns off the waveform generator output. | None |
| :WGEN:RST | Wgen Reset. Restores the waveform generator to its default settings. | None |
| Command | What it does | Arguments |
|---|---|---|
| :TIMebase:SCALe <Scale> | 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 display 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:MODE <Mode> | Timebase Mode. Sets the horizontal timebase mode (main, zoomed window, XY or roll). | Text: MAIN,WINDow,XY,ROLL |
| :TIMebase:MODE? | Get Timebase Mode. Queries the current horizontal timebase 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 |
| :TIMebase:VERNier ON | Timebase Fine On. Enables fine (vernier) adjustment of the horizontal scale. | None |
| :TIMebase:VERNier OFF | Timebase Fine Off. Disables vernier adjustment so the timebase steps in a 1-2-5 sequence. | None |
| Command | What it does | Arguments |
|---|---|---|
| :ACQuire:TYPE <Type> | Acquire Type. Selects the acquisition type used to build each waveform record. | Text: NORMal,AVERage,HRESolution,PEAK |
| :ACQuire:TYPE? | Get Acquire Type. Queries the acquisition type currently selected. | None |
| :ACQuire:COUNt <Count> | Acquire Count. Sets the number of acquisitions averaged per time bucket in AVERage acquisition type (2 to 65536). | Number |
| :ACQuire:COUNt? | Get Acquire Count. Queries the averaging count currently selected. | None |
| :ACQuire:MODE <Mode> | Acquire Mode. Sets the acquisition mode to real time or segmented memory. | Text: RTIMe,SEGMented |
| :ACQuire:MODE? | Get Acquire Mode. Queries the acquisition mode of the oscilloscope. | None |
| :ACQuire:POINts? | Get Acquire Points. Queries the number of data points the hardware acquires from the input signal. | None |
| :ACQuire:SRATe? | Get Sample Rate. Queries the current acquisition sample rate in samples per second. | None |
| :ACQuire:SEGMented:COUNt <Count> | Segmented Count. Sets the number of memory segments to acquire in segmented memory mode. | Number |
| :ACQuire:SEGMented:INDex <Index> | Segmented Index. Selects the segmented memory segment displayed and measured. | Number |
| Command | What it does | Arguments |
|---|---|---|
| :FUNCtion:DISPlay ON | Math Display On. Turns on the display of the specified math function waveform. | None |
| :FUNCtion:DISPlay OFF | Math Display Off. Turns off the display of the specified math function waveform. | None |
| :FUNCtion:OPERation <Operation> | Math Operation. Selects the operation performed by the math function. | Text: ADD,SUBTract,MULTiply,INTegrate,DIFF,FFT,SQRT,MAGNify,ABSolute,SQUare,LN,LOG,EXP,TEN,LOWPass,HIGHpass,DIVide,LINear,TRENd,BTIMing,BSTate |
| :FUNCtion:SOURce1 <Source> | Math Source 1. Selects the first input source for the math function. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :FUNCtion:SOURce2 <Source> | Math Source 2. Selects the second input source for two-operand math functions. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :FUNCtion:SCALe <Scale> | Math Scale. Sets the vertical scale of the math function waveform in units per division. | Number |
| :FUNCtion:OFFSet <Offset> | Math Offset. Sets the vertical offset of the math function waveform. | Number |
| :FUNCtion:CENTer <Frequency> | FFT Center. Sets the centre frequency in hertz of the FFT math function display. | Number |
| :FUNCtion:SPAN <Span> | FFT Span. Sets the frequency span in hertz of the FFT math function display. | Number |
| :FUNCtion:WINDow <Window> | FFT Window. Selects the FFT window function used to control spectral leakage. | Text: RECTangular,HANNing,FLATtop,BHARris |
| Command | What it does | Arguments |
|---|---|---|
| :DISPlay:CLEar | Clear Display. Clears the display and resets all associated measurements. | None |
| :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 60 s). | Number |
| :DISPlay:LABel ON | Labels On. Turns on the display of the analog and digital channel labels. | None |
| :DISPlay:LABel OFF | Labels Off. Turns off the display of the analog and digital channel labels. | None |
| :DISPlay:INTensity:WAVeform <Intensity> | Waveform Intensity. Sets the waveform display intensity as a percentage from 0 to 100. | Number |
| Command | What it does | Arguments |
|---|---|---|
| :DVM:ENABle ON | DVM On. Enables the integrated 3-digit digital voltmeter. | None |
| :DVM:ENABle OFF | DVM Off. Disables the integrated digital voltmeter. | None |
| :DVM:MODE <Mode> | DVM Mode. Selects the digital voltmeter measurement mode. | Text: ACRMs,DC,DCRMs |
| :DVM:SOURce <Source> | DVM Source. Selects the analog channel measured by the digital voltmeter. | Text: CHANnel1,CHANnel2,CHANnel3,CHANnel4 |
| :DVM:CURRent? | Get DVM. Reads the current digital voltmeter measurement value. | None |
| Command | What it does | Arguments |
|---|---|---|
| :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:SETup? | Get Setup. Reads the complete oscilloscope setup back as a binary block for later restore. | None |
| Command | What it does | Arguments |
|---|---|---|
| [PNG:DISPlay:DATA? PNG,COLor] | Capture. Reads a colour 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 |
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| :RUN | Run. Starts repetitive acquisitions (same as pressing the Run key on the front panel). | None |
| Command | What it does | Arguments |
|---|---|---|
| :STOP | Stop. Stops the acquisition system and freezes the last acquired waveform on screen. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SINGle | Single Trigger. Arms the oscilloscope for a single acquisition and stops after the trigger occurs. | None |
| Command | What it does | Arguments |
|---|---|---|
| :DIGitize | Digitize. Captures data that meets the acquisition specification and stops the acquisition so the data can be read back. | None |
| Command | What it does | Arguments |
|---|---|---|
| :TER? | Get Trigger Event. Reads and clears the Trigger Event Register; returns 1 if the oscilloscope has triggered. | None |
| Command | What it does | Arguments |
|---|---|---|
| :AER? | Get Arm Event. Reads and clears the Arm Event Register; returns 1 if the trigger system is armed. | None |
| 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 (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 |
This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the DSOX2024A 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.
Yes. The Keysight DSOX2024A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 167 SCPI commands for it: 63 queries that read values or state, and 104 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?, :AUToscale and :MEASure:VPP? CHANnel1.
:MEASure:VPP? CHANnel1 (measure vpp). Measures the peak-to-peak voltage of the selected source. 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 DSOX2024A 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.