In TestFlow's instrument library, the Tektronix MSO22 takes 71 SCPI commands, 7 of them queries, and the Teledyne LeCroy HDO6054B takes 78 SCPI commands, 38 of them queries. That is 7 more on the HDO6054B. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 50 exist only on the MSO22, and 41 only on the HDO6054B. None of the MSO22'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 MSO22 has AFG, DISplay, DCH<Digital, DCH1_D, MEASUrement, and ACQuire 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 MSO22 library has none. Neither library has an error-queue read such as SYSTem:ERRor?.
TestFlow's library gives the MSO24 the same command set as the MSO22, so the MSO22 column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Tektronix MSO22 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 MSO22 | Teledyne LeCroy HDO6054B | |
|---|---|---|
| Commands in TestFlow's library | 71 | 78 |
| Queries (read a value or state) | 7 | 38 |
| Settings and actions | 64 | 40 |
| Subsystems | 16 | 25 |
| Distinct command headers | 50 | 41 |
| Headers the other lacks | 50 | 41 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | Not in library | Not in library |
| Models on this command set | MSO22, MSO24 | HDO6054B |
None. No command header in TestFlow's MSO22 library matches one in its HDO6054B library, so every command needs its own version for each instrument.
50 command headers in the MSO22 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 MSO22 command reference.
| Command | What it does |
|---|---|
| AFG:AMPLitude <Voltage> | AFG Amplitude. Sets output amplitude of the arbitrary function generator. |
| AFG:ARBitrary:SOUrce <Source_path> | AFG source. Loads an arbitrary waveform file. |
| AFG:BURSt:CCOUnt <Cycles_count> | AFG cycles count. Defines number of cycles for burst mode. |
| AFG:BURSt:TRIGger | AFG burst. Triggers a burst waveform output. |
| Command | What it does |
|---|---|
| TRIGger:A:EDGE:SLOpe <Slope> | Trigget slope. Defines whether triggering occurs on rising, falling, or either edge. |
| TRIGger:A:EDGE:COUPling <Coupling> | Trigger coupling. Filters the trigger signal to improve trigger stability. |
| TRIGger:A:LEVel:<Channel> <Volt> | Trigger level. Sets the voltage threshold at which the trigger fires. |
| TRIGger:A:TYPe LOGIc ; ... | D trigger condition. Defines the logical relationship between trigger inputs. |
| Command | What it does |
|---|---|
| CURSor:SOUrce <Channel> | Cursor channel. Assigns cursors to operate on a specific channel waveform. |
| CURSor:FUNCtion WAVEFORM | Cursers ON. Enables waveform cursors for manual measurement. |
| CURSor:DDT? | Cursers dV/dT. Returns slope (dV/dT) between cursor points. |
| CURSor:HBArs:DELTa? | Cursor dV. Returns voltage difference between horizontal cursors. |
| Command | What it does |
|---|---|
| DISplay:WAVEView1:CURSor:CURSOR1:MODe <Mode> | Cursor mode. Sets whether cursors move independently or track each other. |
| DISplay:WAVEView1:CURSor:CURSOR1:VBArs:DELTa? | Cursor dT. Returns time difference between vertical cursors. |
| DISplay:GLObal:DCH<Digital Channel>:STATE <State> | D channel display. Enables or disables the entire digital channel group. |
| DISplay:WAVEView<WAVEView>:DCH<Digital Channel>_D<Bit>:STATE ON | WaveView display. Shows a digital bit in a specific WaveView pane. |
| Command | What it does |
|---|---|
| MEASUrement:IMMed:SOUrce <Channel> ; ... | Measurement. Configures a measurement source and type, then queries its numeric result. |
| MEASUrement:IMMed:TYPe <Measurement> | Measurement Type. Selects the type of measurement to perform (frequency, RMS, rise time, etc.). |
| MEASUrement:IMMed:VALue? | Measure. Reads the numeric result of the currently configured measurement. |
| MEASUrement:IMMed:DELay:EDGE1 <Edge> ; ... | Measure delay. Measures propagation delay between two signal edges. |
| Command | What it does |
|---|---|
| SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:LOGICPattern:DCH1_D<Bit> <State> | Search pattern. Searches captured data for a specific digital pattern. |
| SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:WHEn <Condition> | Search condition. Defines how the pattern comparison is evaluated. |
| SEARCH:SEARCH<Search>:TRIGger:A:PULSEWidth:HIGHLimit <Width> | Search puls width. Searches for pulses based on width criteria. |
| SEARCH:SEARCH<Search>:TRIGger:A:TIMEOut:TIMe <Time> | Search TIMEOUT. Defines timeout behavior for search operations. |
41 command headers in the HDO6054B library have no match in the MSO22 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 MSO22 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 MSO22 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_MSO22_ADDRESS") # Tektronix MSO22
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 MSO22 or Teledyne LeCroy HDO6054B and writes the report from the measured results.
In TestFlow's library the MSO22 has 71 SCPI commands and the HDO6054B has 78 SCPI commands. 0 command headers are common to both, 50 are only on the MSO22 (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 50 command headers in the MSO22 library matches one of the 41 in the HDO6054B library: the MSO22 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: 71 commands for the MSO22 against 78 for the HDO6054B in TestFlow's library. Of those, 7 on the MSO22 and 38 on the HDO6054B are queries that read a value or state, and the library splits them into 16 and 25 subsystems.
Only the HDO6054B library has an operation-complete command (*OPC?); the MSO22 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.