Oscilloscope · SCPI command comparison

Keysight EXR104A vs Tektronix MSO54B: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight EXR104A takes 170 SCPI commands, 60 of them queries, and the Tektronix MSO54B takes 70 SCPI commands, 7 of them queries. That is 100 more on the EXR104A. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 149 exist only on the EXR104A, and 49 only on the MSO54B. None of the EXR104A's command headers appears in the MSO54B library, so a script written for one needs every command rewritten for the other.

Both libraries have commands under ACQuire and TRIGger. Only the EXR104A has MEASure, CHANnel, WAVeform, FUNCtion, WGEN, and TIMebase and 15 more. Only the MSO54B has AFG, DISplay, CURSor, MEASUrement, CH<Digital, and SEARCH and 5 more.

Only the EXR104A library has an operation-complete command (*OPC?); the MSO54B library has none. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO54B library has none.

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.

EXR104A commands
170
MSO54B commands
70
Shared headers
0
Unique headers
198

Run this on your bench

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

Get started

EXR104A vs MSO54B 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 EXR104ATektronix MSO54B
Commands in TestFlow's library17070
Queries (read a value or state)607
Settings and actions11063
Subsystems2617
Distinct command headers14949
Headers the other lacks14949
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?Not in library
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, MXR608AMSO54B

Commands both accept

None. No command header in TestFlow's EXR104A library matches one in its MSO54B library, so every command needs its own version for each instrument.

Only on the Keysight EXR104A

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

MEASure (26 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 (16 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 (15 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 <Mode>Acquire Mode. Sets the sampling and acquisition mode of the oscilloscope.

WAVeform (13 only on the EXR104A)

CommandWhat it does
:WAVeform:SOURce <Source>Waveform Source. Selects the source of the waveform data read back over the bus.
: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.

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

CommandWhat it does
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial number, firmware version).
*RSTReset. Restores the oscilloscope to its factory default state.
*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.

TRIGger (12 only on the EXR104A)

CommandWhat it does
:TRIGger:SWEep <Sweep>Trigger Sweep. Selects auto or triggered sweep mode.
:TRIGger:SWEep?Get Trigger Sweep. Queries the current trigger sweep mode.
:TRIGger:MODE <Mode>Trigger Mode. Selects the trigger type used by the oscilloscope.
:TRIGger:MODE?Get Trigger Mode. Queries the currently selected trigger type.

Only on the Tektronix MSO54B

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

AFG (16 only on the MSO54B)

CommandWhat it does
AFG:AMPLitude <Voltage>AFG Amplitude.
AFG:ARBitrary:SOUrce <Source_path>AFG source.
AFG:BURSt:CCOUnt <Cycles_count>AFG cycles count.
AFG:BURSt:TRIGgerAFG burst.

TRIGger (8 only on the MSO54B)

CommandWhat it does
TRIGger:A:EDGE:SLOpe <Slope>Trigget slope.
TRIGger:A:EDGE:COUPling <Coupling>Trigger coupling.
TRIGger:A:LEVel:<Channel> <Volt>Trigger level.
TRIGger:A:TYPe LOGIc ; ...D trigger condition.

CURSor (5 only on the MSO54B)

CommandWhat it does
CURSor:SOUrce <Channel>Cursor channel.
CURSor:FUNCtion WAVEFORMCursers ON.
CURSor:DDT?Cursers dV/dT.
CURSor:HBArs:DELTa?Cursor dV.

DISplay (4 only on the MSO54B)

CommandWhat it does
DISplay:WAVEView1:CURSor:CURSOR1:MODe <Mode>Cursor mode.
DISplay:WAVEView1:CURSor:CURSOR1:VBArs:DELTa?Cursor dT.
DISplay:WAVEView1:CH<Digital Channel>_DALL:STATE ONBits ON.
DISplay:GLObal:CH<Digital Channel>:STATE <State>D channel display.

MEASUrement (4 only on the MSO54B)

CommandWhat it does
MEASUrement:IMMed:SOUrce <Channel> ; ...Measurement.
MEASUrement:IMMed:TYPe <Measurement>Measurement Type.
MEASUrement:IMMed:VALue?Measure.
MEASUrement:IMMed:DELay:EDGE1 <Edge> ; ...Measure delay.

SEARCH (4 only on the MSO54B)

CommandWhat it does
SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:LOGICPattern:CH<Digital Bit> <State>Search pattern.
SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:WHEn <Condition>Search condition.
SEARCH:SEARCH<Search>:TRIGger:A:PULSEWidth:HIGHLimit <Width>Search puls width.
SEARCH:SEARCH<Search>:TRIGger:A:TIMEOut:TIMe <Time>Search TIMEOUT.

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, the two libraries have no common command with a worked example on both, so each instrument uses its own: :AUToscale on the EXR104A and ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto on the MSO54B. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: :MEASure:RESults? on the EXR104A and Set? on the MSO54B. 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_MSO54B_ADDRESS")  # Tektronix MSO54B
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# No shared setting with an example on both, so each uses its own command
a.write(":AUToscale")  # Auto Scale
b.write("ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto")  # RUN

# No shared reading with an example on both, so each uses its own command
print(a.query(":MEASure:RESults?"))  # Get Measure Results
print(b.query("Set?"))  # Get settings

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 Tektronix MSO54B and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight EXR104A and the Tektronix MSO54B for remote control?

In TestFlow's library the EXR104A has 170 SCPI commands and the MSO54B has 70 SCPI commands. 0 command headers are common to both, 149 are only on the EXR104A (mostly MEASure and CHANnel), and 49 are only on the MSO54B (mostly AFG and TRIGger).

Can I use the same SCPI code for the Keysight EXR104A and the Tektronix MSO54B?

Not without changes. None of the 149 command headers in the EXR104A library matches one of the 49 in the MSO54B library: the EXR104A uses commands such as :MEASure:SOURce and the MSO54B uses commands such as AFG:AMPLitude. PyVISA opens both the same way, but each command needs its own version for each instrument.

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

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

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

Only the EXR104A library has an operation-complete command (*OPC?); the MSO54B library has none. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO54B library has none. 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.