Radio Test Set · SCPI command comparison

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

In TestFlow's instrument library, the Rohde & Schwarz CMW270 takes 318 SCPI commands, 167 of them queries, and the Rohde & Schwarz CMW500 takes 300 SCPI commands, 157 of them queries. That is 18 more on the CMW270. Counting distinct command headers (the command path without its arguments), 143 are accepted by both, 164 exist only on the CMW270, and 142 only on the CMW500. 47% of the CMW270's command headers also exist on the CMW500.

Both libraries have commands under CONFigure, SOURce, FETCh, SYSTem, ROUTe, SENSe, INITiate, and STOP, plus 4 more roots. Neither has a command root the other lacks: the differences are inside shared subsystems.

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.

CMW270 commands
318
CMW500 commands
300
Shared headers
143
Unique headers
306

Run this on your bench

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

Get started

CMW270 vs CMW500 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 CMW270Rohde & Schwarz CMW500
Commands in TestFlow's library318300
Queries (read a value or state)167157
Settings and actions151143
Subsystems1616
Distinct command headers307285
Headers the other lacks164142
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setCMW270CMW500

Commands both accept

143 command headers are in both libraries. Here are 12, taken across subsystems.

CommandWhat it does
CONFigure:GPRF:MEASurement1:RFSettings:FREQuency <Freq>Set Analyzer Frequency. Sets the center frequency of the RF analyzer in Hz.
SOURce:GPRF:GENerator1:STATe ONTurn On Generator. Turns the GPRF RF generator on.
FETCh:GPRF:MEASurement1:POWer:STATe?Read Power Measurement State. Reads the main state of the power measurement (OFF / RUN / RDY).
SYSTem:BASE:REFerence:FREQuency:SOURce <Source>Set Reference Frequency Source. Selects the internal or an external reference frequency source for the instrument.
ROUTe:GPRF:GENerator1:SCENario:SALone <Connector>,<Converter>Route Generator Standalone. Selects the RF output connector and TX module used for the generated RF signal.
INITiate:GPRF:MEASurement1:POWerStart Power Measurement. Starts or restarts the GPRF power measurement and puts it into the RUN state.
STOP:GPRF:MEASurement1:POWerStop Power Measurement. Halts the power measurement and puts it into the RDY state while keeping the results.
ABORt:GPRF:MEASurement1:POWerAbort Power Measurement. Halts the power measurement and puts it into the OFF state; all results are set to NAV.
READ:GPRF:MEASurement1:POWer:CURRent?Read Power Current. Starts the measurement and returns the current power results of all measured segments in dBm.
CALCulate:GPRF:MEASurement1:POWer:AVERage?Calculate Power Average Limits. Returns the limit check results for the average power instead of the measured values.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?Read Analyzer Frequency. Reads the center frequency of the RF analyzer in Hz.

Only on the Rohde & Schwarz CMW270

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

CONFigure (110 only on the CMW270)

CommandWhat it does
CONFigure:WLAN:SIGNaling1:CONNection:STANdard <Standard>Set WLAN Standard. Selects the IEEE 802.11 standard (b, a, g, g OFDM, a/n, g/n, g OFDM/n, ac, ax).
CONFigure:WLAN:SIGNaling1:CONNection:STANdard?Read WLAN Standard. Reads the selected IEEE 802.11 standard (b, a, g, g OFDM, a/n, g/n, g OFDM/n, ac, ax).
CONFigure:WLAN:SIGNaling1:CONNection:OMODe <Mode>Set WLAN Operation Mode. Selects the simulated WLAN entity: access point, station or Hotspot 2.0 access point.
CONFigure:WLAN:SIGNaling1:CONNection:OMODe?Read WLAN Operation Mode. Reads the selected simulated WLAN entity: access point, station or Hotspot 2.0 access point.

FETCh (13 only on the CMW270)

CommandWhat it does
FETCh:WLAN:SIGNaling1:PSWitched:STATe?Read WLAN Connection State. Returns the connection state: IDLE, PROBed, AUTHenticated, ASSociated, DEAuthenticated, DISassociated or CTIMeout.
FETCh:WLAN:SIGNaling1:PER:STATe?Read WLAN PER State. Returns the WLAN packet error rate measurement state: OFF, RUN or RDY.
FETCh:WLAN:SIGNaling1:PER?Fetch WLAN PER. Returns all results of the WLAN PER measurement.
FETCh:WLAN:MEASurement1:MEValuation:STATe?Read WLAN MultiEval State. Returns the WLAN multi-evaluation measurement state: OFF, RUN or RDY.

SENSe (9 only on the CMW270)

CommandWhat it does
SENSe:WLAN:SIGNaling1:STA1:UECapability:MAC:ADDRess?Read WLAN DUT MAC Address. Returns the MAC address of the associated DUT (station 1).
SENSe:WLAN:SIGNaling1:STA1:UESinfo:RXBPower?Read WLAN DUT Burst Power. Returns the average power of the last burst received from the DUT in dBm.
SENSe:WLAN:SIGNaling1:STA1:UESinfo:DRATe?Read WLAN DUT Data Rate. Returns data rate information of the DUT signal.
SENSe:WLAN:SIGNaling1:UESinfo:APSSid?Read WLAN Associated AP SSID. Returns the SSID of the associated access point (operation mode Station).

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

CommandWhat it does
*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.
*OPCSet Operation Complete Bit. Sets bit 0 of the event status register when all preceding commands are complete.
*SAV <Memory>Save State. Stores the current instrument settings in intermediate memory 0 to 99.

ROUTe (5 only on the CMW270)

CommandWhat it does
ROUTe:WLAN:SIGNaling1:SCENario?Read WLAN Signaling Scenario. Returns the active WLAN signaling scenario (STANdard, MIMO2, SCFading, MIMFading).
ROUTe:WLAN:SIGNaling1?Read WLAN Signaling Routing. Returns the active WLAN test scenario with the used TRX modules and RF connectors.
ROUTe:WLAN:MEASurement1:SCENario:SALone <Connector>, <Converter>Route WLAN Measurement Standalone. Activates the standalone scenario and selects the RF input connector and RX module for WLAN measurements.
ROUTe:WLAN:MEASurement1:SCENario?Read WLAN Measurement Scenario. Returns the active WLAN measurement scenario.

CALL (4 only on the CMW270)

CommandWhat it does
CALL:WLAN:SIGNaling1:ACTion:STATion:CONNectWLAN Station Connect. Initiates association to the AP under test (operation mode Station, connection mode Manual).
CALL:WLAN:SIGNaling1:ACTion:STATion:REConnectWLAN Station Reconnect. Re-initiates association to the AP under test (operation mode Station).
CALL:WLAN:SIGNaling1:STA1:ACTion:DISConnectWLAN Disconnect DUT. Disassociates and deauthenticates the DUT (station 1) by sending a deauthentication frame.
CALL:BLUetooth:SIGNaling1:CONNection:ACTion <Action>BT Connection Action. Requests a BR/EDR signaling action (e.g. INQuire, SINQuiry, CONNect, TMConnect, DETach).

Only on the Rohde & Schwarz CMW500

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

CONFigure (98 only on the CMW500)

CommandWhat it does
CONFigure:GPRF:MEASurement1:IQVSlot:SCOunt <Count>Set IQVSlot Step Count. Defines the number of measurement steps per subsweep of the I/Q vs slot measurement (1 to 3000).
CONFigure:GPRF:MEASurement1:IQVSlot:SCOunt?Read IQVSlot Step Count. Reads the number of measurement steps of the I/Q vs slot measurement.
CONFigure:GPRF:MEASurement1:IQVSlot:MLENgth <Seconds>Set IQVSlot Measurement Length. Sets the length of the evaluation intervals of the I/Q vs slot measurement in seconds.
CONFigure:GPRF:MEASurement1:IQVSlot:MLENgth?Read IQVSlot Measurement Length. Reads the evaluation interval length of the I/Q vs slot measurement in seconds.

SOURce (14 only on the CMW500)

CommandWhat it does
SOURce:GPRF:GENerator1:LIST ONTurn On List Mode. Enables the frequency/level list mode of the RF generator.
SOURce:GPRF:GENerator1:LIST?Read List Mode State. Reads whether the generator list mode is enabled.
SOURce:GPRF:GENerator1:LIST:STARt <Index>Set List Start Index. Defines the index of the first frequency/level step processed in list mode (0 to 1999).
SOURce:GPRF:GENerator1:LIST:STARt?Read List Start Index. Reads the index of the first frequency/level step in list mode.

FETCh (8 only on the CMW500)

CommandWhat it does
FETCh:GPRF:MEASurement1:IQVSlot:STATe?Read IQVSlot Measurement State. Reads the main state of the I/Q vs slot measurement.
FETCh:GPRF:MEASurement1:EPSensor?Fetch Power Sensor Results. Fetches the external power sensor results: current, average, minimum and maximum power in dBm.
FETCh:GPRF:MEASurement1:EPSensor:IDN?Read Power Sensor Identification. Reads the identification string of the connected external power sensor.
FETCh:GPRF:MEASurement1:EPSensor:STATe?Read Power Sensor State. Reads the main state of the external power sensor measurement.

ABORt (4 only on the CMW500)

CommandWhat it does
ABORt:GPRF:MEASurement1:IQVSlotAbort IQVSlot Measurement. Halts the I/Q vs slot measurement and clears all results.
ABORt:GPRF:MEASurement1:EPSensorAbort Power Sensor Measurement. Halts the external power sensor measurement and clears all results.
ABORt:LTE:SIGNaling1:THRoughputAbort LTE Throughput Measurement. Halts the LTE throughput measurement and clears all results.
ABORt:LTE:MEASurement1:MEValuationAbort LTE MultiEval Measurement. Halts the LTE multi-evaluation measurement and clears all results.

INITiate (4 only on the CMW500)

CommandWhat it does
INITiate:GPRF:MEASurement1:IQVSlotStart IQVSlot Measurement. Starts or restarts the I/Q vs slot measurement.
INITiate:GPRF:MEASurement1:EPSensorStart Power Sensor Measurement. Starts or restarts the external power sensor measurement.
INITiate:LTE:SIGNaling1:THRoughputStart LTE Throughput Measurement. Starts or restarts the LTE signaling throughput measurement.
INITiate:LTE:MEASurement1:MEValuationStart LTE MultiEval Measurement. Starts or restarts the LTE uplink multi-evaluation measurement.

STOP (4 only on the CMW500)

CommandWhat it does
STOP:GPRF:MEASurement1:IQVSlotStop IQVSlot Measurement. Halts the I/Q vs slot measurement and keeps the results.
STOP:GPRF:MEASurement1:EPSensorStop Power Sensor Measurement. Halts the external power sensor measurement and keeps the results.
STOP:LTE:SIGNaling1:THRoughputStop LTE Throughput Measurement. Halts the LTE throughput measurement and keeps the results.
STOP:LTE:MEASurement1:MEValuationStop LTE MultiEval Measurement. Halts the LTE multi-evaluation measurement and keeps the results.

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, both libraries hold SOURce:GPRF:GENerator1:STATe (turn on generator), and the same line runs on each. For the reading, both libraries hold CONFigure:GPRF:MEASurement1:RFSettings:FREQuency? (read analyzer frequency), and the same line runs on each. 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_CMW270_ADDRESS")  # Rohde & Schwarz CMW270
b = rm.open_resource("PASTE_CMW500_ADDRESS")  # Rohde & Schwarz CMW500
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Turn On Generator
a.write("SOURce:GPRF:GENerator1:STATe ON")
b.write("SOURce:GPRF:GENerator1:STATe ON")

# The same reading on both: Read Analyzer Frequency
print(a.query("CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?"))
print(b.query("CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

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

In TestFlow's library the CMW270 has 318 SCPI commands and the CMW500 has 300 SCPI commands. 143 command headers are common to both, 164 are only on the CMW270 (mostly CONFigure and FETCh), and 142 are only on the CMW500 (mostly CONFigure and SOURce).

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

Partly. 143 command headers are accepted by both, including CONFigure:GPRF:MEASurement1:RFSettings:FREQuency, SOURce:GPRF:GENerator1:STATe, and FETCh:GPRF:MEASurement1:POWer:STATe?. 306 are not, for example CONFigure:WLAN:SIGNaling1:CONNection:STANdard on the CMW270 and CONFigure:GPRF:MEASurement1:IQVSlot:SCOunt on the CMW500, so a script that uses those needs a separate branch for each instrument.

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

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

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

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. 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.