Oscilloscope · SCPI command comparison

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

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

Both libraries have commands under TRIGger and CURSor. Only the MSO54B has AFG, DISplay, MEASUrement, CH<Digital, ACQuire, and SEARCH and 5 more. Only the HDO6054B has COMM_HEADER, VBS, PARAMETER_CUSTOM, WAVEFORM_SETUP, TIME_DIV, and SEQUENCE and 15 more.

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

MSO54B commands
70
HDO6054B commands
78
Shared headers
0
Unique headers
90

Run this on your bench

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

Get started

MSO54B 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 MSO54BTeledyne LeCroy HDO6054B
Commands in TestFlow's library7078
Queries (read a value or state)738
Settings and actions6340
Subsystems1725
Distinct command headers4941
Headers the other lacks4941
Command languageSCPISCPI
Operation completeNot in library*OPC?
Error queueNot in libraryNot in library
Models on this command setMSO54BHDO6054B

Commands both accept

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

Only on the Tektronix MSO54B

49 command headers in the MSO54B 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 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.

Only on the Teledyne LeCroy HDO6054B

41 command headers in the HDO6054B library have no match in the MSO54B 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 (*) (10 only on the HDO6054B)

CommandWhat it does
*IDN?Identify. Return LECROY,<model>,<serial number>,<firmware level>, preceded by the *IDN header unless COMM_HEADER is OFF (manual PDF p.312).
*RSTReset. Device reset: every trace to the GND line, the factory default panel setup recalled and the trigger in STOP mode (manual PDF p.321).
*CLSClear Status. Clear all status data registers (manual PDF p.325).
*OPT?Read Options. Return the installed software and hardware options beyond the standard configuration, as a series of fields (manual PDF p.313).

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, the two libraries have no common command with a worked example on both, so each instrument uses its own: ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto on the MSO54B and VBS 'app.SaveRecall.Setup.DoRecallDefaultPanelWithTriggerModeAuto' on the HDO6054B. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: Set? on the MSO54B 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_MSO54B_ADDRESS")  # Tektronix MSO54B
b = rm.open_resource("PASTE_HDO6054B_ADDRESS")  # Teledyne LeCroy HDO6054B
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("ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto")  # RUN
b.write("VBS 'app.SaveRecall.Setup.DoRecallDefaultPanelWithTriggerModeAuto'")  # Recall Default Setup

# No shared reading with an example on both, so each uses its own command
print(a.query("Set?"))  # Get settings
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 MSO54B or Teledyne LeCroy HDO6054B and writes the report from the measured results.

Get started

Frequently asked questions

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

In TestFlow's library the MSO54B has 70 SCPI commands and the HDO6054B has 78 SCPI commands. 0 command headers are common to both, 49 are only on the MSO54B (mostly AFG and TRIGger), and 41 are only on the HDO6054B (mostly IEEE 488.2 common (*) and BANDWIDTH_LIMIT).

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

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

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

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

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

Only the HDO6054B library has an operation-complete command (*OPC?); the MSO54B library has none. 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.