Oscilloscope · SCPI command comparison

Rohde & Schwarz MXO54 vs Tektronix MSO54B: 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 MSO54B takes 70 SCPI commands, 7 of them queries. That is 7 more on the MSO54B. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 57 exist only on the MXO54, and 49 only on the MSO54B. None of the MXO54's command headers appears in the MSO54B 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 MSO54B has AFG, DISplay, MEASUrement, CH<Digital, SEARCH, and HORIZONTAL and 4 more.

Neither library has an operation-complete command such as *OPC?. Only the MXO54 library has an error-queue read (SYSTem:ERRor?); the MSO54B 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
MSO54B commands
70
Shared headers
0
Unique headers
106

Run this on your bench

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

Get started

MXO54 vs MSO54B 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 MSO54B
Commands in TestFlow's library6370
Queries (read a value or state)77
Settings and actions5663
Subsystems1917
Distinct command headers5749
Headers the other lacks5749
Command languageSCPISCPI
Operation completeNot in libraryNot in library
Error queueSYSTem:ERRor?Not in library
Models on this command setMXO54, MXO54-1000, MXO54-2000, MXO54-500MSO54B

Commands both accept

None. No command header in TestFlow's MXO54 library matches one in its MSO54B 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 MSO54B 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 MSO54B

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

AFG (16 only on the MSO54B)

CommandWhat it does
AFG:AMPLitude <Voltage>AFG Amplitude.
AFG:ARBitrary:SOUrce <Source_path>AFG source.
AFG:BURSt:CCOUnt <Cycles_count>AFG cycles count.
AFG:BURSt:TRIGgerAFG burst.

TRIGger (8 only on the MSO54B)

CommandWhat it does
TRIGger:A:EDGE:SLOpe <Slope>Trigget slope.
TRIGger:A:EDGE:COUPling <Coupling>Trigger coupling.
TRIGger:A:LEVel:<Channel> <Volt>Trigger level.
TRIGger:A:TYPe LOGIc ; ...D trigger condition.

CURSor (5 only on the MSO54B)

CommandWhat it does
CURSor:SOUrce <Channel>Cursor channel.
CURSor:FUNCtion WAVEFORMCursers ON.
CURSor:DDT?Cursers dV/dT.
CURSor:HBArs:DELTa?Cursor dV.

DISplay (4 only on the MSO54B)

CommandWhat it does
DISplay:WAVEView1:CURSor:CURSOR1:MODe <Mode>Cursor mode.
DISplay:WAVEView1:CURSor:CURSOR1:VBArs:DELTa?Cursor dT.
DISplay:WAVEView1:CH<Digital Channel>_DALL:STATE ONBits ON.
DISplay:GLObal:CH<Digital Channel>:STATE <State>D channel display.

MEASUrement (4 only on the MSO54B)

CommandWhat it does
MEASUrement:IMMed:SOUrce <Channel> ; ...Measurement.
MEASUrement:IMMed:TYPe <Measurement>Measurement Type.
MEASUrement:IMMed:VALue?Measure.
MEASUrement:IMMed:DELay:EDGE1 <Edge> ; ...Measure delay.

SEARCH (4 only on the MSO54B)

CommandWhat it does
SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:LOGICPattern:CH<Digital Bit> <State>Search pattern.
SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:WHEn <Condition>Search condition.
SEARCH:SEARCH<Search>:TRIGger:A:PULSEWidth:HIGHLimit <Width>Search puls width.
SEARCH:SEARCH<Search>:TRIGger:A:TIMEOut:TIMe <Time>Search TIMEOUT.

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 MSO54B. 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 Set? on the MSO54B. 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_MSO54B_ADDRESS")  # Tektronix MSO54B
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("Set?"))  # Get settings

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 MSO54B 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 MSO54B for remote control?

In TestFlow's library the MXO54 has 63 SCPI commands and the MSO54B has 70 SCPI commands. 0 command headers are common to both, 57 are only on the MXO54 (mostly MATH and TRIGger), and 49 are only on the MSO54B (mostly AFG and TRIGger).

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

Not without changes. None of the 57 command headers in the MXO54 library matches one of the 49 in the MSO54B library: the MXO54 uses commands such as :MATH<n>:STATe and the MSO54B uses commands such as AFG:AMPLitude. 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 MSO54B?

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

How do the MXO54 and MSO54B 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 MSO54B 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.