In TestFlow's instrument library, the Rigol MSO5074 takes 161 SCPI commands, 49 of them queries, and the Tektronix MDO32 takes 66 SCPI commands, 18 of them queries. That is 95 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 53 only on the MDO32. None of the MSO5074's command headers appears in the MDO32 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 MDO32 has RF, MEASUrement, SELect, HORIZONTAL, Hardcopy, and Set and 1 more.
Only the MSO5074 library has an operation-complete command (*OPC?); the MDO32 library has none. Only the MSO5074 library has an error-queue read (SYSTem:ERRor?); the MDO32 library has none.
TestFlow's library gives the MSO5104 the same command set as the MSO5074, so the MSO5074 column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Rigol MSO5074 or Tektronix MDO32 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 MDO32 | |
|---|---|---|
| Commands in TestFlow's library | 161 | 66 |
| Queries (read a value or state) | 49 | 18 |
| Settings and actions | 112 | 48 |
| Subsystems | 23 | 14 |
| Distinct command headers | 126 | 53 |
| Headers the other lacks | 126 | 53 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | MSO5074, MSO5104 | MDO32 |
None. No command header in TestFlow's MSO5074 library matches one in its MDO32 library, so every command needs its own version for each instrument.
126 command headers in the MSO5074 library have no match in the MDO32 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. |
53 command headers in the MDO32 library have no match in the MSO5074 library. Below are 20 of them from the 6 largest subsystems; the full list is in the Tektronix MDO32 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:SOUrce <Channel> | Cursor channel. Assigns cursor measurements to operate on a specific channel waveform. |
| CURSor:MODe <Mode> | Cursor mode. Sets whether cursors move independently or as a coupled pair (dependent tracking). |
| CURSor:FUNCtion WAVEFORM | Cursers ON. Enables waveform cursors mode so delta time/voltage can be read using cursor functions. |
| CURSor:DDT? | Cursers dV/dT. Returns the computed slope (ΔV/ΔT) based on current cursor positions. |
| Command | What it does |
|---|---|
| MEASUrement:IMMed:SOUrce <Channel> ; ... | Measurement. Configures the immediate measurement (source + type) and then queries the current numeric result. |
| MEASUrement:IMMed:TYPe <Measurement> | Measurement Type. Selects what measurement algorithm to compute for the “immediate measurement” engine. |
| MEASUrement:IMMed:VALue? | Measure. Reads the numeric value of the currently configured immediate measurement (source + type). |
| MEASUrement:IMMed:DELay:EDGE<Edge> ; ... | Measure delay. Configures a delay measurement between Source1 and Source2 using specified edge direction (rise/fall). |
| Command | What it does |
|---|---|
| TRIGger:A:EDGE:SLOpe <Slope> | Trigget slope. Chooses the edge direction that triggers (rising, falling, or either). |
| TRIGger:A:EDGE:COUPling <Coupling> | Trigger coupling. Sets trigger coupling/filtering to reduce false triggers (AC coupling, HF/LF reject, noise reject). |
| TRIGger:A:LEVel:CH<Channel> <Volt> | Trigger level. Sets the trigger threshold voltage for the chosen trigger channel. |
| TRIGGER:A:EDGE:SOURCE <Channel> | Trigger channel. Selects which analog channel is used as the edge trigger source. |
| Command | What it does |
|---|---|
| HORIZONTAL:POSITION <Position> | Time position. Shifts the waveform horizontally relative to the trigger position (pre/post-trigger view). |
| HORIZONTAL:SCALE <Scale> | Time scale. Sets the timebase scale (Seconds/div), zooming in/out in time. |
| Command | What it does |
|---|---|
| SELect:<Channel> ON | Show channel. Turns ON display of the selected channel waveform. |
| SELect:RF_<Mode> <ON/OFF> | RF Display. Enables/disables RF display trace for a specific detector/trace mode (avg/maxhold/minhold/normal). |
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 MDO32. 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 RF:MEASUre:ACPR:LA1DB? on the MDO32. 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_MDO32_ADDRESS") # Tektronix MDO32
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("RF:MEASUre:ACPR:LA1DB?")) # RF Cent2 low Side1
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Rigol MSO5074 or Tektronix MDO32 and writes the report from the measured results.
In TestFlow's library the MSO5074 has 161 SCPI commands and the MDO32 has 66 SCPI commands. 0 command headers are common to both, 126 are only on the MSO5074 (mostly TRIGger and CHANnel), and 53 are only on the MDO32 (mostly RF and CURSor).
Not without changes. None of the 126 command headers in the MSO5074 library matches one of the 53 in the MDO32 library: the MSO5074 uses commands such as :TRIGger:MODE and the MDO32 uses commands such as RF:CLIPPing?. PyVISA opens both the same way, but each command needs its own version for each instrument.
The MSO5074: 161 commands for the MSO5074 against 66 for the MDO32 in TestFlow's library. Of those, 49 on the MSO5074 and 18 on the MDO32 are queries that read a value or state, and the library splits them into 23 and 14 subsystems.
Only the MSO5074 library has an operation-complete command (*OPC?); the MDO32 library has none. Only the MSO5074 library has an error-queue read (SYSTem:ERRor?); the MDO32 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.