Oscilloscope · SCPI command comparison

Rigol MSO5074 vs Rohde & Schwarz MXO54: SCPI commands and remote control compared

In TestFlow's instrument library, the Rigol MSO5074 takes 161 SCPI commands, 49 of them queries, and the Rohde & Schwarz MXO54 takes 63 SCPI commands, 7 of them queries. That is 98 more on the MSO5074. Counting distinct command headers (the command path without its arguments), 12 are accepted by both, 114 exist only on the MSO5074, and 45 only on the MXO54. 10% of the MSO5074's command headers also exist on the MXO54.

Both libraries have commands under MEASure, CHANnel, TRIGger, WAVeform, TIMebase, CURSor, ACQuire, and MATH, plus 2 more roots. Only the MSO5074 has SOURce, LA, COUNter, PNG, AUToscale, and RUN and 4 more. Only the MXO54 has HISTory, REFerence, ZOOM, HCOPy, and CALCulate.

Only the MSO5074 library has an operation-complete command (*OPC?); the MXO54 library has none. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the MSO5104 the same command set as the MSO5074, so the MSO5074 column applies to it too. TestFlow's library gives the MXO54-1000, MXO54-2000, and MXO54-500 the same command set as the MXO54, so the MXO54 column applies to them too.

MSO5074 commands
161
MXO54 commands
63
Shared headers
12
Unique headers
159

Run this on your bench

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

Get started

MSO5074 vs MXO54 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.

Rigol MSO5074Rohde & Schwarz MXO54
Commands in TestFlow's library16163
Queries (read a value or state)497
Settings and actions11256
Subsystems2319
Distinct command headers12657
Headers the other lacks11445
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setMSO5074, MSO5104MXO54, MXO54-1000, MXO54-2000, MXO54-500

Commands both accept

12 command headers are in both libraries. Where the MXO54 library writes the command differently, its form is shown under the MSO5074's.

CommandWhat it does
:MEASure:CLEar ALLMXO54: MEASurement:CLEar ; ...Clear Measurements. Clears all the automatic measurement items currently displayed.
:CHANnel<Channel>:SCALe <Scale>MXO54: :CHANnel<n>:SCALe <VoltsDiv>Channel Scale. Sets the vertical scale of the specified channel in V/div.
:TRIGger:MODE <Type>MXO54: :TRIGger:MODE <Mode>Trigger Type. Selects the trigger type.
:WAVeform:SOURce <Source>MXO54: :WAVeform:SOURce MATH<n>Waveform Source. Sets the channel whose waveform data will be read.
:CURSor:MODE <Mode>Cursor Mode. Enables cursor measurement in the selected mode.
:DISPlay:GRID <Grid>MXO54: :DISPlay:GRID <State>Display Grid. Sets the screen grid type.
:SYSTem:ERRor?Get Error. Queries and clears the next message in the system error queue.
*RSTReset. Restores the instrument to its factory default state.
:CHANnel<Channel>:OFFSet <Offset>MXO54: :CHANnel<n>:OFFSet <Volts>Channel Offset. Sets the vertical offset of the specified channel in volts.
:TRIGger:HOLDoff <Time>MXO54: :TRIGger:HOLDoff <Seconds>Trigger Holdoff. Sets the trigger holdoff time in seconds.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial number, firmware version).
:TRIGger:EDGE:SLOPe <Slope>Trigger Edge Slope. Sets the edge type (rising, falling or either) used by the edge trigger.

Only on the Rigol MSO5074

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

MEASure (14 only on the MSO5074)

CommandWhat it does
:MEASure:SOURce <Source>Measure Source. Sets the source of the automatic measurement parameters.
: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.

CHANnel (13 only on the MSO5074)

CommandWhat it does
:CHANnel<Channel>:DISPlay ONChannel On. Turns on the display of the specified analog channel.
:CHANnel<Channel>:DISPlay?Get Channel State. Queries the on/off status of the specified analog channel (returns 1 or 0).
:CHANnel<Channel>:COUPling <Coupling>Channel Coupling. Sets the input coupling mode of the specified analog channel.
:CHANnel<Channel>:COUPling?Get Channel Coupling. Queries the input coupling mode of the specified analog channel.

TRIGger (13 only on the MSO5074)

CommandWhat it does
:TRIGger:MODE?Get Trigger Type. Queries the trigger type currently selected.
:TRIGger:SWEep <Sweep>Trigger Sweep. Sets the trigger mode to auto, normal or single.
:TRIGger:COUPling <Coupling>Trigger Coupling. Sets the trigger coupling type (edge trigger with an analog source only).
:TRIGger:NREJect ONNoise Reject On. Enables trigger noise rejection to reduce false triggering.

WAVeform (12 only on the MSO5074)

CommandWhat it does
:WAVeform:MODE <Mode>Waveform Mode. Sets the reading mode of the waveform data (screen data or internal memory data).
:WAVeform:FORMat <Format>Waveform Format. Sets the return format of the waveform data.
:WAVeform:STARt <Point>Waveform Start. Sets the start point of the waveform data reading.
:WAVeform:STOP <Point>Waveform Stop. Sets the stop point of the waveform data reading.

TIMebase (10 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.

CURSor (8 only on the MSO5074)

CommandWhat it does
: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.
:CURSor:MANual:CBX <Position>Cursor BX. Sets the horizontal position of cursor B in screen pixels.

Only on the Rohde & Schwarz MXO54

45 command headers in the MXO54 library have no match in the MSO5074 library. Below are 19 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz MXO54 command reference.

MATH (15 only on the MXO54)

CommandWhat it does
:MATH<n>:STATe <State>Math Enable. Enables or disables math waveform
:MATH<n>:DEFine <Expression>Math Expression. Defines math expression (e.g. CH1-CH2)
:MATH<Math_index>:TYPE FFTFFT Set Type. Configures math waveform as FFT
:MATH<Math_index>:FFT:WINDow <Window>FFT Window. Sets FFT windowing function

ACQuire (6 only on the MXO54)

CommandWhat it does
:ACQuire:RUNRun. Starts continuous acquisition.
:ACQuire:STOPStop. Stops acquisition.
:ACQuire:SINGleSingle Seq. Arms a single acquisition.
:ACQuire:MODE <Mode>Acquisition Mode. Sets acquisition mode (real-time or segmented).

TRIGger (6 only on the MXO54)

CommandWhat it does
:TRIGger:TYPE <Type>Trigger Type. Selects trigger type.
:TRIGger:EVENt1:SOURce C<Source_channel>Trigger Source. Sets trigger source.
:TRIGger:LEVel <Volts>Trigger Level. Sets trigger level.
:TRIGger:EDGE:COUPling <Type>Trigger Coupling. Sets edge trigger coupling

CURSor (3 only on the MXO54)

CommandWhat it does
:CURSor:STATe <State>Cursor Enable. Enables manual cursors
:CURSor:X<n>?Spectrum Cursor X. Reads cursor frequency position
:CURSor:Y<n>?Spectrum Cursor Y. Reads cursor magnitude (FFT amplitude)

CHANnel (2 only on the MXO54)

CommandWhat it does
:CHANnel<n>:STATe <OnOff>Channel Enable. Enables or disables a channel.
:CHANnel<n>:BANDwidth <State>Channel Bandwidth. Sets channel bandwidth limit.

HISTory (2 only on the MXO54)

CommandWhat it does
:HISTory:STATe <State>History Enable. Enables waveform history mode
:HISTory:POSition <Index>History Position. Selects a historical acquisition

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 :TRIGger:MODE (trigger type); the MXO54 library writes it as :TRIGger:MODE AUTO. For the reading, both libraries hold :SYSTem:ERRor? (get error), 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_MSO5074_ADDRESS")  # Rigol MSO5074
b = rm.open_resource("PASTE_MXO54_ADDRESS")  # Rohde & Schwarz MXO54
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Trigger Type
a.write(":TRIGger:MODE EDGE")
b.write(":TRIGger:MODE AUTO")

# The same reading on both: Get Error
print(a.query(":SYSTem:ERRor?"))
print(b.query(":SYSTem:ERRor?"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Rigol MSO5074 and the Rohde & Schwarz MXO54 for remote control?

In TestFlow's library the MSO5074 has 161 SCPI commands and the MXO54 has 63 SCPI commands. 12 command headers are common to both, 114 are only on the MSO5074 (mostly MEASure and CHANnel), and 45 are only on the MXO54 (mostly MATH and ACQuire).

Can I use the same SCPI code for the Rigol MSO5074 and the Rohde & Schwarz MXO54?

Partly. 12 command headers are accepted by both, including :MEASure:CLEar, :CHANnel<Channel>:SCALe, and :TRIGger:MODE. 159 are not, for example :MEASure:SOURce on the MSO5074 and :MATH<n>:STATe on the MXO54, so a script that uses those needs a separate branch for each instrument.

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

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

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

Only the MSO5074 library has an operation-complete command (*OPC?); the MXO54 library has none. 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.