Oscilloscope · SCPI command reference

Rohde & Schwarz MXO58-100, MXO58-1000, MXO58-200, MXO58-2000, MXO58-350, and MXO58-500 SCPI commands

The Rohde & Schwarz MXO58-100, MXO58-1000, MXO58-200, MXO58-2000, MXO58-350, and MXO58-500 oscilloscope is controlled remotely with SCPI commands. TestFlow's instrument library holds 56 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 MXO58-100 on a real bench.

Commands
56
Queries
7
Subsystems
18
Models covered
6

Run this on your bench

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

Get started

Control the Rohde & Schwarz MXO58-100 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 MXO58-100's VISA address

# Paste the address of your Rohde & Schwarz MXO58-100 (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("TRIGger:EVENt1:SOURce C1")  # Trigger Source
print(inst.query("MEASurement1-24:RESult:ACTual?"))  # Measure Read

inst.close()

Run this on your bench

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

Get started

Run a MXO58-100 test without writing code

Describe the test in a sentence, for example “trigger source on the MXO58-100, then measure read 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

56 commands in 18 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The MXO58-100, MXO58-1000, MXO58-200, MXO58-2000, MXO58-350, and MXO58-500 share this command set in TestFlow's library.

Calculate (CALCulate) (13)

CommandWhat it doesArguments
CALCulate:MATH<n>:STATe <State>Math Enable. Enables or disables math waveformNumber: 1-8; Text: ON,OFF
CALCulate:MATH<n>:EXPRession:DEFine "<Expression>"Math Expression. Defines math expression (e.g. CH1-CH2)Number: 1-8; Text
CALCulate:SPECtrum<Math_index>:STATe <State>FFT Enable. Enables or disables math waveform slot for FFTNumber: 1-4; Text: ON,OFF
CALCulate:SPECtrum<Math_index>:SOURce C<Source_channel>FFT Set Source. Selects channel source for FFTNumber: 1-4; Text: 1,2,3,4,5,6,7,8
CALCulate:SPECtrum<Math_index>:FREQuency:WINDow:TYPE <Window>FFT Window. Sets FFT windowing functionNumber: 1-4; Text: RECTangular,HAMMing,HANN,BLACkharris,GAUSsian,FLATTOP2,KAISerbessel
CALCulate:SPECtrum<Math_index>:MAGNitude:SCALe <Unit>FFT Unit. Sets FFT amplitude unitNumber: 1-4; Text: LINear,DB,DBM,DBV,DBUV,DBS,DBHZ
CALCulate:SPECtrum<Math_index>:FREQuency:SCALe <Scale>FFT Scale. Sets FFT vertical scaleNumber: 1-4; Text: LIN,LOG
CALCulate:SPECtrum<Math_index>:FREQuency:SPAN <Hz>FFT Span. Sets frequency spanNumber: 1-4; Number
CALCulate:SPECtrum<Math_index>:FREQuency:CENTer <Hz>FFT Center. Sets FFT center frequencyNumber: 1-4; Number
CALCulate:SPECtrum<Math_index>:FREQuency:STARt <Hz>FFT Start. Sets FFT start frequencyNumber: 1-4; Number
CALCulate:SPECtrum<Math_index>:FREQuency:STOP <Hz>FFT Stop. Sets FFT stop frequencyNumber: 1-4; Number
CALCulate:SPECtrum<Math_index>:WAVeform:AVERage:COUNt <Count>FFT Average Count. Sets FFT averaging countNumber: 1-4; Number: 2-65534
CALCulate:SPECtrum<Math_index>:WAVeform:AVERage:ENABle <State>FFT Average Enable. Enables or disables FFT averagingNumber: 1-4; Text: ON,OFF

Trigger (TRIGger) (10)

CommandWhat it doesArguments
:TRIGger:MODE <Mode>Trigger Mode. Sets trigger arming behaviorText: AUTO,NORMal
TRIGger:EVENt1:TYPE <Type>Trigger Type. Selects trigger type.Text: EDGE,GLITch,WIDTh,RUNT,WINDow,TIMeout,INTerval,SLEWrate
TRIGger:EVENt1:SOURce C<Source_channel>Trigger Source. Sets trigger source.Text: 1,2,3,4,5,6,7,8
TRIGger:EVENt1:LEVel<Channel> <Volts>Trigger Level. Sets trigger level.Number: 1,2,3,4,5,6,7,8; Number: -10-10
TRIGger:EVENt1:EDGE:SLOPe <Slope>Trigger Slope. Sets edge trigger slope.Text: POSitive,NEGative,EITHer
TRIGger:HOLDoff:MODE TIME ; TRIGger:HOLDoff:TIME <Seconds>Trigger Holdoff. Sets trigger holdoff timeNumber: 1E-7-10
: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,5,6,7,8
:TRIGger:WINDow:LEVel <Low>,<High>Trigger Window Limits. Sets window trigger low/high thresholdsNumber; Number

Acquisition (ACQuire) (4)

CommandWhat it doesArguments
ACQuire:TYPE <Mode>Acquisition Mode. Sets acquisition mode (real-time or segmented).Text: SAMPle,PDETect,ENVelope,AVERage
ACQuire:COUNt <Count>Segmented Count. Sets number of segments in segmented modeNumber: 1-16777215
ACQuire:HISTory:STATe <State>History Enable. Enables waveform history modeText: ON,OFF
ACQuire:HISTory:CURRent <Index>History Position. Selects a historical acquisitionNumber: -2147483648-0

Channels (CHANnel) (4)

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

CURS subsystem (4)

CommandWhat it doesArguments
:CURSor:STATe <State>Cursor Enable. Enables manual cursorsText: ON,OFF
CURSor:FUNCtion <Mode>Cursor Mode. Selects cursor measurement domainText: VERTical,HORizontal,PAIRed
CURSor:X<n>Position?Spectrum Cursor X. Reads cursor frequency positionNumber: 1,2
CURSor:Y<n>Position?Spectrum Cursor Y. Reads cursor magnitude (FFT amplitude)Number: 1,2

System (SYSTem) (3)

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

Timebase (TIMebase) (2)

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

Measurement (MEASure) (2)

CommandWhat it doesArguments
MEASurement<Measure_Index>:RESult:ACTual?Measure Read. Reads measurement result by measure index.Number: 1-24
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,5,6,7,8; 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

REFC subsystem (2)

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

LAY subsystem (2)

CommandWhat it doesArguments
LAYout:ZOOM<n>:ENABle <State>Zoom Enable. Enables or disables zoom windowNumber: 1-8; Text: ON,OFF
LAYout:ZOOM<n>:HORizontal:ABSolute:SPAN <Seconds>Zoom Scale. Sets zoom horizontal scaleNumber: 1-8; Number

Display (DISPlay) (2)

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

Run control (1)

CommandWhat it doesArguments
RUNRun. Starts continuous acquisition.None

Run control (1)

CommandWhat it doesArguments
STOPStop. Stops acquisition.None

Run control (1)

CommandWhat it doesArguments
SINGleSingle Seq. Arms a single acquisition.None

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 MXO58-100, MXO58-1000, MXO58-200, MXO58-2000, MXO58-350, and MXO58-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 MXO58-100 support SCPI remote control?

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

How do I control the Rohde & Schwarz MXO58-100 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?, TRIGger:EVENt1:SOURce C1 and MEASurement1-24:RESult:ACTual?.

Which command reads a value from the Rohde & Schwarz MXO58-100?

MEASurement1-24:RESult:ACTual? (measure read). Reads measurement result by measure index. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rohde & Schwarz MXO58-100 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 MXO58-100 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.