Radio Test Set · SCPI command comparison

Anritsu MT8820C vs Rohde & Schwarz CMW270: SCPI commands and remote control compared

In TestFlow's instrument library, the Anritsu MT8820C takes 191 SCPI commands, 48 of them queries, and the Rohde & Schwarz CMW270 takes 318 SCPI commands, 167 of them queries. That is 127 more on the CMW270. Counting distinct command headers (the command path without its arguments), 1 are accepted by both, 110 exist only on the MT8820C, and 306 only on the CMW270. 1% of the MT8820C's command headers also exist on the CMW270.

Both libraries have commands under CALLPROC. Only the MT8820C has TPUT_MEAS, DLIMCS, TP_MAXPWR_UL, TP_MAXPWR_LL, TP_MINPWR_UL, and TP_OFFPWR_UL and 100 more. Only the CMW270 has CONFigure, SOURce, FETCh, SYSTem, ROUTe, and SENSe and 5 more.

Only the CMW270 library has an operation-complete command (*OPC?); the MT8820C library has none. Only the CMW270 library has an error-queue read (SYSTem:ERRor?); the MT8820C library has none.

MT8820C commands
191
CMW270 commands
318
Shared headers
1
Unique headers
416

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Anritsu MT8820C or Rohde & Schwarz CMW270 and writes the report from the measured results.

Get started

MT8820C vs CMW270 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.

Anritsu MT8820CRohde & Schwarz CMW270
Commands in TestFlow's library191318
Queries (read a value or state)48167
Settings and actions143151
Subsystems11816
Distinct command headers111307
Headers the other lacks110306
Command languageSCPISCPI
Operation completeNot in library*OPC?
Error queueNot in librarySYSTem:ERRor?
Models on this command setMT8820CCMW270

Commands both accept

1 command header is in both libraries.

CommandWhat it does
*RSTReset. Resets the instrument to its default state.

Only on the Anritsu MT8820C

110 command headers in the MT8820C library have no match in the CMW270 library. Below are 9 of them from the 6 largest subsystems; the full list is in the Anritsu MT8820C command reference.

CALLPROC (2 only on the MT8820C)

CommandWhat it does
CALLPROC ONTurn On Call Processing. Sets Common Parameter - Call Processing to ON.
CALLSTAT?Read Call Status. Reads the call processing status (1 = Idle, 2 = Idle (Regist), 6 = Connected).

ENTERSYNC (2 only on the MT8820C)

CommandWhat it does
ENTERSYNC <Mode>Set Frame Sync. Sets frame timing synchronization between cells/units.
ENTERSYNC?Read Frame Sync. Returns 1 when frame timing synchronization is established.

TPUT_MEAS (2 only on the MT8820C)

CommandWhat it does
TPUT_MEAS ONTurn On Throughput Measurement. Sets the Throughput measurement to ON.
TPUT? PERRead Throughput Percent. Reads the throughput measurement result in %.

ACLR_AVG (1 only on the MT8820C)

CommandWhat it does
ACLR_AVG <Count>Set ACLR Average Count. Sets the average count of the ACLR measurement.

ACT_SCC1 (1 only on the MT8820C)

CommandWhat it does
ACT_SCC1 ONTurn On SCC1 Activation. Activates SCC-1 (Call Processing Parameter - Carrier Aggregation).

ALLMEASITEMS_OFF (1 only on the MT8820C)

CommandWhat it does
ALLMEASITEMS_OFFTurn Off All Measurement Items. Sets all fundamental measurement items to OFF.

Only on the Rohde & Schwarz CMW270

306 command headers in the CMW270 library have no match in the MT8820C library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz CMW270 command reference.

CONFigure (162 only on the CMW270)

CommandWhat it does
CONFigure:GPRF:MEASurement1:RFSettings:FREQuency <Freq>Set Analyzer Frequency. Sets the center frequency of the RF analyzer in Hz.
CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?Read Analyzer Frequency. Reads the center frequency of the RF analyzer in Hz.
CONFigure:GPRF:MEASurement1:RFSettings:ENPower <Power>Set Analyzer Expected Power. Sets the expected nominal power of the measured RF signal in dBm.
CONFigure:GPRF:MEASurement1:RFSettings:ENPower?Read Analyzer Expected Power. Reads the expected nominal power of the measured RF signal in dBm.

SOURce (37 only on the CMW270)

CommandWhat it does
SOURce:GPRF:GENerator1:STATe ONTurn On Generator. Turns the GPRF RF generator on.
SOURce:GPRF:GENerator1:STATe?Read Generator State. Reads the generator state (OFF / PENDing / ON / RDY).
SOURce:GPRF:GENerator1:STATe:ALL?Read Generator State All. Reads detailed generator state information including the main state and the synchronization state.
SOURce:GPRF:GENerator1:BBMode <Mode>Set Generator Baseband Mode. Selects the baseband mode of the generator signal: unmodulated CW, dual tone, or ARB waveform playback.

FETCh (34 only on the CMW270)

CommandWhat it does
FETCh:GPRF:MEASurement1:POWer:STATe?Read Power Measurement State. Reads the main state of the power measurement (OFF / RUN / RDY).
FETCh:GPRF:MEASurement1:POWer:STATe:ALL?Read Power Measurement State All. Reads the detailed power measurement state including the main state and the synchronization state.
FETCh:GPRF:MEASurement1:POWer:CURRent?Fetch Power Current. Fetches the current power results of all measured segments in dBm without restarting the measurement.
FETCh:GPRF:MEASurement1:POWer:CURRent:RMS?Fetch Power Current RMS. Fetches the current RMS power results in dBm.

SYSTem (15 only on the CMW270)

CommandWhat it does
SYSTem:BASE:REFerence:FREQuency:SOURce <Source>Set Reference Frequency Source. Selects the internal or an external reference frequency source for the instrument.
SYSTem:BASE:REFerence:FREQuency:SOURce?Read Reference Frequency Source. Reads the selected reference frequency source.
SYSTem:BASE:REFerence:FREQuency <Freq>Set External Reference Frequency. Sets the expected external reference frequency in Hz when the external reference source is selected.
SYSTem:BASE:REFerence:FREQuency?Read External Reference Frequency. Reads the expected external reference frequency in Hz.

IEEE 488.2 common (*) (10 only on the CMW270)

CommandWhat it does
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*CLSClear Status. Clears the status byte, event registers and the output buffer.
*ESR?Read Event Status Register. Returns the contents of the standard event status register (0 to 255) and clears it.
*STB?Read Status Byte. Returns the contents of the status byte in decimal form.

ROUTe (10 only on the CMW270)

CommandWhat it does
ROUTe:GPRF:GENerator1:SCENario:SALone <Connector>,<Converter>Route Generator Standalone. Selects the RF output connector and TX module used for the generated RF signal.
ROUTe:GPRF:GENerator1:SCENario?Read Generator Scenario. Reads the active routing scenario of the GPRF generator.
ROUTe:GPRF:MEASurement1:SCENario:SALone <Connector>,<Converter>Route Measurement Standalone. Activates the standalone scenario and selects the RF input connector and RX module for the GPRF measurement.
ROUTe:GPRF:MEASurement1:SCENario:CSPath <Master>Route Measurement Combined Path. Activates the combined signal path scenario and selects the controlling signaling application, for example 'LTE Sig1'.

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: ANTCONFIG RX_DIVERSITY on the MT8820C and SOURce:GPRF:GENerator1:STATe ON on the CMW270. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: ENTERSYNC? on the MT8820C and CONFigure:GPRF:MEASurement1:RFSettings:FREQuency? on the CMW270. 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_MT8820C_ADDRESS")  # Anritsu MT8820C
b = rm.open_resource("PASTE_CMW270_ADDRESS")  # Rohde & Schwarz CMW270
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("ANTCONFIG RX_DIVERSITY")  # Set Antenna Configuration
b.write("SOURce:GPRF:GENerator1:STATe ON")  # Turn On Generator

# No shared reading with an example on both, so each uses its own command
print(a.query("ENTERSYNC?"))  # Read Frame Sync
print(b.query("CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?"))  # Read Analyzer Frequency

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Anritsu MT8820C or Rohde & Schwarz CMW270 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Anritsu MT8820C and the Rohde & Schwarz CMW270 for remote control?

In TestFlow's library the MT8820C has 191 SCPI commands and the CMW270 has 318 SCPI commands. 1 command headers are common to both, 110 are only on the MT8820C (mostly CALLPROC and ENTERSYNC), and 306 are only on the CMW270 (mostly CONFigure and SOURce).

Can I use the same SCPI code for the Anritsu MT8820C and the Rohde & Schwarz CMW270?

Partly. 1 command headers are accepted by both. 416 are not, for example CALLPROC on the MT8820C and CONFigure:GPRF:MEASurement1:RFSettings:FREQuency on the CMW270, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the MT8820C or the CMW270?

The CMW270: 191 commands for the MT8820C against 318 for the CMW270 in TestFlow's library. Of those, 48 on the MT8820C and 167 on the CMW270 are queries that read a value or state, and the library splits them into 118 and 16 subsystems.

How do the MT8820C and CMW270 signal operation complete and report errors?

Only the CMW270 library has an operation-complete command (*OPC?); the MT8820C library has none. Only the CMW270 library has an error-queue read (SYSTem:ERRor?); the MT8820C 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.