Oscilloscope · SCPI command comparison

Keysight EXR104A vs Rohde & Schwarz MXO54: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight EXR104A takes 170 SCPI commands, 60 of them queries, and the Rohde & Schwarz MXO54 takes 63 SCPI commands, 7 of them queries. That is 107 more on the EXR104A. Counting distinct command headers (the command path without its arguments), 18 are accepted by both, 131 exist only on the EXR104A, and 39 only on the MXO54. 12% of the EXR104A's command headers also exist on the MXO54.

Both libraries have commands under MEASure, CHANnel, ACQuire, WAVeform, TRIGger, TIMebase, SYSTem, and DISPlay. Only the EXR104A has FUNCtion, WGEN, DIGitize, PNG, DISK, and POD and 9 more. Only the MXO54 has MATH, CURSor, HISTory, REFerence, ZOOM, and HCOPy and 1 more.

Only the EXR104A library has an operation-complete command (*OPC?); the MXO54 library has none. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the EXR108A, EXR204A, EXR208A, EXR254A, EXR258A, EXR404A, EXR408A, EXR604A, EXR608A, MXR054A, MXR058A, MXR104A, MXR108A, MXR204A, MXR208A, MXR254A, MXR258A, MXR404A, MXR408A, MXR604A, and MXR608A the same command set as the EXR104A, so the EXR104A column applies to them 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.

EXR104A commands
170
MXO54 commands
63
Shared headers
18
Unique headers
170

Run this on your bench

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

Get started

EXR104A vs MXO54 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.

Keysight EXR104ARohde & Schwarz MXO54
Commands in TestFlow's library17063
Queries (read a value or state)607
Settings and actions11056
Subsystems2619
Distinct command headers14957
Headers the other lacks13139
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setEXR104A, EXR108A, EXR204A, EXR208A, EXR254A, EXR258A, EXR404A, EXR408A, EXR604A, EXR608A, MXR054A, MXR058A, MXR104A, MXR108A, MXR204A, MXR208A, MXR254A, MXR258A, MXR404A, MXR408A, MXR604A, MXR608AMXO54, MXO54-1000, MXO54-2000, MXO54-500

Commands both accept

18 command headers are in both libraries. Here are 12, taken across subsystems. Where the MXO54 library writes the command differently, its form is shown under the EXR104A's.

CommandWhat it does
:MEASure:RESults?MXO54: :MEASure:RESult? <Measure_Index>Get Measure Results. Returns the results of the continuously displayed measurements as a comma-separated list.
:CHANnel<Channel>:SCALe <Scale>MXO54: :CHANnel<n>:SCALe <VoltsDiv>Channel Scale. Sets the vertical scale of the specified channel in units per division.
:ACQuire:MODE <Mode>Acquire Mode. Sets the sampling and acquisition mode of the oscilloscope.
:WAVeform:SOURce <Source>MXO54: :WAVeform:SOURce MATH<n>Waveform Source. Selects the source of the waveform data read back over the bus.
:TRIGger:MODE <Mode>Trigger Mode. Selects the trigger type used by the oscilloscope.
:TIMebase:SCALe <Scale>MXO54: :TIMebase:SCALe <SecondsDiv>Timebase Scale. Sets the main timebase in seconds per division.
:SYSTem:ERRor?Get Error. Reads and clears the next entry in the error queue.
:DISPlay:PERSistence MINimumMXO54: :DISPlay:PERSistence <Mode>Persistence Minimum. Sets waveform persistence to minimum so old acquisitions are erased immediately.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial number, firmware version).
:MEASure:CLEarMXO54: MEASurement:CLEar ; ...Clear Measurements. Clears the measurement results from the screen and disables all enabled measurements.
:CHANnel<Channel>:OFFSet <Offset>MXO54: :CHANnel<n>:OFFSet <Volts>Channel Offset. Sets the vertical value represented at the centre of the screen for the specified channel.
:ACQuire:SEGMented:COUNt <Count>Segmented Count. Sets the number of memory segments to acquire in segmented memory mode.

Only on the Keysight EXR104A

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

MEASure (24 only on the EXR104A)

CommandWhat it does
:MEASure:SOURce <Source>Measure Source. Selects the source used by subsequent measurement commands.
:MEASure:SOURce?Get Measure Source. Queries the source currently selected for measurements.
:MEASure:VPP? <Source>Measure Vpp. Measures the peak-to-peak voltage of the selected source.
:MEASure:VMAX? <Source>Measure Vmax. Measures the maximum voltage of the selected source.

CHANnel (14 only on the EXR104A)

CommandWhat it does
:CHANnel<Channel>:DISPlay ONChannel On. Turns on the display of the specified analog channel.
:CHANnel<Channel>:DISPlay?Get Channel State. Queries whether the specified analog channel is displayed (1) or not (0).
:CHANnel<Channel>:INPut <Input>Channel Input. Selects the input coupling and impedance of the specified analog channel.
:CHANnel<Channel>:INPut?Get Channel Input. Queries the input coupling and impedance of the specified analog channel.

ACQuire (12 only on the EXR104A)

CommandWhat it does
:ACQuire:AVERage ONAveraging On. Enables waveform averaging over multiple acquisitions.
:ACQuire:AVERage:COUNt <Count>Average Count. Sets the number of acquisitions averaged together when averaging is enabled.
:ACQuire:AVERage:COUNt?Get Average Count. Queries the number of averages currently configured.
:ACQuire:MODE?Get Acquire Mode. Queries the current sampling and acquisition mode.

WAVeform (12 only on the EXR104A)

CommandWhat it does
:WAVeform:FORMat <Format>Waveform Format. Sets the data transmission format of the waveform data.
:WAVeform:BYTeorder <Order>Waveform Byte Order. Sets whether the least or most significant byte is transmitted first for multi-byte data.
:WAVeform:VIEW <View>Waveform View. Selects how much of the acquisition record is returned by the waveform data query.
:WAVeform:DATA?Get Waveform Data. Reads the waveform data of the selected source in the selected format.

FUNCtion (11 only on the EXR104A)

CommandWhat it does
:FUNCtion<Math>:DISPlay ONMath Display On. Turns on the display of the specified math function waveform.
:FUNCtion<Math>:ADD <Source_1>,<Source_2>Math Add. Defines the math function as the algebraic sum of the two operands.
:FUNCtion<Math>:SUBTract <Source_1>,<Source_2>Math Subtract. Defines the math function as the algebraic difference of the two operands.
:FUNCtion<Math>:MULTiply <Source_1>,<Source_2>Math Multiply. Defines the math function as the product of the two operands.

IEEE 488.2 common (*) (10 only on the EXR104A)

CommandWhat it does
*CLSClear Status. Clears all event registers and the error queue.
*TST?Self Test. Runs the internal self-test and returns 0 for pass or a non-zero code for failure.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.
*WAIWait To Continue. Waits until all pending operations are complete before executing the next command.

Only on the Rohde & Schwarz MXO54

39 command headers in the MXO54 library have no match in the EXR104A library. Below are 19 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 (5 only on the MXO54)

CommandWhat it does
:TRIGger:TYPE <Type>Trigger Type. Selects trigger type.
:TRIGger:EVENt1:SOURce C<Source_channel>Trigger Source. Sets trigger source.
:TRIGger:EDGE:COUPling <Type>Trigger Coupling. Sets edge trigger coupling
:TRIGger:EDGE:NOISe <State>Trigger NoiseReject. Enables noise rejection on edge trigger

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)

ACQuire (3 only on the MXO54)

CommandWhat it does
:ACQuire:RUNRun. Starts continuous acquisition.
:ACQuire:STOPStop. Stops acquisition.
:ACQuire:SINGleSingle Seq. Arms a single acquisition.

CHANnel (2 only on the MXO54)

CommandWhat it does
:CHANnel<n>:STATe <OnOff>Channel Enable. Enables or disables a channel.
:CHANnel<n>:BANDwidth <State>Channel Bandwidth. Sets channel bandwidth limit.

HISTory (2 only on the MXO54)

CommandWhat it does
:HISTory:STATe <State>History Enable. Enables waveform history mode
:HISTory:POSition <Index>History Position. Selects a historical acquisition

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, both libraries hold :ACQuire:MODE (acquire mode), and the same line runs on each. 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_EXR104A_ADDRESS")  # Keysight EXR104A
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: Acquire Mode
a.write(":ACQuire:MODE RTIMe")
b.write(":ACQuire:MODE RTIMe")

# The same reading on both: Get Error
print(a.query(":SYSTem:ERRor?"))
print(b.query(":SYSTem:ERRor?"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Keysight EXR104A and the Rohde & Schwarz MXO54 for remote control?

In TestFlow's library the EXR104A has 170 SCPI commands and the MXO54 has 63 SCPI commands. 18 command headers are common to both, 131 are only on the EXR104A (mostly MEASure and CHANnel), and 39 are only on the MXO54 (mostly MATH and TRIGger).

Can I use the same SCPI code for the Keysight EXR104A and the Rohde & Schwarz MXO54?

Partly. 18 command headers are accepted by both, including :MEASure:RESults?, :CHANnel<Channel>:SCALe, and :ACQuire:MODE. 170 are not, for example :MEASure:SOURce on the EXR104A and :MATH<n>:STATe on the MXO54, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the EXR104A or the MXO54?

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

How do the EXR104A and MXO54 signal operation complete and report errors?

Only the EXR104A 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.

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.