Oscilloscope · SCPI command comparison

Rohde & Schwarz MXO54 vs Tektronix MDO32: SCPI commands and remote control compared

In TestFlow's instrument library, the Rohde & Schwarz MXO54 takes 63 SCPI commands, 7 of them queries, and the Tektronix MDO32 takes 66 SCPI commands, 18 of them queries. That is 3 more on the MDO32. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 57 exist only on the MXO54, and 53 only on the MDO32. None of the MXO54's command headers appears in the MDO32 library, so a script written for one needs every command rewritten for the other.

Both libraries have commands under TRIGger, ACQuire, and CURSor. Only the MXO54 has MATH, CHANnel, TIMebase, MEASure, HISTory, and REFerence and 6 more. Only the MDO32 has RF, MEASUrement, SELect, HORIZONTAL, Hardcopy, and Set and 1 more.

Neither library has an operation-complete command such as *OPC?. Only the MXO54 library has an error-queue read (SYSTem:ERRor?); the MDO32 library has none.

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.

MXO54 commands
63
MDO32 commands
66
Shared headers
0
Unique headers
110

Run this on your bench

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

Get started

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

Rohde & Schwarz MXO54Tektronix MDO32
Commands in TestFlow's library6366
Queries (read a value or state)718
Settings and actions5648
Subsystems1914
Distinct command headers5753
Headers the other lacks5753
Command languageSCPISCPI
Operation completeNot in libraryNot in library
Error queueSYSTem:ERRor?Not in library
Models on this command setMXO54, MXO54-1000, MXO54-2000, MXO54-500MDO32

Commands both accept

None. No command header in TestFlow's MXO54 library matches one in its MDO32 library, so every command needs its own version for each instrument.

Only on the Rohde & Schwarz MXO54

57 command headers in the MXO54 library have no match in the MDO32 library. Below are 22 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

TRIGger (9 only on the MXO54)

CommandWhat it does
:TRIGger:MODE <Mode>Trigger Mode. Sets trigger arming behavior
: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.

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).

CHANnel (4 only on the MXO54)

CommandWhat it does
:CHANnel<n>:STATe <OnOff>Channel Enable. Enables or disables a channel.
:CHANnel<n>:SCALe <VoltsDiv>Channel Scale. Sets vertical scale (V/div).
:CHANnel<n>:OFFSet <Volts>Channel Offset. Sets vertical offset.
:CHANnel<n>:BANDwidth <State>Channel Bandwidth. Sets channel bandwidth limit.

CURSor (4 only on the MXO54)

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

DISPlay (2 only on the MXO54)

CommandWhat it does
:DISPlay:GRID <State>Display Grid. Enables or disables display grid
:DISPlay:PERSistence <Mode>Display Persistence. Controls waveform persistence

Only on the Tektronix MDO32

53 command headers in the MDO32 library have no match in the MXO54 library. Below are 20 of them from the 6 largest subsystems; the full list is in the Tektronix MDO32 command reference.

RF (30 only on the MDO32)

CommandWhat it does
RF:CLIPPing?RF:CLIPPing. Queries whether the RF input/measurement is clipping/overloading (signal level too high for valid measurement).
RF:DETECTionmethod:MODe <AUTO,MANual>RF detect mode. Sets RF detector selection to automatic or manual (who chooses detector behavior: scope or user).
RF:DETECTionmethod:RF_<> <>RF Timeout. Selects RF detection/trace behavior (e.g., normal/average/max hold/min hold) and detector type (sample/average/peak).
RF:FREQuency <Frequency_center>RF freq center. Sets the RF analysis center frequency.

CURSor (7 only on the MDO32)

CommandWhat it does
CURSor:SOUrce <Channel>Cursor channel. Assigns cursor measurements to operate on a specific channel waveform.
CURSor:MODe <Mode>Cursor mode. Sets whether cursors move independently or as a coupled pair (dependent tracking).
CURSor:FUNCtion WAVEFORMCursers ON. Enables waveform cursors mode so delta time/voltage can be read using cursor functions.
CURSor:DDT?Cursers dV/dT. Returns the computed slope (ΔV/ΔT) based on current cursor positions.

MEASUrement (4 only on the MDO32)

CommandWhat it does
MEASUrement:IMMed:SOUrce <Channel> ; ...Measurement. Configures the immediate measurement (source + type) and then queries the current numeric result.
MEASUrement:IMMed:TYPe <Measurement>Measurement Type. Selects what measurement algorithm to compute for the “immediate measurement” engine.
MEASUrement:IMMed:VALue?Measure. Reads the numeric value of the currently configured immediate measurement (source + type).
MEASUrement:IMMed:DELay:EDGE<Edge> ; ...Measure delay. Configures a delay measurement between Source1 and Source2 using specified edge direction (rise/fall).

TRIGger (4 only on the MDO32)

CommandWhat it does
TRIGger:A:EDGE:SLOpe <Slope>Trigget slope. Chooses the edge direction that triggers (rising, falling, or either).
TRIGger:A:EDGE:COUPling <Coupling>Trigger coupling. Sets trigger coupling/filtering to reduce false triggers (AC coupling, HF/LF reject, noise reject).
TRIGger:A:LEVel:CH<Channel> <Volt>Trigger level. Sets the trigger threshold voltage for the chosen trigger channel.
TRIGGER:A:EDGE:SOURCE <Channel>Trigger channel. Selects which analog channel is used as the edge trigger source.

HORIZONTAL (2 only on the MDO32)

CommandWhat it does
HORIZONTAL:POSITION <Position>Time position. Shifts the waveform horizontally relative to the trigger position (pre/post-trigger view).
HORIZONTAL:SCALE <Scale>Time scale. Sets the timebase scale (Seconds/div), zooming in/out in time.

SELect (2 only on the MDO32)

CommandWhat it does
SELect:<Channel> ONShow channel. Turns ON display of the selected channel waveform.
SELect:RF_<Mode> <ON/OFF>RF Display. Enables/disables RF display trace for a specific detector/trace mode (avg/maxhold/minhold/normal).

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, the two libraries have no common command with a worked example on both, so each instrument uses its own: :CURSor:MODE FREQuency on the MXO54 and ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto on the MDO32. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: :SYSTem:ERRor? on the MXO54 and RF:MEASUre:ACPR:LA1DB? on the MDO32. 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_MXO54_ADDRESS")  # Rohde & Schwarz MXO54
b = rm.open_resource("PASTE_MDO32_ADDRESS")  # Tektronix MDO32
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# No shared setting with an example on both, so each uses its own command
a.write(":CURSor:MODE FREQuency")  # Spectrum Cursor Mode
b.write("ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto")  # RUN

# No shared reading with an example on both, so each uses its own command
print(a.query(":SYSTem:ERRor?"))  # Error Query
print(b.query("RF:MEASUre:ACPR:LA1DB?"))  # RF Cent2 low Side1

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Rohde & Schwarz MXO54 and the Tektronix MDO32 for remote control?

In TestFlow's library the MXO54 has 63 SCPI commands and the MDO32 has 66 SCPI commands. 0 command headers are common to both, 57 are only on the MXO54 (mostly MATH and TRIGger), and 53 are only on the MDO32 (mostly RF and CURSor).

Can I use the same SCPI code for the Rohde & Schwarz MXO54 and the Tektronix MDO32?

Not without changes. None of the 57 command headers in the MXO54 library matches one of the 53 in the MDO32 library: the MXO54 uses commands such as :MATH<n>:STATe and the MDO32 uses commands such as RF:CLIPPing?. PyVISA opens both the same way, but each command needs its own version for each instrument.

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

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

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

Neither library has an operation-complete command such as *OPC?. Only the MXO54 library has an error-queue read (SYSTem:ERRor?); the MDO32 library has none. 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.