Oscilloscope · SCPI command comparison

Rohde & Schwarz RTA4004 vs Tektronix MDO34: SCPI commands and remote control compared

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.

RTA4004 commands
83
MDO34 commands
66
Shared headers
0
Unique headers
133

Run this on your bench

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.

Get started

RTA4004 vs MDO34 at a glance

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 RTA4004Tektronix MDO34
Commands in TestFlow's library8366
Queries (read a value or state)3019
Settings and actions5347
Subsystems1614
Distinct command headers8053
Headers the other lacks8053
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?Not in library
Models on this command setRTA4004, RTA4006, RTA4012, RTA4014, RTA4024, RTA4044MDO34

Commands both accept

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.

Only on the Rohde & Schwarz RTA4004

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.

SPECtrum (23 only on the RTA4004)

CommandWhat 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).

CHANnel (12 only on the RTA4004)

CommandWhat 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).

MMEMory (10 only on the RTA4004)

CommandWhat 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.

TRIGger (8 only on the RTA4004)

CommandWhat 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.

HCOPy (6 only on the RTA4004)

CommandWhat it does
HCOPy:CWINdow <OnOff>Screenshot Close Windows. Close dialog boxes/menus before saving screenshot.
HCOPy:IMMediateScreenshot Save To File. Save screenshot to file using current directory and filename settings.
HCOPy:FORMat PNGCapture. Return screenshot image data as IEEE 488.2 block data.
HCOPy:COLor:SCHeme <ColorScheme>Screenshot Color Scheme. Set screenshot color scheme.

IEEE 488.2 common (*) (6 only on the RTA4004)

CommandWhat it does
*IDN?Identify. Query the instrument identification string.
*RSTReset. Reset the instrument.
*CLSClear Status. Clear status registers and error queue.
*OPC?Operation Complete. Query operation complete flag.

Only on the Tektronix MDO34

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.

RF (30 only on the MDO34)

CommandWhat 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.

CURSor (7 only on the MDO34)

CommandWhat 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 WAVEFORMCursers 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.

MEASUrement (4 only on the MDO34)

CommandWhat 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).

TRIGger (4 only on the MDO34)

CommandWhat 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.

HORIZONTAL (2 only on the MDO34)

CommandWhat 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.

SELect (2 only on the MDO34)

CommandWhat it does
SELect:<Channel> ONShow 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).

Control both from Python

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()

Run this on your bench

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.

Get started

Frequently asked questions

What is the difference between the Rohde & Schwarz RTA4004 and the Tektronix MDO34 for remote control?

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).

Can I use the same SCPI code for the Rohde & Schwarz RTA4004 and the Tektronix MDO34?

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.

Which has more remote commands, the RTA4004 or the MDO34?

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.

How do the RTA4004 and MDO34 signal operation complete and report errors?

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.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.