Oscilloscope · SCPI command reference

Rohde & Schwarz MXO54, MXO54-1000, MXO54-2000, and MXO54-500 SCPI commands

The Rohde & Schwarz MXO54, MXO54-1000, MXO54-2000, and MXO54-500 oscilloscope is controlled remotely with SCPI commands. TestFlow's instrument library holds 63 commands for it, 7 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the MXO54 on a real bench.

Commands
63
Queries
7
Subsystems
19
Models covered
4

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz MXO54, MXO54-1000, MXO54-2000, or MXO54-500 and writes the report from the measured results.

Get started

Control the Rohde & Schwarz MXO54 from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Rohde & Schwarz MXO54's VISA address

# Paste the address of your Rohde & Schwarz MXO54 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write(":CURSor:MODE FREQuency")  # Spectrum Cursor Mode
print(inst.query(":SYSTem:ERRor?"))  # Error Query

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz MXO54, MXO54-1000, MXO54-2000, or MXO54-500 and writes the report from the measured results.

Get started

Run a MXO54 test without writing code

Describe the test in a sentence, for example “spectrum cursor mode on the MXO54, then error query and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

63 commands in 19 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The MXO54, MXO54-1000, MXO54-2000, and MXO54-500 share this command set in TestFlow's library.

MATH subsystem (16)

CommandWhat it doesArguments
:MATH<n>:STATe <State>Math Enable. Enables or disables math waveformNumber; Text: ON,OFF
:MATH<n>:DEFine <Expression>Math Expression. Defines math expression (e.g. CH1-CH2)Number; Text: Expression
:MATH<Math_index>:STATe <State>FFT Enable. Enables or disables math waveform slot for FFTNumber; Text: ON,OFF
:MATH<Math_index>:TYPE FFTFFT Set Type. Configures math waveform as FFTNumber
:MATH<Math_index>:FFT:WINDow <Window>FFT Window. Sets FFT windowing functionNumber; Text: RECTangular,HANNing,HAMMing,BLACkman,FLATtop
:MATH<Math_index>:FFT:POINts <Points>FFT Points. Sets number of FFT pointsNumber; Number
:MATH<Math_index>:FFT:UNIT <Unit>FFT Unit. Sets FFT amplitude unitNumber; Text: V,dBV,dBm
:MATH<Math_index>:FFT:SCALe <Scale>FFT Scale. Sets FFT vertical scaleNumber; Text: LINear,LOGarithmic
:MATH<Math_index>:FFT:SPAN <Hz>FFT Span. Sets frequency spanNumber; Number
:MATH<Math_index>:FFT:CENTer <Hz>FFT Center. Sets FFT center frequencyNumber; Number
:MATH<Math_index>:FFT:STARt <Hz>FFT Start. Sets FFT start frequencyNumber; Number
:MATH<Math_index>:FFT:STOP <Hz>FFT Stop. Sets FFT stop frequencyNumber; Number
:MATH<Math_index>:FFT:AVERage <Count>FFT Average Count. Sets FFT averaging countNumber; Number
:MATH<Math_index>:FFT:AVERage:STATe <State>FFT Average Enable. Enables or disables FFT averagingNumber; Text: ON,OFF
:MATH<Math_index>:FFT:SPECTrogram:STATe <State>Spectrogram Enable. Enables spectrogram (time-frequency view)Number; Text: ON,OFF
:MATH<Math_index>:FFT:SPECTrogram:TIME <Seconds>Spectrogram Time. Sets spectrogram time depthNumber; Number

Trigger (TRIGger) (10)

CommandWhat it doesArguments
:TRIGger:MODE <Mode>Trigger Mode. Sets trigger arming behaviorText: AUTO,NORMal
:TRIGger:TYPE <Type>Trigger Type. Selects trigger type.Text: EDGE,WIDTH,RUNT,GLITch
:TRIGger:EVENt1:SOURce C<Source_channel>Trigger Source. Sets trigger source.Text: 1,2,3,4
:TRIGger:LEVel <Volts>Trigger Level. Sets trigger level.Number
:TRIGger:EDGE:SLOPe <Slope>Trigger Slope. Sets edge trigger slope.Text: POSitive,NEGative
:TRIGger:HOLDoff <Seconds>Trigger Holdoff. Sets trigger holdoff timeNumber
:TRIGger:EDGE:COUPling <Type>Trigger Coupling. Sets edge trigger couplingText: DC,AC,HFRej,LFRej
:TRIGger:EDGE:NOISe <State>Trigger NoiseReject. Enables noise rejection on edge triggerText: ON,OFF
:TRIGger:EVENt1:SOURce C<Source_Channel>Trigger Window Source. Sets window trigger sourceNumber: 1,2,3,4
:TRIGger:WINDow:LEVel <Low>,<High>Trigger Window Limits. Sets window trigger low/high thresholdsNumber; Number

Acquisition (ACQuire) (6)

CommandWhat it doesArguments
:ACQuire:RUNRun. Starts continuous acquisition.None
:ACQuire:STOPStop. Stops acquisition.None
:ACQuire:SINGleSingle Seq. Arms a single acquisition.None
:ACQuire:MODE <Mode>Acquisition Mode. Sets acquisition mode (real-time or segmented).Text: RTIMe,SEGMented
:ACQuire:SEGMented:COUNt <Count>Segmented Count. Sets number of segments in segmented modeNumber
:ACQuire:SEGMented:INDex <Index>Segmented Index. Selects which segment to display/readNumber

CURS subsystem (5)

CommandWhat it doesArguments
:CURSor:STATe <State>Cursor Enable. Enables manual cursorsText: ON,OFF
:CURSor:MODE <Mode>Cursor Mode. Selects cursor measurement domainText: TIME,VOLTage
:CURSor:MODE FREQuencySpectrum Cursor Mode. Sets cursor mode to frequencyNone
:CURSor:X<n>?Spectrum Cursor X. Reads cursor frequency positionNumber: 1,2
:CURSor:Y<n>?Spectrum Cursor Y. Reads cursor magnitude (FFT amplitude)Number: 1,2

Channels (CHANnel) (4)

CommandWhat it doesArguments
:CHANnel<n>:STATe <OnOff>Channel Enable. Enables or disables a channel.Number: 1,2,3,4; Text: ON,OFF
:CHANnel<n>:SCALe <VoltsDiv>Channel Scale. Sets vertical scale (V/div).Number: 1,2,3,4; Number
:CHANnel<n>:OFFSet <Volts>Channel Offset. Sets vertical offset.Number: 1,2,3,4; Number
:CHANnel<n>:BANDwidth <State>Channel Bandwidth. Sets channel bandwidth limit.Number: 1,2,3,4; Text: FULL,B20,B50,B100,B200,B350,B500,B700,B1G,B1G5

Timebase (TIMebase) (2)

CommandWhat it doesArguments
:TIMebase:SCALe <SecondsDiv>Timebase Scale. Sets horizontal time scale (seconds/div).Number
:TIMebase:POSition <Seconds>Timebase Position. Sets horizontal trigger position.Number

Measurement (MEASure) (2)

CommandWhat it doesArguments
:MEASure:RESult? <Measure_Index>Measure Read. Reads measurement result by measure index.Number
MEASurement:CLEar ; MEASurement1:SOURce C<Channel> ; MEASurement1:MAIN <Measurment_type> ; MEASurement1:ENABle ON ; wait(100) ; MEASurement1:RESult:ACTual?Measurment. Sets the measurment channel, type and returns the valueNumber: 1,2,3,4; Text: AMPLitude,HIGH,LOW,MAXimum,MINimum,PDELta,MEAN,RMS,STDDev,CRESt,POVershoot,NOVershoot,AREA,RTIMe,FTIMe,PPULse,NPULse,PERiod,FREQuency,PDCYcle,NDCYcle,CYCarea,CYCMean,CYCRms,CYCStddev,PULCnt,BWIDth,EDGecount

HIST subsystem (2)

CommandWhat it doesArguments
:HISTory:STATe <State>History Enable. Enables waveform history modeText: ON,OFF
:HISTory:POSition <Index>History Position. Selects a historical acquisitionNumber

REF subsystem (2)

CommandWhat it doesArguments
:REFerence:SAVE <Index>Reference Save. Saves current waveform as referenceNumber
:REFerence<n>:STATe <State>Reference Display. Displays or hides a reference waveformNumber; Text: ON,OFF

ZOOM subsystem (2)

CommandWhat it doesArguments
:ZOOM<n>:STATe <State>Zoom Enable. Enables or disables zoom windowNumber; Text: ON,OFF
:ZOOM<n>:SCALe <SecondsDiv>Zoom Scale. Sets zoom horizontal scaleNumber; Number

Display (DISPlay) (2)

CommandWhat it doesArguments
:DISPlay:GRID <State>Display Grid. Enables or disables display gridText: ON,OFF
:DISPlay:PERSistence <Mode>Display Persistence. Controls waveform persistenceText: OFF,INF,VARiable

System (SYSTem) (2)

CommandWhat it doesArguments
:SYSTem:DISPlay:UPDate <State>Display Update. Enables or freezes screen updatesText: ON,OFF
:SYSTem:ERRor?Error Query. Reads system error queue.None

HCOP subsystem (1)

CommandWhat it doesArguments
:HCOPy:FORMat PNG ; SYSTem:DISPlay:UPDate ONCapture. Captures the screenshot as pngNone

Calculate (CALCulate) (1)

CommandWhat it doesArguments
:CALCulate:SPECtrum<Math_index>:SOURce C<Source_channel>FFT Set Source. Selects channel source for FFTNumber: 1-4; Text: 1,2,3,4

Waveform (WAVeform) (1)

CommandWhat it doesArguments
:WAVeform:SOURce MATH<n>FFT Waveform Source. Selects FFT waveform as data sourceNumber

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last mearurment to a variableText

IEEE 488.2 common commands (2)

CommandWhat it doesArguments
*IDN?Identify. Returns instrument identification string.None
*RSTReset. Resets the oscilloscope to default settings.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the MXO54, MXO54-1000, MXO54-2000, and MXO54-500 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rohde & Schwarz's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Rohde & Schwarz MXO54 support SCPI remote control?

Yes. The Rohde & Schwarz MXO54 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 63 SCPI commands for it: 7 queries that read values or state, and 56 settings and actions.

How do I control the Rohde & Schwarz MXO54 from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, :CURSor:MODE FREQuency and :SYSTem:ERRor?.

Which command reads a value from the Rohde & Schwarz MXO54?

:SYSTem:ERRor? (error query). Reads system error queue. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rohde & Schwarz MXO54 without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Rohde & Schwarz MXO54 through the TestFlow desktop app, and writes the report from the measured results.

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.