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.
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.
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 MSOS104A | Teledyne LeCroy HDO6054B | |
|---|---|---|
| Commands in TestFlow's library | 159 | 78 |
| Queries (read a value or state) | 60 | 38 |
| Settings and actions | 99 | 40 |
| Subsystems | 25 | 25 |
| Distinct command headers | 139 | 41 |
| Headers the other lacks | 127 | 29 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | MSOS104A, MSOS204A, MSOS254A, MSOS404A, MSOS604A, MSOS804A | HDO6054B |
12 command headers are in both libraries. Where the HDO6054B library writes the command differently, its form is shown under the MSOS104A's.
| Command | What it does |
|---|---|
| :AUToscaleHDO6054B: AUTO_SETUP | Auto Scale. Evaluates all input signals and sets the correct vertical, horizontal and trigger settings to display the signals. |
| :STOP | Stop. 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). |
| *RST | Reset. Restores the oscilloscope to its factory default state. |
| *CLS | Clear 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. |
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.
| Command | What 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. |
| Command | What it does |
|---|---|
| :CHANnel<Channel>:DISPlay ON | Channel 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. |
| Command | What it does |
|---|---|
| :ACQuire:AVERage ON | Averaging 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :FUNCtion<Math>:DISPlay ON | Math 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. |
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.
| 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). |
| Command | What 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). |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.