In TestFlow's instrument library, the Rohde & Schwarz MXO54 takes 63 SCPI commands, 7 of them queries, and the Tektronix MDO32 takes 66 SCPI commands, 18 of them queries. That is 3 more on the MDO32. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 57 exist only on the MXO54, and 53 only on the MDO32. None of the MXO54'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, ACQuire, and CURSor. Only the MXO54 has MATH, CHANnel, TIMebase, MEASure, HISTory, and REFerence and 6 more. Only the MDO32 has RF, MEASUrement, SELect, HORIZONTAL, Hardcopy, and Set and 1 more.
Neither library has an operation-complete command such as *OPC?. Only the MXO54 library has an error-queue read (SYSTem:ERRor?); the MDO32 library has none.
TestFlow's library gives the MXO54-1000, MXO54-2000, and MXO54-500 the same command set as the MXO54, so the MXO54 column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Rohde & Schwarz MXO54 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.
| Rohde & Schwarz MXO54 | Tektronix MDO32 | |
|---|---|---|
| Commands in TestFlow's library | 63 | 66 |
| Queries (read a value or state) | 7 | 18 |
| Settings and actions | 56 | 48 |
| Subsystems | 19 | 14 |
| Distinct command headers | 57 | 53 |
| Headers the other lacks | 57 | 53 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | MXO54, MXO54-1000, MXO54-2000, MXO54-500 | MDO32 |
None. No command header in TestFlow's MXO54 library matches one in its MDO32 library, so every command needs its own version for each instrument.
57 command headers in the MXO54 library have no match in the MDO32 library. Below are 22 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz MXO54 command reference.
| Command | What it does |
|---|---|
| :MATH<n>:STATe <State> | Math Enable. Enables or disables math waveform |
| :MATH<n>:DEFine <Expression> | Math Expression. Defines math expression (e.g. CH1-CH2) |
| :MATH<Math_index>:TYPE FFT | FFT Set Type. Configures math waveform as FFT |
| :MATH<Math_index>:FFT:WINDow <Window> | FFT Window. Sets FFT windowing function |
| Command | What it does |
|---|---|
| :TRIGger:MODE <Mode> | Trigger Mode. Sets trigger arming behavior |
| :TRIGger:TYPE <Type> | Trigger Type. Selects trigger type. |
| :TRIGger:EVENt1:SOURce C<Source_channel> | Trigger Source. Sets trigger source. |
| :TRIGger:LEVel <Volts> | Trigger Level. Sets trigger level. |
| Command | What it does |
|---|---|
| :ACQuire:RUN | Run. Starts continuous acquisition. |
| :ACQuire:STOP | Stop. Stops acquisition. |
| :ACQuire:SINGle | Single Seq. Arms a single acquisition. |
| :ACQuire:MODE <Mode> | Acquisition Mode. Sets acquisition mode (real-time or segmented). |
| Command | What it does |
|---|---|
| :CHANnel<n>:STATe <OnOff> | Channel Enable. Enables or disables a channel. |
| :CHANnel<n>:SCALe <VoltsDiv> | Channel Scale. Sets vertical scale (V/div). |
| :CHANnel<n>:OFFSet <Volts> | Channel Offset. Sets vertical offset. |
| :CHANnel<n>:BANDwidth <State> | Channel Bandwidth. Sets channel bandwidth limit. |
| Command | What it does |
|---|---|
| :CURSor:STATe <State> | Cursor Enable. Enables manual cursors |
| :CURSor:MODE <Mode> | Cursor Mode. Selects cursor measurement domain |
| :CURSor:X<n>? | Spectrum Cursor X. Reads cursor frequency position |
| :CURSor:Y<n>? | Spectrum Cursor Y. Reads cursor magnitude (FFT amplitude) |
| Command | What it does |
|---|---|
| :DISPlay:GRID <State> | Display Grid. Enables or disables display grid |
| :DISPlay:PERSistence <Mode> | Display Persistence. Controls waveform persistence |
53 command headers in the MDO32 library have no match in the MXO54 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: :CURSor:MODE FREQuency on the MXO54 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: :SYSTem:ERRor? on the MXO54 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_MXO54_ADDRESS") # Rohde & Schwarz MXO54
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(":CURSor:MODE FREQuency") # Spectrum Cursor Mode
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(":SYSTem:ERRor?")) # Error Query
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 Rohde & Schwarz MXO54 or Tektronix MDO32 and writes the report from the measured results.
In TestFlow's library the MXO54 has 63 SCPI commands and the MDO32 has 66 SCPI commands. 0 command headers are common to both, 57 are only on the MXO54 (mostly MATH and TRIGger), and 53 are only on the MDO32 (mostly RF and CURSor).
Not without changes. None of the 57 command headers in the MXO54 library matches one of the 53 in the MDO32 library: the MXO54 uses commands such as :MATH<n>:STATe 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 MDO32: 63 commands for the MXO54 against 66 for the MDO32 in TestFlow's library. Of those, 7 on the MXO54 and 18 on the MDO32 are queries that read a value or state, and the library splits them into 19 and 14 subsystems.
Neither library has an operation-complete command such as *OPC?. Only the MXO54 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.