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.
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.
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()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.
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.
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.
| Command | What it does | Arguments |
|---|---|---|
| CALCulate:MATH<n>:STATe <State> | Math Enable. Enables or disables math waveform | Number: 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 FFT | Number: 1-4; Text: ON,OFF |
| CALCulate:SPECtrum<Math_index>:SOURce C<Source_channel> | FFT Set Source. Selects channel source for FFT | Number: 1-4; Text: 1,2,3,4,5,6,7,8 |
| CALCulate:SPECtrum<Math_index>:FREQuency:WINDow:TYPE <Window> | FFT Window. Sets FFT windowing function | Number: 1-4; Text: RECTangular,HAMMing,HANN,BLACkharris,GAUSsian,FLATTOP2,KAISerbessel |
| CALCulate:SPECtrum<Math_index>:MAGNitude:SCALe <Unit> | FFT Unit. Sets FFT amplitude unit | Number: 1-4; Text: LINear,DB,DBM,DBV,DBUV,DBS,DBHZ |
| CALCulate:SPECtrum<Math_index>:FREQuency:SCALe <Scale> | FFT Scale. Sets FFT vertical scale | Number: 1-4; Text: LIN,LOG |
| CALCulate:SPECtrum<Math_index>:FREQuency:SPAN <Hz> | FFT Span. Sets frequency span | Number: 1-4; Number |
| CALCulate:SPECtrum<Math_index>:FREQuency:CENTer <Hz> | FFT Center. Sets FFT center frequency | Number: 1-4; Number |
| CALCulate:SPECtrum<Math_index>:FREQuency:STARt <Hz> | FFT Start. Sets FFT start frequency | Number: 1-4; Number |
| CALCulate:SPECtrum<Math_index>:FREQuency:STOP <Hz> | FFT Stop. Sets FFT stop frequency | Number: 1-4; Number |
| CALCulate:SPECtrum<Math_index>:WAVeform:AVERage:COUNt <Count> | FFT Average Count. Sets FFT averaging count | Number: 1-4; Number: 2-65534 |
| CALCulate:SPECtrum<Math_index>:WAVeform:AVERage:ENABle <State> | FFT Average Enable. Enables or disables FFT averaging | Number: 1-4; Text: ON,OFF |
| Command | What it does | Arguments |
|---|---|---|
| :TRIGger:MODE <Mode> | Trigger Mode. Sets trigger arming behavior | Text: 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 time | Number: 1E-7-10 |
| :TRIGger:EDGE:COUPling <Type> | Trigger Coupling. Sets edge trigger coupling | Text: DC,AC,HFRej,LFRej |
| :TRIGger:EDGE:NOISe <State> | Trigger NoiseReject. Enables noise rejection on edge trigger | Text: ON,OFF |
| TRIGger:EVENt1:SOURce C<Source_Channel> | Trigger Window Source. Sets window trigger source | Number: 1,2,3,4,5,6,7,8 |
| :TRIGger:WINDow:LEVel <Low>,<High> | Trigger Window Limits. Sets window trigger low/high thresholds | Number; Number |
| Command | What it does | Arguments |
|---|---|---|
| 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 mode | Number: 1-16777215 |
| ACQuire:HISTory:STATe <State> | History Enable. Enables waveform history mode | Text: ON,OFF |
| ACQuire:HISTory:CURRent <Index> | History Position. Selects a historical acquisition | Number: -2147483648-0 |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :CURSor:STATe <State> | Cursor Enable. Enables manual cursors | Text: ON,OFF |
| CURSor:FUNCtion <Mode> | Cursor Mode. Selects cursor measurement domain | Text: VERTical,HORizontal,PAIRed |
| CURSor:X<n>Position? | Spectrum Cursor X. Reads cursor frequency position | Number: 1,2 |
| CURSor:Y<n>Position? | Spectrum Cursor Y. Reads cursor magnitude (FFT amplitude) | Number: 1,2 |
| Command | What it does | Arguments |
|---|---|---|
| SYSTem:DISPlay:UPDate ON | Capture. Captures the screenshot as png | None |
| :SYSTem:DISPlay:UPDate <State> | Display Update. Enables or freezes screen updates | Text: ON,OFF |
| :SYSTem:ERRor? | Error Query. Reads system error queue. | None |
| Command | What it does | Arguments |
|---|---|---|
| :TIMebase:SCALe <SecondsDiv> | Timebase Scale. Sets horizontal time scale (seconds/div). | Number |
| TIMebase:HORizontal:POSition <Seconds> | Timebase Position. Sets horizontal trigger position. | Number |
| Command | What it does | Arguments |
|---|---|---|
| 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 value | Number: 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 |
| Command | What it does | Arguments |
|---|---|---|
| REFCurve<Index>:SAVE | Reference Save. Saves current waveform as reference | Number: 1-8 |
| REFCurve<n>:STATe <State> | Reference Display. Displays or hides a reference waveform | Number: 1-8; Text: ON,OFF |
| Command | What it does | Arguments |
|---|---|---|
| LAYout:ZOOM<n>:ENABle <State> | Zoom Enable. Enables or disables zoom window | Number: 1-8; Text: ON,OFF |
| LAYout:ZOOM<n>:HORizontal:ABSolute:SPAN <Seconds> | Zoom Scale. Sets zoom horizontal scale | Number: 1-8; Number |
| Command | What it does | Arguments |
|---|---|---|
| DISPlay:DIAGram:GRID <State> | Display Grid. Enables or disables display grid | Text: ON,OFF |
| :DISPlay:PERSistence <Mode> | Display Persistence. Controls waveform persistence | Text: ON,OFF |
| Command | What it does | Arguments |
|---|---|---|
| RUN | Run. Starts continuous acquisition. | None |
| Command | What it does | Arguments |
|---|---|---|
| STOP | Stop. Stops acquisition. | None |
| Command | What it does | Arguments |
|---|---|---|
| SINGle | Single Seq. Arms a single acquisition. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last mearurment to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *IDN? | Identify. Returns instrument identification string. | None |
| *RST | Reset. Resets the oscilloscope to default settings. | None |
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.
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.
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?.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.