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.
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.
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 DSOX3024A | Rigol MSO5074 | |
|---|---|---|
| Commands in TestFlow's library | 175 | 161 |
| Queries (read a value or state) | 68 | 49 |
| Settings and actions | 107 | 112 |
| Subsystems | 22 | 23 |
| Distinct command headers | 156 | 126 |
| Headers the other lacks | 101 | 71 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | DSOX3024A, DSOX3032A, DSOX3034A, DSOX3052A, DSOX3054A, DSOX3102A, DSOX3104A | MSO5074, MSO5104 |
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.
| Command | What it does |
|---|---|
| :MEASure:SOURce <Source> | Measure Source. Selects the source used by subsequent measurement commands. |
| :CHANnel<Channel>:DISPlay ON | Channel 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:CLEar | Clear 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. |
| :AUToscale | Auto Scale. Evaluates all input signals and sets the correct vertical, horizontal and trigger settings to display the signals. |
| :RUN | Run. Starts repetitive acquisitions (same as pressing the Run key on the front panel). |
| :STOP | Stop. Stops the acquisition system and freezes the last acquired waveform on screen. |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :FUNCtion:DISPlay ON | Math 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. |
| Command | What it does |
|---|---|
| :TRIGger:FORCe | Force 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. |
| Command | What 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. |
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.
| Command | What 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 ON | Statistics On. Turns on the statistic function for the automatic measurements. |
| Command | What 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :SOURce<Source_Ch>:OUTPut:STATe ON | Source 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. |
| Command | What 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. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.