In TestFlow's instrument library, the Rohde & Schwarz MXO54 takes 63 SCPI commands, 7 of them queries, and the Tektronix MSO54B takes 70 SCPI commands, 7 of them queries. That is 7 more on the MSO54B. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 57 exist only on the MXO54, and 49 only on the MSO54B. None of the MXO54's command headers appears in the MSO54B 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 MSO54B has AFG, DISplay, MEASUrement, CH<Digital, SEARCH, and HORIZONTAL and 4 more.
Neither library has an operation-complete command such as *OPC?. Only the MXO54 library has an error-queue read (SYSTem:ERRor?); the MSO54B 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 MSO54B 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 MSO54B | |
|---|---|---|
| Commands in TestFlow's library | 63 | 70 |
| Queries (read a value or state) | 7 | 7 |
| Settings and actions | 56 | 63 |
| Subsystems | 19 | 17 |
| Distinct command headers | 57 | 49 |
| Headers the other lacks | 57 | 49 |
| 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 | MSO54B |
None. No command header in TestFlow's MXO54 library matches one in its MSO54B library, so every command needs its own version for each instrument.
57 command headers in the MXO54 library have no match in the MSO54B 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 |
49 command headers in the MSO54B library have no match in the MXO54 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Tektronix MSO54B command reference.
| Command | What it does |
|---|---|
| AFG:AMPLitude <Voltage> | AFG Amplitude. |
| AFG:ARBitrary:SOUrce <Source_path> | AFG source. |
| AFG:BURSt:CCOUnt <Cycles_count> | AFG cycles count. |
| AFG:BURSt:TRIGger | AFG burst. |
| Command | What it does |
|---|---|
| TRIGger:A:EDGE:SLOpe <Slope> | Trigget slope. |
| TRIGger:A:EDGE:COUPling <Coupling> | Trigger coupling. |
| TRIGger:A:LEVel:<Channel> <Volt> | Trigger level. |
| TRIGger:A:TYPe LOGIc ; ... | D trigger condition. |
| Command | What it does |
|---|---|
| CURSor:SOUrce <Channel> | Cursor channel. |
| CURSor:FUNCtion WAVEFORM | Cursers ON. |
| CURSor:DDT? | Cursers dV/dT. |
| CURSor:HBArs:DELTa? | Cursor dV. |
| Command | What it does |
|---|---|
| DISplay:WAVEView1:CURSor:CURSOR1:MODe <Mode> | Cursor mode. |
| DISplay:WAVEView1:CURSor:CURSOR1:VBArs:DELTa? | Cursor dT. |
| DISplay:WAVEView1:CH<Digital Channel>_DALL:STATE ON | Bits ON. |
| DISplay:GLObal:CH<Digital Channel>:STATE <State> | D channel display. |
| Command | What it does |
|---|---|
| MEASUrement:IMMed:SOUrce <Channel> ; ... | Measurement. |
| MEASUrement:IMMed:TYPe <Measurement> | Measurement Type. |
| MEASUrement:IMMed:VALue? | Measure. |
| MEASUrement:IMMed:DELay:EDGE1 <Edge> ; ... | Measure delay. |
| Command | What it does |
|---|---|
| SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:LOGICPattern:CH<Digital Bit> <State> | Search pattern. |
| SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:WHEn <Condition> | Search condition. |
| SEARCH:SEARCH<Search>:TRIGger:A:PULSEWidth:HIGHLimit <Width> | Search puls width. |
| SEARCH:SEARCH<Search>:TRIGger:A:TIMEOut:TIMe <Time> | Search TIMEOUT. |
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 MSO54B. 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 Set? on the MSO54B. 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_MSO54B_ADDRESS") # Tektronix MSO54B
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("Set?")) # Get settings
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Rohde & Schwarz MXO54 or Tektronix MSO54B and writes the report from the measured results.
In TestFlow's library the MXO54 has 63 SCPI commands and the MSO54B has 70 SCPI commands. 0 command headers are common to both, 57 are only on the MXO54 (mostly MATH and TRIGger), and 49 are only on the MSO54B (mostly AFG and TRIGger).
Not without changes. None of the 57 command headers in the MXO54 library matches one of the 49 in the MSO54B library: the MXO54 uses commands such as :MATH<n>:STATe and the MSO54B uses commands such as AFG:AMPLitude. PyVISA opens both the same way, but each command needs its own version for each instrument.
The MSO54B: 63 commands for the MXO54 against 70 for the MSO54B in TestFlow's library. Of those, 7 on the MXO54 and 7 on the MSO54B are queries that read a value or state, and the library splits them into 19 and 17 subsystems.
Neither library has an operation-complete command such as *OPC?. Only the MXO54 library has an error-queue read (SYSTem:ERRor?); the MSO54B 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.