In TestFlow's instrument library, the Rohde & Schwarz RTA4004 takes 83 SCPI commands, 30 of them queries, and the Tektronix MDO34 takes 66 SCPI commands, 19 of them queries. That is 17 more on the RTA4004. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 80 exist only on the RTA4004, and 53 only on the MDO34. None of the RTA4004's command headers appears in the MDO34 library, so a script written for one needs every command rewritten for the other.
Both libraries have commands under TRIGger. Only the RTA4004 has SPECtrum, CHANnel, MMEMory, HCOPy, EXPort, and TIMebase and 5 more. Only the MDO34 has RF, CURSor, MEASUrement, ACQuire, SELect, and HORIZONTAL and 3 more.
Only the RTA4004 library has an operation-complete command (*OPC?); the MDO34 library has none. Only the RTA4004 library has an error-queue read (SYSTem:ERRor?); the MDO34 library has none.
TestFlow's library gives the RTA4006, RTA4012, RTA4014, RTA4024, and RTA4044 the same command set as the RTA4004, so the RTA4004 column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Rohde & Schwarz RTA4004 or Tektronix MDO34 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 RTA4004 | Tektronix MDO34 | |
|---|---|---|
| Commands in TestFlow's library | 83 | 66 |
| Queries (read a value or state) | 30 | 19 |
| Settings and actions | 53 | 47 |
| Subsystems | 16 | 14 |
| Distinct command headers | 80 | 53 |
| Headers the other lacks | 80 | 53 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | RTA4004, RTA4006, RTA4012, RTA4014, RTA4024, RTA4044 | MDO34 |
None. No command header in TestFlow's RTA4004 library matches one in its MDO34 library, so every command needs its own version for each instrument.
80 command headers in the RTA4004 library have no match in the MDO34 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz RTA4004 command reference.
| Command | What it does |
|---|---|
| SPECtrum:STATe <OnOff> | Spectrum Enable. Enable/disable spectrum (FFT) analysis. |
| SPECtrum:SOURce <Source> | Spectrum Source. Set spectrum analysis source waveform. |
| SPECtrum:FREQuency:CENTer <CenterHz> | Spectrum Center Frequency. Set center frequency (Hz). |
| SPECtrum:FREQuency:SPAN <SpanHz> | Spectrum Span. Set frequency span (Hz). |
| Command | What it does |
|---|---|
| CHANnel<Channel>:STATe <OnOff> | Channel Enable. Enable/disable an analog channel. |
| CHANnel<Channel>:STATe? | Read Channel Enable. Query enable/disable state of an analog channel. |
| CHANnel<Channel>:SCALe <VoltsDiv> | Channel Scale. Set vertical scale (volts per division). |
| CHANnel<Channel>:SCALe? | Read Channel Scale. Query vertical scale (volts per division). |
| Command | What it does |
|---|---|
| MMEMory:NAME <FileName> | Screenshot FileName. Set the filename used by HCOPy[:IMMediate]. |
| MMEMory:DRIVes? | List Drives. List available storage devices/drives. |
| MMEMory:MDIRectory <DirPath> | Make Directory. Create a directory. |
| MMEMory:CDIRectory <DirPath> | Change Directory. Change current directory. |
| Command | What it does |
|---|---|
| TRIGger:A:TYPE <Type> | Trigger Type. Set trigger type (edge/pulse/etc.). |
| TRIGger:A:TYPE? | Read Trigger Type. Query trigger type. |
| TRIGger:A:SOURce <Source> | Trigger Source. Set trigger source. |
| TRIGger:A:SOURce? | Read Trigger Source. Query trigger source. |
| Command | What it does |
|---|---|
| HCOPy:CWINdow <OnOff> | Screenshot Close Windows. Close dialog boxes/menus before saving screenshot. |
| HCOPy:IMMediate | Screenshot Save To File. Save screenshot to file using current directory and filename settings. |
| HCOPy:FORMat PNG | Capture. Return screenshot image data as IEEE 488.2 block data. |
| HCOPy:COLor:SCHeme <ColorScheme> | Screenshot Color Scheme. Set screenshot color scheme. |
| Command | What it does |
|---|---|
| *IDN? | Identify. Query the instrument identification string. |
| *RST | Reset. Reset the instrument. |
| *CLS | Clear Status. Clear status registers and error queue. |
| *OPC? | Operation Complete. Query operation complete flag. |
53 command headers in the MDO34 library have no match in the RTA4004 library. Below are 20 of them from the 6 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: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:EDGE1 <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:<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: SPECtrum:FREQuency:FULLspan on the RTA4004 and ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto on the MDO34. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: TIMebase:SCALe? on the RTA4004 and RF:MEASUre:ACPR:LA1DB? on the MDO34. 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_RTA4004_ADDRESS") # Rohde & Schwarz RTA4004
b = rm.open_resource("PASTE_MDO34_ADDRESS") # Tektronix MDO34
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("SPECtrum:FREQuency:FULLspan") # Spectrum Full Span
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("TIMebase:SCALe?")) # Read Timebase Scale
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 RTA4004 or Tektronix MDO34 and writes the report from the measured results.
In TestFlow's library the RTA4004 has 83 SCPI commands and the MDO34 has 66 SCPI commands. 0 command headers are common to both, 80 are only on the RTA4004 (mostly SPECtrum and CHANnel), and 53 are only on the MDO34 (mostly RF and CURSor).
Not without changes. None of the 80 command headers in the RTA4004 library matches one of the 53 in the MDO34 library: the RTA4004 uses commands such as SPECtrum:STATe and the MDO34 uses commands such as RF:CLIPPing?. PyVISA opens both the same way, but each command needs its own version for each instrument.
The RTA4004: 83 commands for the RTA4004 against 66 for the MDO34 in TestFlow's library. Of those, 30 on the RTA4004 and 19 on the MDO34 are queries that read a value or state, and the library splits them into 16 and 14 subsystems.
Only the RTA4004 library has an operation-complete command (*OPC?); the MDO34 library has none. Only the RTA4004 library has an error-queue read (SYSTem:ERRor?); the MDO34 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.