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?.
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.
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 CMW270 | Rohde & Schwarz CMW500 | |
|---|---|---|
| Commands in TestFlow's library | 318 | 300 |
| Queries (read a value or state) | 167 | 157 |
| Settings and actions | 151 | 143 |
| Subsystems | 16 | 16 |
| Distinct command headers | 307 | 285 |
| Headers the other lacks | 164 | 142 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | CMW270 | CMW500 |
143 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What 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 ON | Turn 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:POWer | Start Power Measurement. Starts or restarts the GPRF power measurement and puts it into the RUN state. |
| STOP:GPRF:MEASurement1:POWer | Stop Power Measurement. Halts the power measurement and puts it into the RDY state while keeping the results. |
| ABORt:GPRF:MEASurement1:POWer | Abort 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. |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What 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). |
| Command | What 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. |
| *OPC | Set 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| CALL:WLAN:SIGNaling1:ACTion:STATion:CONNect | WLAN Station Connect. Initiates association to the AP under test (operation mode Station, connection mode Manual). |
| CALL:WLAN:SIGNaling1:ACTion:STATion:REConnect | WLAN Station Reconnect. Re-initiates association to the AP under test (operation mode Station). |
| CALL:WLAN:SIGNaling1:STA1:ACTion:DISConnect | WLAN 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). |
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.
| Command | What 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. |
| Command | What it does |
|---|---|
| SOURce:GPRF:GENerator1:LIST ON | Turn 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| ABORt:GPRF:MEASurement1:IQVSlot | Abort IQVSlot Measurement. Halts the I/Q vs slot measurement and clears all results. |
| ABORt:GPRF:MEASurement1:EPSensor | Abort Power Sensor Measurement. Halts the external power sensor measurement and clears all results. |
| ABORt:LTE:SIGNaling1:THRoughput | Abort LTE Throughput Measurement. Halts the LTE throughput measurement and clears all results. |
| ABORt:LTE:MEASurement1:MEValuation | Abort LTE MultiEval Measurement. Halts the LTE multi-evaluation measurement and clears all results. |
| Command | What it does |
|---|---|
| INITiate:GPRF:MEASurement1:IQVSlot | Start IQVSlot Measurement. Starts or restarts the I/Q vs slot measurement. |
| INITiate:GPRF:MEASurement1:EPSensor | Start Power Sensor Measurement. Starts or restarts the external power sensor measurement. |
| INITiate:LTE:SIGNaling1:THRoughput | Start LTE Throughput Measurement. Starts or restarts the LTE signaling throughput measurement. |
| INITiate:LTE:MEASurement1:MEValuation | Start LTE MultiEval Measurement. Starts or restarts the LTE uplink multi-evaluation measurement. |
| Command | What it does |
|---|---|
| STOP:GPRF:MEASurement1:IQVSlot | Stop IQVSlot Measurement. Halts the I/Q vs slot measurement and keeps the results. |
| STOP:GPRF:MEASurement1:EPSensor | Stop Power Sensor Measurement. Halts the external power sensor measurement and keeps the results. |
| STOP:LTE:SIGNaling1:THRoughput | Stop LTE Throughput Measurement. Halts the LTE throughput measurement and keeps the results. |
| STOP:LTE:MEASurement1:MEValuation | Stop LTE MultiEval Measurement. Halts the LTE multi-evaluation measurement and keeps the results. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.