Oscilloscope · SCPI command comparison

Keysight MSOS104A vs Teledyne LeCroy HDO6054B: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight MSOS104A takes 159 SCPI commands, 60 of them queries, and the Teledyne LeCroy HDO6054B takes 78 SCPI commands, 38 of them queries. That is 81 more on the MSOS104A. Counting distinct command headers (the command path without its arguments), 12 are accepted by both, 127 exist only on the MSOS104A, and 29 only on the HDO6054B. 9% of the MSOS104A's command headers also exist on the HDO6054B.

Both libraries have commands under WAVeform, TRIGger, TIMebase, AUToscale, and STOP. Only the MSOS104A has MEASure, CHANnel, ACQuire, FUNCtion, SYSTem, and DIGitize and 11 more. Only the HDO6054B has COMM_HEADER, VBS, PARAMETER_CUSTOM, SEQUENCE, BANDWIDTH_LIMIT, and CURSOR_MEASURE and 12 more.

Both libraries synchronise with *OPC?. Only the MSOS104A library has an error-queue read (SYSTem:ERRor?); the HDO6054B library has none.

TestFlow's library gives the MSOS204A, MSOS254A, MSOS404A, MSOS604A, and MSOS804A the same command set as the MSOS104A, so the MSOS104A column applies to them too.

MSOS104A commands
159
HDO6054B commands
78
Shared headers
12
Unique headers
156

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight MSOS104A or Teledyne LeCroy HDO6054B and writes the report from the measured results.

Get started

MSOS104A vs HDO6054B 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 MSOS104ATeledyne LeCroy HDO6054B
Commands in TestFlow's library15978
Queries (read a value or state)6038
Settings and actions9940
Subsystems2525
Distinct command headers13941
Headers the other lacks12729
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?Not in library
Models on this command setMSOS104A, MSOS204A, MSOS254A, MSOS404A, MSOS604A, MSOS804AHDO6054B

Commands both accept

12 command headers are in both libraries. Where the HDO6054B library writes the command differently, its form is shown under the MSOS104A's.

CommandWhat it does
:AUToscaleHDO6054B: AUTO_SETUPAuto Scale. Evaluates all input signals and sets the correct vertical, horizontal and trigger settings to display the signals.
:STOPStop. Stops the acquisition system and freezes the last acquired waveform on screen.
*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.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.
*ESR?Get Event Status. Reads and clears the standard event status register.
*STB?Get Status Byte. Reads the status byte register.
*OPT?Get Options. Returns a comma-separated list of the licences and options installed in the oscilloscope.
*SAV <Register>HDO6054B: *SAV <Setup>Save Setup. Stores the current oscilloscope setup in the specified save/recall register.
*RCL <Register>HDO6054B: *RCL <Setup>Recall Setup. Recalls a previously stored oscilloscope setup from the specified register.

Only on the Keysight MSOS104A

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

MEASure (26 only on the MSOS104A)

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 MSOS104A)

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 MSOS104A)

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 MSOS104A)

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 MSOS104A)

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 MSOS104A)

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 Teledyne LeCroy HDO6054B

29 command headers in the HDO6054B library have no match in the MSOS104A library. Below are 12 of them from the 6 largest subsystems; the full list is in the Teledyne LeCroy HDO6054B command reference.

BANDWIDTH_LIMIT (2 only on the HDO6054B)

CommandWhat it does
BANDWIDTH_LIMIT <Channel>,<Limit>Set Bandwidth Limit. Bandwidth-limit filter per channel: OFF (full bandwidth), 20MHZ or 200MHZ (manual PDF p.220), the HDO6054B's two limiters (HDO6000B datasheet).
BANDWIDTH_LIMIT?Read Bandwidth Limit. Return <channel>,<mode> for each channel (manual PDF p.220).

COMM_HEADER (2 only on the HDO6054B)

CommandWhat it does
COMM_HEADER <Mode>Set Comm Header. Query response format: SHORT (the default) starts with the short header, LONG with the long one, OFF drops headers and units (manual PDF p.248).
COMM_HEADER?Read Comm Header. Return SHORT, LONG or OFF (manual PDF p.248).

CURSOR_MEASURE (2 only on the HDO6054B)

CommandWhat it does
CURSOR_MEASURE <Mode>Set Cursor Measure. What to display: CUST (My Measure), HPAR or VPAR (standard horizontal or vertical parameters), HABS, HREL, VABS or VREL cursors, PASS or FAIL results, or OFF (manual PDF p.252).
CURSOR_MEASURE?Read Cursor Measure. Return the cursor or parameter display mode (manual PDF p.252).

SEQUENCE (2 only on the HDO6054B)

CommandWhat it does
SEQUENCE <Mode>,<Segments>,<Max_Size>Set Sequence. Sequence (segmented) acquisition; ON enables SMART memory with that number of segments and maximum segment size, adapted to the closest valid value (manual PDF p.229). Up to 30,000 segments at the standard 50 Mpts/ch (HDO6000B datasheet).
SEQUENCE?Read Sequence. Return <mode>,<number segments>,<max_size> (manual PDF p.229).

TIME_DIV (2 only on the HDO6054B)

CommandWhat it does
TIME_DIV <Time_Per_Div>Set Timebase. Timebase in seconds per division; an out-of-range value sets the VAB bit (bit 2) of the STB register (manual PDF p.231).
TIME_DIV?Read Timebase. Return the timebase in s/div (manual PDF p.231).

TRIG_MODE (2 only on the HDO6054B)

CommandWhat it does
TRIG_MODE <Mode>Set Trigger Mode. Trigger mode: AUTO, NORM (normal), SINGLE or STOP (manual PDF p.236).
TRIG_MODE?Read Trigger Mode. Return AUTO, NORM, SINGLE or STOP (manual PDF p.236).

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 :AUToscale (auto scale); the HDO6054B library writes it as AUTO_SETUP. 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 MSOS104A and CMR? on the HDO6054B. 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_MSOS104A_ADDRESS")  # Keysight MSOS104A
b = rm.open_resource("PASTE_HDO6054B_ADDRESS")  # Teledyne LeCroy HDO6054B
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Auto Scale
a.write(":AUToscale")
b.write("AUTO_SETUP")

# 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("CMR?"))  # Read Command Error

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight MSOS104A or Teledyne LeCroy HDO6054B and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight MSOS104A and the Teledyne LeCroy HDO6054B for remote control?

In TestFlow's library the MSOS104A has 159 SCPI commands and the HDO6054B has 78 SCPI commands. 12 command headers are common to both, 127 are only on the MSOS104A (mostly MEASure and CHANnel), and 29 are only on the HDO6054B (mostly BANDWIDTH_LIMIT and COMM_HEADER).

Can I use the same SCPI code for the Keysight MSOS104A and the Teledyne LeCroy HDO6054B?

Partly. 12 command headers are accepted by both, including :AUToscale and :STOP. 156 are not, for example :MEASure:SOURce on the MSOS104A and BANDWIDTH_LIMIT on the HDO6054B, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the MSOS104A or the HDO6054B?

The MSOS104A: 159 commands for the MSOS104A against 78 for the HDO6054B in TestFlow's library. Of those, 60 on the MSOS104A and 38 on the HDO6054B are queries that read a value or state, and the library splits them into 25 and 25 subsystems.

How do the MSOS104A and HDO6054B signal operation complete and report errors?

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