Oscilloscope · SCPI command comparison

Keysight DSOX3024A vs Rigol MSO5074: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight DSOX3024A takes 175 SCPI commands, 68 of them queries, and the Rigol MSO5074 takes 161 SCPI commands, 49 of them queries. That is 14 more on the DSOX3024A. Counting distinct command headers (the command path without its arguments), 55 are accepted by both, 101 exist only on the DSOX3024A, and 71 only on the MSO5074. 35% of the DSOX3024A's command headers also exist on the MSO5074.

Both libraries have commands under MEASure, CHANnel, TRIGger, WAVeform, TIMebase, ACQuire, DISPlay, and SYSTem, plus 5 more roots. Only the DSOX3024A has WGEN, FUNCtion, DVM, DIGitize, TER, and AER. Only the MSO5074 has CURSor, MATH, SOURce, LA, COUNter, and TFORce and 1 more.

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the DSOX3032A, DSOX3034A, DSOX3052A, DSOX3054A, DSOX3102A, and DSOX3104A the same command set as the DSOX3024A, so the DSOX3024A column applies to them too. TestFlow's library gives the MSO5104 the same command set as the MSO5074, so the MSO5074 column applies to it too.

DSOX3024A commands
175
MSO5074 commands
161
Shared headers
55
Unique headers
172

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight DSOX3024A or Rigol MSO5074 and writes the report from the measured results.

Get started

DSOX3024A vs MSO5074 at a glance

Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.

Keysight DSOX3024ARigol MSO5074
Commands in TestFlow's library175161
Queries (read a value or state)6849
Settings and actions107112
Subsystems2223
Distinct command headers156126
Headers the other lacks10171
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setDSOX3024A, DSOX3032A, DSOX3034A, DSOX3052A, DSOX3054A, DSOX3102A, DSOX3104AMSO5074, MSO5104

Commands both accept

55 command headers are in both libraries. Here are 12, taken across subsystems. Where the MSO5074 library writes the command differently, its form is shown under the DSOX3024A's.

CommandWhat it does
:MEASure:SOURce <Source>Measure Source. Selects the source used by subsequent measurement commands.
:CHANnel<Channel>:DISPlay ONChannel On. Turns on the display of the specified analog channel.
:TRIGger:MODE <Mode>MSO5074: :TRIGger:MODE <Type>Trigger Mode. Selects the trigger type used by the oscilloscope.
:WAVeform:SOURce <Source>Waveform Source. Selects the source of the waveform data read back over the bus.
:TIMebase:MODE <Mode>Timebase Mode. Sets the horizontal timebase mode (main, zoomed window, XY or roll).
:ACQuire:TYPE <Type>Acquire Type. Selects the acquisition type used to build each waveform record.
:DISPlay:CLEarClear Display. Clears the display and resets all associated measurements.
:SYSTem:ERRor?Get Error. Reads and clears the next entry in the error queue.
[PNG:DISPlay:DATA? PNG,COLor]MSO5074: [PNG:DISPlay:DATA?]Capture. Reads a colour PNG screenshot of the current display back to the controller.
:AUToscaleAuto Scale. Evaluates all input signals and sets the correct vertical, horizontal and trigger settings to display the signals.
:RUNRun. Starts repetitive acquisitions (same as pressing the Run key on the front panel).
:STOPStop. Stops the acquisition system and freezes the last acquired waveform on screen.

Only on the Keysight DSOX3024A

101 command headers in the DSOX3024A library have no match in the MSO5074 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keysight DSOX3024A command reference.

MEASure (29 only on the DSOX3024A)

CommandWhat it does
:MEASure:SOURce?Get Measure Source. Queries the source currently selected for measurements.
:MEASure:WINDow <Window>Measure Window. Selects whether measurements are made in the main window, the zoomed window or gated by markers.
:MEASure:VPP? <Source>Measure Vpp. Measures the peak-to-peak voltage of the selected source.
:MEASure:VMAX? <Source>Measure Vmax. Measures the maximum voltage of the selected source.

WGEN (12 only on the DSOX3024A)

CommandWhat it does
:WGEN:FUNCtion <Function>Wgen Function. Selects the waveform shape produced by the built-in waveform generator.
:WGEN:FREQuency <Frequency>Wgen Frequency. Sets the waveform generator output frequency in hertz.
:WGEN:VOLTage <Amplitude>Wgen Amplitude. Sets the waveform generator output amplitude in volts peak-to-peak.
:WGEN:VOLTage:OFFSet <Offset>Wgen Offset. Sets the waveform generator DC offset voltage.

TIMebase (10 only on the DSOX3024A)

CommandWhat it does
:TIMebase:SCALe <Scale>Timebase Scale. Sets the main timebase in seconds per division.
:TIMebase:SCALe?Get Timebase Scale. Queries the main timebase in seconds per division.
:TIMebase:RANGe <Range>Timebase Range. Sets the full-scale horizontal time in seconds for 10 divisions.
:TIMebase:POSition <Position>Timebase Position. Sets the time in seconds between the trigger event and the display reference point.

FUNCtion (8 only on the DSOX3024A)

CommandWhat it does
:FUNCtion:DISPlay ONMath Display On. Turns on the display of the specified math function waveform.
:FUNCtion:OPERation <Operation>Math Operation. Selects the operation performed by the math function.
:FUNCtion:SOURce1 <Source>Math Source 1. Selects the first input source for the math function.
:FUNCtion:SCALe <Scale>Math Scale. Sets the vertical scale of the math function waveform in units per division.

TRIGger (8 only on the DSOX3024A)

CommandWhat it does
:TRIGger:FORCeForce Trigger. Forces an immediate trigger event regardless of whether the trigger condition is met.
:TRIGger:SWEep?Get Trigger Sweep. Queries the current trigger sweep mode.
:TRIGger:EDGE:SOURce?Get Trigger Source. Queries the current edge trigger source.
:TRIGger:EDGE:SLOPe?Get Trigger Slope. Queries the current edge trigger slope.

ACQuire (7 only on the DSOX3024A)

CommandWhat it does
:ACQuire:COUNt <Count>Acquire Count. Sets the number of acquisitions averaged per time bucket in AVERage acquisition type (2 to 65536).
:ACQuire:COUNt?Get Acquire Count. Queries the averaging count currently selected.
:ACQuire:MODE <Mode>Acquire Mode. Sets the acquisition mode to real time or segmented memory.
:ACQuire:MODE?Get Acquire Mode. Queries the acquisition mode of the oscilloscope.

Only on the Rigol MSO5074

71 command headers in the MSO5074 library have no match in the DSOX3024A library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rigol MSO5074 command reference.

MEASure (12 only on the MSO5074)

CommandWhat it does
:MEASure:ITEM <Item>,<Source>Measure Item. Adds an automatic measurement of the selected parameter on the selected source.
:MEASure:ITEM? <Item>,<Source>Get Measure Item. Queries the measurement result of the selected parameter on the selected source.
:MEASure:AMSource <Source>Measure All Source. Sets the source of the all-parameter measurement function.
:MEASure:STATistic:DISPlay ONStatistics On. Turns on the statistic function for the automatic measurements.

CURSor (9 only on the MSO5074)

CommandWhat it does
:CURSor:MODE <Mode>Cursor Mode. Enables cursor measurement in the selected mode.
:CURSor:MANual:SOURce <Source>Cursor Source. Sets the channel the manual cursors measure.
:CURSor:MANual:TYPE <Type>Cursor Type. Sets the manual cursor type (X for time, Y for amplitude).
:CURSor:MANual:CAX <Position>Cursor AX. Sets the horizontal position of cursor A in screen pixels.

TIMebase (9 only on the MSO5074)

CommandWhat it does
:TIMebase:MAIN:SCALe <Scale>Timebase Scale. Sets the main timebase scale in s/div.
:TIMebase:MAIN:SCALe?Get Timebase Scale. Queries the main timebase scale in s/div.
:TIMebase:MAIN:OFFSet <Offset>Timebase Offset. Sets the main timebase (horizontal) offset in seconds relative to the trigger point.
:TIMebase:MAIN:OFFSet?Get Timebase Offset. Queries the main timebase (horizontal) offset in seconds.

TRIGger (7 only on the MSO5074)

CommandWhat it does
:TRIGger:COUPling <Coupling>Trigger Coupling. Sets the trigger coupling type (edge trigger with an analog source only).
:TRIGger:STATus?Get Trigger Status. Queries the current trigger status (TD, WAIT, RUN, AUTO or STOP).
:TRIGger:PULSe:SOURce <Source>Trigger Pulse Source. Sets the trigger source used by the pulse width trigger.
:TRIGger:PULSe:WHEN <Condition>Trigger Pulse When. Sets the trigger condition of the pulse width trigger.

SOURce (6 only on the MSO5074)

CommandWhat it does
:SOURce<Source_Ch>:OUTPut:STATe ONSource Output On. Turns on the output of the built-in waveform generator channel.
:SOURce<Source_Ch>:FUNCtion <Waveform>Source Function. Sets the output waveform shape of the built-in waveform generator.
:SOURce<Source_Ch>:FREQuency <Frequency>Source Frequency. Sets the output frequency of the built-in waveform generator in Hz.
:SOURce<Source_Ch>:VOLTage <Amplitude>Source Amplitude. Sets the output amplitude of the built-in waveform generator in Vpp.

DISPlay (5 only on the MSO5074)

CommandWhat it does
:DISPlay:TYPE <Type>Display Type. Sets the waveform display mode to vectors or dots.
:DISPlay:GRADing:TIME <Time>Persistence Time. Sets the waveform persistence time in seconds (MIN or INFinite also accepted).
:DISPlay:GRID <Grid>Display Grid. Sets the screen grid type.
:DISPlay:WBRightness <Percent>Waveform Brightness. Sets the waveform display brightness from 0 to 100 percent.

Control both from Python

With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold :AUToscale (auto scale), and the same line runs on each. For the reading, both libraries hold :CHANnel<Channel>:DISPlay? (get channel state), and the same line runs on each. For the basics, see the PyVISA tutorial.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find both VISA addresses

a = rm.open_resource("PASTE_DSOX3024A_ADDRESS")  # Keysight DSOX3024A
b = rm.open_resource("PASTE_MSO5074_ADDRESS")  # Rigol MSO5074
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Auto Scale
a.write(":AUToscale")
b.write(":AUToscale")

# The same reading on both: Get Channel State
print(a.query(":CHANnel1:DISPlay?"))
print(b.query(":CHANnel1:DISPlay?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight DSOX3024A or Rigol MSO5074 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight DSOX3024A and the Rigol MSO5074 for remote control?

In TestFlow's library the DSOX3024A has 175 SCPI commands and the MSO5074 has 161 SCPI commands. 55 command headers are common to both, 101 are only on the DSOX3024A (mostly MEASure and WGEN), and 71 are only on the MSO5074 (mostly MEASure and CURSor).

Can I use the same SCPI code for the Keysight DSOX3024A and the Rigol MSO5074?

Partly. 55 command headers are accepted by both, including :MEASure:SOURce, :CHANnel<Channel>:DISPlay, and :TRIGger:MODE. 172 are not, for example :MEASure:SOURce? on the DSOX3024A and :MEASure:ITEM on the MSO5074, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the DSOX3024A or the MSO5074?

The DSOX3024A: 175 commands for the DSOX3024A against 161 for the MSO5074 in TestFlow's library. Of those, 68 on the DSOX3024A and 49 on the MSO5074 are queries that read a value or state, and the library splits them into 22 and 23 subsystems.

How do the DSOX3024A and MSO5074 signal operation complete and report errors?

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. Each command named here is listed in the tables on this page and on each instrument's command reference.

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.