Oscilloscope · SCPI command comparison

Keysight EXR104A vs Tektronix MSO64B: 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 MSO64B takes 268 SCPI commands, 147 of them queries. That is 98 more on the MSO64B. Counting distinct command headers (the command path without its arguments), 7 are accepted by both, 142 exist only on the EXR104A, and 230 only on the MSO64B. 5% of the EXR104A's command headers also exist on the MSO64B.

Both libraries have commands under MEASure, ACQuire, and TRIGger. Only the EXR104A has CHANnel, WAVeform, FUNCtion, WGEN, TIMebase, and SYSTem and 14 more. Only the MSO64B has MEASUrement, CH1, CH, AFG, HORizontal, and DATa and 17 more.

Both libraries synchronise with *OPC?. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO64B 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
MSO64B commands
268
Shared headers
7
Unique headers
372

Run this on your bench

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

Get started

EXR104A vs MSO64B 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 MSO64B
Commands in TestFlow's library170268
Queries (read a value or state)60147
Settings and actions110121
Subsystems2625
Distinct command headers149237
Headers the other lacks142230
Command languageSCPISCPI
Operation complete*OPC?*OPC?
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, MXR608AMSO64B

Commands both accept

7 command headers are in both libraries.

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.
*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.
*ESR?Get Event Status. Reads and clears the standard event status register.
*STB?Get Status Byte. Reads the status byte register.

Only on the Keysight EXR104A

142 command headers in the EXR104A library have no match in the MSO64B 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.

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.

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.

Only on the Tektronix MSO64B

230 command headers in the MSO64B 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 MSO64B command reference.

MEASUrement (35 only on the MSO64B)

CommandWhat it does
MEASUrement:ADDMEAS <type>Add Measurement. Adds a measurement to the measurement table.
MEASUrement:MEAS1:TYPe <type>Set Measurement Type. Sets the type of measurement 1.
MEASUrement:MEAS1:TYPe?Get Measurement Type. Returns the type of measurement 1.
MEASUrement:MEAS1:SOUrce <source>Set Measurement Source. Sets the source waveform of measurement 1.

TRIGger (35 only on the MSO64B)

CommandWhat it does
TRIGger:A:MODe <mode>Set Trigger Mode. Sets the A trigger mode.
TRIGger:A:MODe?Query Trigger Mode. Returns the A trigger mode.
TRIGger:A:HOLDoff:BY <mode>Set Holdoff By. Selects how the A trigger holdoff is set.
TRIGger:A:HOLDoff:BY?Query Holdoff By. Returns how the A trigger holdoff is set.

CH (27 only on the MSO64B)

CommandWhat it does
CH<x>:SCAle <scale>Set Vertical Scale (CH<X>:SCALE). Sets the vertical scale of the specified analog channel.
CH<x>:SCAle?Query Vertical Scale. Returns the vertical scale of the specified analog channel.
CH<x>:TERmination <resistance>Set Input Termination. Sets the vertical termination of the specified analog channel.
CH<x>:TERmination?Query Input Termination. Returns the vertical termination of the specified analog channel.

AFG (20 only on the MSO64B)

CommandWhat it does
AFG:OUTPut:STATE <state>Set AFG Output State. Turns the AFG output on or off; requires option AFG.
AFG:OUTPut:STATE?Query AFG Output State. Returns the AFG output state; requires option AFG.
AFG:FUNCtion <function>Set AFG Function. Sets the AFG function to execute; requires option AFG.
AFG:FUNCtion?Query AFG Function. Returns the AFG function; requires option AFG.

HORizontal (16 only on the MSO64B)

CommandWhat it does
HORizontal:SCAle <scale>Set Horizontal Scale. Sets the horizontal time-per-division scale.
HORizontal:SCAle?Get Horizontal Scale. Returns the horizontal time-per-division scale.
HORizontal:RECOrdlength <length>Set Record Length. Sets the record length in points.
HORizontal:RECOrdlength?Get Record Length. Returns the record length in points.

ACQuire (15 only on the MSO64B)

CommandWhat it does
ACQuire:STATE <state>Set Acquisition State. Starts or stops acquisition; ON or RUN starts a single-sequence acquisition.
ACQuire:STATE?Get Acquisition State. Returns the acquisition state.
ACQuire:STOPAfter <mode>Set Stop After. Sets whether acquisition stops after a single or continuous run.
ACQuire:MODe <mode>Set Acquisition Mode. Sets the acquisition mode of the instrument.

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 AUTOset EXECute on the MSO64B. 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 MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN? on the MSO64B. 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_MSO64B_ADDRESS")  # Tektronix MSO64B
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("AUTOset EXECute")  # Autoset

# 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("MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?"))  # Get Measurement Value

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

Get started

Frequently asked questions

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

In TestFlow's library the EXR104A has 170 SCPI commands and the MSO64B has 268 SCPI commands. 7 command headers are common to both, 142 are only on the EXR104A (mostly MEASure and CHANnel), and 230 are only on the MSO64B (mostly MEASUrement and TRIGger).

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

Partly. 7 command headers are accepted by both. 372 are not, for example :MEASure:SOURce on the EXR104A and MEASUrement:ADDMEAS on the MSO64B, so a script that uses those needs a separate branch for each instrument.

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

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

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

Both libraries synchronise with *OPC?. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO64B 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.