In TestFlow's instrument library, the Rigol MSO5074 takes 161 SCPI commands, 49 of them queries, and the Tektronix MSO22 takes 71 SCPI commands, 7 of them queries. That is 90 more on the MSO5074. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 126 exist only on the MSO5074, and 50 only on the MSO22. None of the MSO5074's command headers appears in the MSO22 library, so a script written for one needs every command rewritten for the other.
Both libraries have commands under TRIGger, CURSor, and ACQuire. Only the MSO5074 has MEASure, CHANnel, WAVeform, TIMebase, MATH, and SOURce and 11 more. Only the MSO22 has AFG, DISplay, DCH<Digital, DCH1_D, MEASUrement, and SELect and 4 more.
Only the MSO5074 library has an operation-complete command (*OPC?); the MSO22 library has none. Only the MSO5074 library has an error-queue read (SYSTem:ERRor?); the MSO22 library has none.
TestFlow's library gives the MSO5104 the same command set as the MSO5074, so the MSO5074 column applies to it too. 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 Rigol MSO5074 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.
| Rigol MSO5074 | Tektronix MSO22 | |
|---|---|---|
| Commands in TestFlow's library | 161 | 71 |
| Queries (read a value or state) | 49 | 7 |
| Settings and actions | 112 | 64 |
| Subsystems | 23 | 16 |
| Distinct command headers | 126 | 50 |
| Headers the other lacks | 126 | 50 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | MSO5074, MSO5104 | MSO22, MSO24 |
None. No command header in TestFlow's MSO5074 library matches one in its MSO22 library, so every command needs its own version for each instrument.
126 command headers in the MSO5074 library have no match in the MSO22 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rigol MSO5074 command reference.
| Command | What it does |
|---|---|
| :TRIGger:MODE <Type> | Trigger Type. Selects the trigger type. |
| :TRIGger:MODE? | Get Trigger Type. Queries the trigger type currently selected. |
| :TRIGger:SWEep <Sweep> | Trigger Sweep. Sets the trigger mode to auto, normal or single. |
| :TRIGger:COUPling <Coupling> | Trigger Coupling. Sets the trigger coupling type (edge trigger with an analog source only). |
| 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 the on/off status of the specified analog channel (returns 1 or 0). |
| :CHANnel<Channel>:COUPling <Coupling> | Channel Coupling. Sets the input coupling mode of the specified analog channel. |
| :CHANnel<Channel>:COUPling? | Get Channel Coupling. Queries the input coupling mode of the specified analog channel. |
| Command | What it does |
|---|---|
| :MEASure:SOURce <Source> | Measure Source. Sets the source of the automatic measurement parameters. |
| :MEASure:ITEM <Item>,<Source> | Measure Item. Adds an automatic measurement of the selected parameter on the selected source. |
| :MEASure:ITEM? <Item>,<Source> | Get Measure Item. Queries the measurement result of the selected parameter on the selected source. |
| :MEASure:CLEar ALL | Clear Measurements. Clears all the automatic measurement items currently displayed. |
| Command | What it does |
|---|---|
| :WAVeform:SOURce <Source> | Waveform Source. Sets the channel whose waveform data will be read. |
| :WAVeform:MODE <Mode> | Waveform Mode. Sets the reading mode of the waveform data (screen data or internal memory data). |
| :WAVeform:FORMat <Format> | Waveform Format. Sets the return format of the waveform data. |
| :WAVeform:STARt <Point> | Waveform Start. Sets the start point of the waveform data reading. |
| Command | What it does |
|---|---|
| :TIMebase:MAIN:SCALe <Scale> | Timebase Scale. Sets the main timebase scale in s/div. |
| :TIMebase:MAIN:SCALe? | Get Timebase Scale. Queries the main timebase scale in s/div. |
| :TIMebase:MAIN:OFFSet <Offset> | Timebase Offset. Sets the main timebase (horizontal) offset in seconds relative to the trigger point. |
| :TIMebase:MAIN:OFFSet? | Get Timebase Offset. Queries the main timebase (horizontal) offset in seconds. |
| Command | What it does |
|---|---|
| :CURSor:MODE <Mode> | Cursor Mode. Enables cursor measurement in the selected mode. |
| :CURSor:MANual:SOURce <Source> | Cursor Source. Sets the channel the manual cursors measure. |
| :CURSor:MANual:TYPE <Type> | Cursor Type. Sets the manual cursor type (X for time, Y for amplitude). |
| :CURSor:MANual:CAX <Position> | Cursor AX. Sets the horizontal position of cursor A in screen pixels. |
50 command headers in the MSO22 library have no match in the MSO5074 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. |
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: :AUToscale on the MSO5074 and ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto on the MSO22. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: :MEASure:ITEM? VPP,CHANnel1 on the MSO5074 and Set? on the MSO22. 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_MSO5074_ADDRESS") # Rigol MSO5074
b = rm.open_resource("PASTE_MSO22_ADDRESS") # Tektronix MSO22
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(":AUToscale") # Auto Scale
b.write("ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto") # RUN
# No shared reading with an example on both, so each uses its own command
print(a.query(":MEASure:ITEM? VPP,CHANnel1")) # Measure Vpp
print(b.query("Set?")) # Get settings
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Rigol MSO5074 or Tektronix MSO22 and writes the report from the measured results.
In TestFlow's library the MSO5074 has 161 SCPI commands and the MSO22 has 71 SCPI commands. 0 command headers are common to both, 126 are only on the MSO5074 (mostly TRIGger and CHANnel), and 50 are only on the MSO22 (mostly AFG and TRIGger).
Not without changes. None of the 126 command headers in the MSO5074 library matches one of the 50 in the MSO22 library: the MSO5074 uses commands such as :TRIGger:MODE and the MSO22 uses commands such as AFG:AMPLitude. PyVISA opens both the same way, but each command needs its own version for each instrument.
The MSO5074: 161 commands for the MSO5074 against 71 for the MSO22 in TestFlow's library. Of those, 49 on the MSO5074 and 7 on the MSO22 are queries that read a value or state, and the library splits them into 23 and 16 subsystems.
Only the MSO5074 library has an operation-complete command (*OPC?); the MSO22 library has none. Only the MSO5074 library has an error-queue read (SYSTem:ERRor?); the MSO22 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.