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?.
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.
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 MSO54B | Teledyne LeCroy HDO6054B | |
|---|---|---|
| Commands in TestFlow's library | 70 | 78 |
| Queries (read a value or state) | 7 | 38 |
| Settings and actions | 63 | 40 |
| Subsystems | 17 | 25 |
| Distinct command headers | 49 | 41 |
| Headers the other lacks | 49 | 41 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | Not in library | Not in library |
| Models on this command set | MSO54B | HDO6054B |
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.
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.
| Command | What it does |
|---|---|
| AFG:AMPLitude <Voltage> | AFG Amplitude. |
| AFG:ARBitrary:SOUrce <Source_path> | AFG source. |
| AFG:BURSt:CCOUnt <Cycles_count> | AFG cycles count. |
| AFG:BURSt:TRIGger | AFG burst. |
| Command | What 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. |
| Command | What it does |
|---|---|
| CURSor:SOUrce <Channel> | Cursor channel. |
| CURSor:FUNCtion WAVEFORM | Cursers ON. |
| CURSor:DDT? | Cursers dV/dT. |
| CURSor:HBArs:DELTa? | Cursor dV. |
| Command | What 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 ON | Bits ON. |
| DISplay:GLObal:CH<Digital Channel>:STATE <State> | D channel display. |
| Command | What it does |
|---|---|
| MEASUrement:IMMed:SOUrce <Channel> ; ... | Measurement. |
| MEASUrement:IMMed:TYPe <Measurement> | Measurement Type. |
| MEASUrement:IMMed:VALue? | Measure. |
| MEASUrement:IMMed:DELay:EDGE1 <Edge> ; ... | Measure delay. |
| Command | What 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. |
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.
| Command | What 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). |
| *RST | Reset. Device reset: every trace to the GND line, the factory default panel setup recalled and the trigger in STOP mode (manual PDF p.321). |
| *CLS | Clear 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). |
| Command | What 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). |
| Command | What 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). |
| Command | What 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). |
| Command | What 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). |
| Command | What 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). |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.