In TestFlow's instrument library, the Rigol MSO5074 takes 161 SCPI commands, 49 of them queries, and the Rohde & Schwarz MXO54 takes 63 SCPI commands, 7 of them queries. That is 98 more on the MSO5074. Counting distinct command headers (the command path without its arguments), 12 are accepted by both, 114 exist only on the MSO5074, and 45 only on the MXO54. 10% of the MSO5074's command headers also exist on the MXO54.
Both libraries have commands under MEASure, CHANnel, TRIGger, WAVeform, TIMebase, CURSor, ACQuire, and MATH, plus 2 more roots. Only the MSO5074 has SOURce, LA, COUNter, PNG, AUToscale, and RUN and 4 more. Only the MXO54 has HISTory, REFerence, ZOOM, HCOPy, and CALCulate.
Only the MSO5074 library has an operation-complete command (*OPC?); the MXO54 library has none. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the MSO5104 the same command set as the MSO5074, so the MSO5074 column applies to it too. 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.
Describe the test; TestFlow's agent uses these command sets to drive your Rigol MSO5074 or Rohde & Schwarz MXO54 and writes the report from the measured results.
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.
| Rigol MSO5074 | Rohde & Schwarz MXO54 | |
|---|---|---|
| Commands in TestFlow's library | 161 | 63 |
| Queries (read a value or state) | 49 | 7 |
| Settings and actions | 112 | 56 |
| Subsystems | 23 | 19 |
| Distinct command headers | 126 | 57 |
| Headers the other lacks | 114 | 45 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | MSO5074, MSO5104 | MXO54, MXO54-1000, MXO54-2000, MXO54-500 |
12 command headers are in both libraries. Where the MXO54 library writes the command differently, its form is shown under the MSO5074's.
| Command | What it does |
|---|---|
| :MEASure:CLEar ALLMXO54: MEASurement:CLEar ; ... | Clear Measurements. Clears all the automatic measurement items currently displayed. |
| :CHANnel<Channel>:SCALe <Scale>MXO54: :CHANnel<n>:SCALe <VoltsDiv> | Channel Scale. Sets the vertical scale of the specified channel in V/div. |
| :TRIGger:MODE <Type>MXO54: :TRIGger:MODE <Mode> | Trigger Type. Selects the trigger type. |
| :WAVeform:SOURce <Source>MXO54: :WAVeform:SOURce MATH<n> | Waveform Source. Sets the channel whose waveform data will be read. |
| :CURSor:MODE <Mode> | Cursor Mode. Enables cursor measurement in the selected mode. |
| :DISPlay:GRID <Grid>MXO54: :DISPlay:GRID <State> | Display Grid. Sets the screen grid type. |
| :SYSTem:ERRor? | Get Error. Queries and clears the next message in the system error queue. |
| *RST | Reset. Restores the instrument to its factory default state. |
| :CHANnel<Channel>:OFFSet <Offset>MXO54: :CHANnel<n>:OFFSet <Volts> | Channel Offset. Sets the vertical offset of the specified channel in volts. |
| :TRIGger:HOLDoff <Time>MXO54: :TRIGger:HOLDoff <Seconds> | Trigger Holdoff. Sets the trigger holdoff time in seconds. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial number, firmware version). |
| :TRIGger:EDGE:SLOPe <Slope> | Trigger Edge Slope. Sets the edge type (rising, falling or either) used by the edge trigger. |
114 command headers in the MSO5074 library have no match in the MXO54 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rigol MSO5074 command reference.
| Command | What it does |
|---|---|
| :MEASure:SOURce <Source> | Measure Source. Sets the source of the automatic measurement parameters. |
| :MEASure:ITEM <Item>,<Source> | Measure Item. Adds an automatic measurement of the selected parameter on the selected source. |
| :MEASure:ITEM? <Item>,<Source> | Get Measure Item. Queries the measurement result of the selected parameter on the selected source. |
| :MEASure:AMSource <Source> | Measure All Source. Sets the source of the all-parameter measurement function. |
| Command | What it does |
|---|---|
| :CHANnel<Channel>:DISPlay ON | Channel On. Turns on the display of the specified analog channel. |
| :CHANnel<Channel>:DISPlay? | Get Channel State. Queries the on/off status of the specified analog channel (returns 1 or 0). |
| :CHANnel<Channel>:COUPling <Coupling> | Channel Coupling. Sets the input coupling mode of the specified analog channel. |
| :CHANnel<Channel>:COUPling? | Get Channel Coupling. Queries the input coupling mode of the specified analog channel. |
| Command | What it does |
|---|---|
| :TRIGger:MODE? | Get Trigger Type. Queries the trigger type currently selected. |
| :TRIGger:SWEep <Sweep> | Trigger Sweep. Sets the trigger mode to auto, normal or single. |
| :TRIGger:COUPling <Coupling> | Trigger Coupling. Sets the trigger coupling type (edge trigger with an analog source only). |
| :TRIGger:NREJect ON | Noise Reject On. Enables trigger noise rejection to reduce false triggering. |
| Command | What it does |
|---|---|
| :WAVeform:MODE <Mode> | Waveform Mode. Sets the reading mode of the waveform data (screen data or internal memory data). |
| :WAVeform:FORMat <Format> | Waveform Format. Sets the return format of the waveform data. |
| :WAVeform:STARt <Point> | Waveform Start. Sets the start point of the waveform data reading. |
| :WAVeform:STOP <Point> | Waveform Stop. Sets the stop point of the waveform data reading. |
| Command | What it does |
|---|---|
| :TIMebase:MAIN:SCALe <Scale> | Timebase Scale. Sets the main timebase scale in s/div. |
| :TIMebase:MAIN:SCALe? | Get Timebase Scale. Queries the main timebase scale in s/div. |
| :TIMebase:MAIN:OFFSet <Offset> | Timebase Offset. Sets the main timebase (horizontal) offset in seconds relative to the trigger point. |
| :TIMebase:MAIN:OFFSet? | Get Timebase Offset. Queries the main timebase (horizontal) offset in seconds. |
| Command | What it does |
|---|---|
| :CURSor:MANual:SOURce <Source> | Cursor Source. Sets the channel the manual cursors measure. |
| :CURSor:MANual:TYPE <Type> | Cursor Type. Sets the manual cursor type (X for time, Y for amplitude). |
| :CURSor:MANual:CAX <Position> | Cursor AX. Sets the horizontal position of cursor A in screen pixels. |
| :CURSor:MANual:CBX <Position> | Cursor BX. Sets the horizontal position of cursor B in screen pixels. |
45 command headers in the MXO54 library have no match in the MSO5074 library. Below are 19 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz MXO54 command reference.
| Command | What 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 FFT | FFT Set Type. Configures math waveform as FFT |
| :MATH<Math_index>:FFT:WINDow <Window> | FFT Window. Sets FFT windowing function |
| Command | What it does |
|---|---|
| :ACQuire:RUN | Run. Starts continuous acquisition. |
| :ACQuire:STOP | Stop. Stops acquisition. |
| :ACQuire:SINGle | Single Seq. Arms a single acquisition. |
| :ACQuire:MODE <Mode> | Acquisition Mode. Sets acquisition mode (real-time or segmented). |
| Command | What it does |
|---|---|
| :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. |
| :TRIGger:EDGE:COUPling <Type> | Trigger Coupling. Sets edge trigger coupling |
| Command | What it does |
|---|---|
| :CURSor:STATe <State> | Cursor Enable. Enables manual cursors |
| :CURSor:X<n>? | Spectrum Cursor X. Reads cursor frequency position |
| :CURSor:Y<n>? | Spectrum Cursor Y. Reads cursor magnitude (FFT amplitude) |
| Command | What it does |
|---|---|
| :CHANnel<n>:STATe <OnOff> | Channel Enable. Enables or disables a channel. |
| :CHANnel<n>:BANDwidth <State> | Channel Bandwidth. Sets channel bandwidth limit. |
| Command | What it does |
|---|---|
| :HISTory:STATe <State> | History Enable. Enables waveform history mode |
| :HISTory:POSition <Index> | History Position. Selects a historical acquisition |
With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold :TRIGger:MODE (trigger type); the MXO54 library writes it as :TRIGger:MODE AUTO. For the reading, both libraries hold :SYSTem:ERRor? (get error), and the same line runs on each. 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_MSO5074_ADDRESS") # Rigol MSO5074
b = rm.open_resource("PASTE_MXO54_ADDRESS") # Rohde & Schwarz MXO54
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Trigger Type
a.write(":TRIGger:MODE EDGE")
b.write(":TRIGger:MODE AUTO")
# The same reading on both: Get Error
print(a.query(":SYSTem:ERRor?"))
print(b.query(":SYSTem:ERRor?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Rigol MSO5074 or Rohde & Schwarz MXO54 and writes the report from the measured results.
In TestFlow's library the MSO5074 has 161 SCPI commands and the MXO54 has 63 SCPI commands. 12 command headers are common to both, 114 are only on the MSO5074 (mostly MEASure and CHANnel), and 45 are only on the MXO54 (mostly MATH and ACQuire).
Partly. 12 command headers are accepted by both, including :MEASure:CLEar, :CHANnel<Channel>:SCALe, and :TRIGger:MODE. 159 are not, for example :MEASure:SOURce on the MSO5074 and :MATH<n>:STATe on the MXO54, so a script that uses those needs a separate branch for each instrument.
The MSO5074: 161 commands for the MSO5074 against 63 for the MXO54 in TestFlow's library. Of those, 49 on the MSO5074 and 7 on the MXO54 are queries that read a value or state, and the library splits them into 23 and 19 subsystems.
Only the MSO5074 library has an operation-complete command (*OPC?); the MXO54 library has none. Both libraries read errors with SYSTem:ERRor?. Each command named here is listed in the tables on this page and on each instrument's command reference.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.