Oscilloscope · SCPI command comparison

Tektronix MSO64B vs Teledyne LeCroy HDO6054B: SCPI commands and remote control compared

In TestFlow's instrument library, the Tektronix MSO64B takes 268 SCPI commands, 147 of them queries, and the Teledyne LeCroy HDO6054B takes 78 SCPI commands, 38 of them queries. That is 190 more on the MSO64B. Counting distinct command headers (the command path without its arguments), 7 are accepted by both, 230 exist only on the MSO64B, and 34 only on the HDO6054B. 3% of the MSO64B's command headers also exist on the HDO6054B.

Both libraries have commands under TRIGger and CLEAR. Only the MSO64B has MEASUrement, MEASU, CH1, CH, AFG, and HORizontal and 18 more. Only the HDO6054B has COMM_HEADER, VBS, PARAMETER_CUSTOM, WAVEFORM_SETUP, TIME_DIV, and SEQUENCE and 15 more.

Both libraries synchronise with *OPC?. Neither library has an error-queue read such as SYSTem:ERRor?.

MSO64B commands
268
HDO6054B commands
78
Shared headers
7
Unique headers
264

Run this on your bench

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

Get started

MSO64B 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.

Tektronix MSO64BTeledyne LeCroy HDO6054B
Commands in TestFlow's library26878
Queries (read a value or state)14738
Settings and actions12140
Subsystems2525
Distinct command headers23741
Headers the other lacks23034
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueNot in libraryNot in library
Models on this command setMSO64BHDO6054B

Commands both accept

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

CommandWhat it does
CLEARHDO6054B: CLEAR_SWEEPSClear Measurements. Clears acquisitions, measurements, and waveforms.
*RSTReset Instrument. Resets the instrument to its factory default setup.
*STB?Read Status Byte. Returns the Status Byte Register contents using the MSS bit.
*OPC?Operation Complete Query. Returns 1 once all pending OPC operations have completed.
*IDN?Identify. Returns the instrument identification string.
*CLSClear Status. Clears the status byte and event queue.
*ESR?Standard Event Status Register. Returns and clears the standard event status register.

Only on the Tektronix MSO64B

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

Only on the Teledyne LeCroy HDO6054B

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

IEEE 488.2 common (*) (4 only on the HDO6054B)

CommandWhat it does
*OPT?Read Options. Return the installed software and hardware options beyond the standard configuration, as a series of fields (manual PDF p.313).
*TST?Self Test. Run the internal self-test of all channels, the timebase and the trigger circuits; 0 means no failure (manual PDF p.314).
*SAV <Setup>Save Setup. Store the current state in a non-volatile setup panel (manual PDF p.322).
*RCL <Setup>Recall Setup. Recall a non-volatile setup panel; 0 is the factory default panel setup (manual PDF p.319).

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

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 CLEAR (clear measurements); the HDO6054B library writes it as CLEAR_SWEEPS. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN? on the MSO64B 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_MSO64B_ADDRESS")  # Tektronix MSO64B
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: Clear Measurements
a.write("CLEAR")
b.write("CLEAR_SWEEPS")

# No shared reading with an example on both, so each uses its own command
print(a.query("MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?"))  # Get Measurement Value
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 Tektronix MSO64B or Teledyne LeCroy HDO6054B and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Tektronix MSO64B and the Teledyne LeCroy HDO6054B for remote control?

In TestFlow's library the MSO64B has 268 SCPI commands and the HDO6054B has 78 SCPI commands. 7 command headers are common to both, 230 are only on the MSO64B (mostly MEASUrement and TRIGger), and 34 are only on the HDO6054B (mostly IEEE 488.2 common (*) and BANDWIDTH_LIMIT).

Can I use the same SCPI code for the Tektronix MSO64B and the Teledyne LeCroy HDO6054B?

Partly. 7 command headers are accepted by both, including CLEAR. 264 are not, for example MEASUrement:ADDMEAS on the MSO64B and *OPT? on the HDO6054B, so a script that uses those needs a separate branch for each instrument.

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

The MSO64B: 268 commands for the MSO64B against 78 for the HDO6054B in TestFlow's library. Of those, 147 on the MSO64B 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 MSO64B and HDO6054B signal operation complete and report errors?

Both libraries synchronise with *OPC?. Neither library has an error-queue read such as 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.