In TestFlow's instrument library, the Tektronix MDO34 takes 66 SCPI commands, 19 of them queries, and the Tektronix MSO22 takes 71 SCPI commands, 7 of them queries. That is 5 more on the MSO22. Counting distinct command headers (the command path without its arguments), 18 are accepted by both, 35 exist only on the MDO34, and 32 only on the MSO22. 34% of the MDO34's command headers also exist on the MSO22.
Both libraries have commands under CURSor, MEASUrement, ACQuire, TRIGger, SELect, HORIZONTAL, and Set. Only the MDO34 has RF, Hardcopy, and ROSc. Only the MSO22 has AFG, DISplay, DCH<Digital, DCH1_D, SEARCH, and SAVe.
Neither library has an operation-complete command such as *OPC?. 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 MDO34 or Tektronix MSO22 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 MDO34 | Tektronix MSO22 | |
|---|---|---|
| Commands in TestFlow's library | 66 | 71 |
| Queries (read a value or state) | 19 | 7 |
| Settings and actions | 47 | 64 |
| Subsystems | 14 | 16 |
| Distinct command headers | 53 | 50 |
| Headers the other lacks | 35 | 32 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | Not in library |
| Error queue | Not in library | Not in library |
| Models on this command set | MDO34 | MSO22, MSO24 |
18 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What it does |
|---|---|
| CURSor:SOUrce <Channel> | Cursor channel. Assigns cursor measurements to operate on a specific channel waveform. |
| MEASUrement:IMMed:SOUrce <Channel> ; ... | Measurement. Configures the immediate measurement (source + type) and then queries the current numeric result. |
| ACQuire:STOPAfter SEQuence ; ... | Single seq. Arms the scope to acquire one sequence and then stop automatically (single-shot capture). |
| TRIGger:A:EDGE:SLOpe <Slope> | Trigget slope. Chooses the edge direction that triggers (rising, falling, or either). |
| SELect:<Channel> ON | Show channel. Turns ON display of the selected channel waveform. |
| HORIZONTAL:POSITION <Position> | Time position. Shifts the waveform horizontally relative to the trigger position (pre/post-trigger view). |
| Set? | Get settings. Queries the instrument for its current setup / configuration string (used to restore or log state). |
| CURSor:FUNCtion WAVEFORM | Cursers ON. Enables waveform cursors mode so delta time/voltage can be read using cursor functions. |
| MEASUrement:IMMed:TYPe <Measurement> | Measurement Type. Selects what measurement algorithm to compute for the “immediate measurement” engine. |
| TRIGger:A:EDGE:COUPling <Coupling> | Trigger coupling. Sets trigger coupling/filtering to reduce false triggers (AC coupling, HF/LF reject, noise reject). |
| HORIZONTAL:SCALE <Scale> | Time scale. Sets the timebase scale (Seconds/div), zooming in/out in time. |
| CURSor:DDT? | Cursers dV/dT. Returns the computed slope (ΔV/ΔT) based on current cursor positions. |
35 command headers in the MDO34 library have no match in the MSO22 library. Below are 9 of them from the 5 largest subsystems; the full list is in the Tektronix MDO34 command reference.
| Command | What it does |
|---|---|
| RF:CLIPPing? | RF:CLIPPing. Queries whether the RF input/measurement is clipping/overloading (signal level too high for valid measurement). |
| RF:DETECTionmethod:MODe <AUTO,MANual> | RF detect mode. Sets RF detector selection to automatic or manual (who chooses detector behavior: scope or user). |
| RF:DETECTionmethod:RF_<> <> | RF Timeout. Selects RF detection/trace behavior (e.g., normal/average/max hold/min hold) and detector type (sample/average/peak). |
| RF:FREQuency <Frequency_center> | RF freq center. Sets the RF analysis center frequency. |
| Command | What it does |
|---|---|
| CURSor:MODe <Mode> | Cursor mode. Sets whether cursors move independently or as a coupled pair (dependent tracking). |
| CURSor:VBArs:DELTa? | Cursor dT. Returns time delta (ΔT) between vertical bar cursors (timing cursors). |
| Command | What it does |
|---|---|
| Hardcopy:Layout Landscape ; ... | Capture. Takes a PNG screenshot, saves it temporarily, waits for file creation, reads the PNG back to the controller, then deletes the temp file. |
| Command | What it does |
|---|---|
| ROSc:SOUrce <Source> | Oscilator source. Selects reference oscillator source: internal timebase or external reference input for better frequency accuracy/locking. |
| Command | What it does |
|---|---|
| SELect:RF_<Mode> <ON/OFF> | RF Display. Enables/disables RF display trace for a specific detector/trace mode (avg/maxhold/minhold/normal). |
32 command headers in the MSO22 library have no match in the MDO34 library. Below are 18 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 |
|---|---|
| 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 |
|---|---|
| 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. |
| Command | What it does |
|---|---|
| TRIGger:A:TYPe LOGIc ; ... | D trigger condition. Defines the logical relationship between trigger inputs. |
| TRIGger:A:LOGIc:POLarity <Polarity> | D trigger polarity. Sets active logic level for digital trigger. |
| TRIGger:A:MODe <Mode> | D trigger mode. Selects trigger behavior when no valid event occurs. |
| TRIGger:A:LOGICPattern:DCH<Digital Channel>_D<Bit> <State> | D trigger pattern. Defines a bit-level pattern required for triggering. |
| Command | What it does |
|---|---|
| DCH1_D<Bit>:LABel:FONT:<Font> <State> | Digital label font. Sets digital label font style (bold/italic). |
| Command | What it does |
|---|---|
| DCH<Digital Channel>_D<Bit>:THReshold <Threshold> | Digital Threshold. Sets the logic threshold voltage for a digital input bit. |
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 ACQuire:STOPAfter (single seq), and the same line runs on each. For the reading, both libraries hold CURSor:DDT? (cursers dv/dt), and the same line runs on each. 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_MDO34_ADDRESS") # Tektronix MDO34
b = rm.open_resource("PASTE_MSO22_ADDRESS") # Tektronix MSO22
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Single seq
a.write("ACQuire:STOPAfter SEQuence ;STATE RUN")
b.write("ACQuire:STOPAfter SEQuence ;STATE RUN")
# The same reading on both: Cursers dV/dT
print(a.query("CURSor:DDT?"))
print(b.query("CURSor:DDT?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Tektronix MDO34 or Tektronix MSO22 and writes the report from the measured results.
In TestFlow's library the MDO34 has 66 SCPI commands and the MSO22 has 71 SCPI commands. 18 command headers are common to both, 35 are only on the MDO34 (mostly RF and CURSor), and 32 are only on the MSO22 (mostly AFG and DISplay).
Partly. 18 command headers are accepted by both, including CURSor:SOUrce, MEASUrement:IMMed:SOUrce, and ACQuire:STOPAfter. 67 are not, for example RF:CLIPPing? on the MDO34 and AFG:AMPLitude on the MSO22, so a script that uses those needs a separate branch for each instrument.
The MSO22: 66 commands for the MDO34 against 71 for the MSO22 in TestFlow's library. Of those, 19 on the MDO34 and 7 on the MSO22 are queries that read a value or state, and the library splits them into 14 and 16 subsystems.
Neither library has an operation-complete command such as *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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.