In TestFlow's instrument library, the Keysight E5515C takes 172 SCPI commands, 96 of them queries, and the Rohde & Schwarz CMW500 takes 300 SCPI commands, 157 of them queries. That is 128 more on the CMW500. Counting distinct command headers (the command path without its arguments), 5 are accepted by both, 155 exist only on the E5515C, and 280 only on the CMW500. 3% of the E5515C's command headers also exist on the CMW500.
Both libraries have commands under CALL, SYSTem, FETCh, READ, INITiate, and ABORt. Only the E5515C has SETup, RFANalyzer, RFGenerator, DISPlay, and STATus. Only the CMW500 has CONFigure, SOURce, ROUTe, STOP, CALCulate, and SENSe.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the E5515E the same command set as the E5515C, so the E5515C column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5515C 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.
| Keysight E5515C | Rohde & Schwarz CMW500 | |
|---|---|---|
| Commands in TestFlow's library | 172 | 300 |
| Queries (read a value or state) | 96 | 157 |
| Settings and actions | 76 | 143 |
| Subsystems | 15 | 16 |
| Distinct command headers | 160 | 285 |
| Headers the other lacks | 155 | 280 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | E5515C, E5515E | CMW500 |
5 command headers are in both libraries.
| Command | What it does |
|---|---|
| *IDN? | Identify. Returns the identification string (manufacturer, model, serial number, 0). |
| *RST | Reset. Resets the test set to its default state. |
| *CLS | Clear Status. Clears the status registers and closes the error message screen. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. |
155 command headers in the E5515C library have no match in the CMW500 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keysight E5515C command reference.
| Command | What it does |
|---|---|
| CALL:OPERating:MODE <Mode> | Set Operating Mode. Sets the test set operating mode: Active Cell (CALL), GSM BCH or BCH+TCH test mode, GPRS BCH or BCH+PDTCH test mode, continuous wave (CW) or OFF. |
| CALL:OPERating:MODE? | Read Operating Mode. Reads the test set operating mode: Active Cell (CALL), GSM BCH or BCH+TCH test mode, GPRS BCH or BCH+PDTCH test mode, continuous wave (CW) or OFF. |
| CALL:CELL:BAND <Band> | Set Cell Band. Sets the band in which the broadcast channel (BCH) is transmitted. |
| CALL:CELL:BAND? | Read Cell Band. Reads the band in which the broadcast channel (BCH) is transmitted. |
| Command | What it does |
|---|---|
| SYSTem:APPLication:SELect:NAME '<Application>' | Select Test Application. Selects the test application to run after reboot (name as shown in the Test Application Setup menu); the test set reboots in about 1 minute. |
| SYSTem:APPLication:SELect:NAME? | Read Selected Test Application. Reads the test application that is selected and will run after the next reboot. |
| SYSTem:APPLication:CURRent:NAME? | Read Current Application Name. Reads the name of the test application currently running. |
| SYSTem:APPLication:CURRent:REVision? | Read Current Application Revision. Reads the revision of the test application currently running. |
| Command | What it does |
|---|---|
| SETup:ALL:CONTinuous ON | Turn On All Continuous Trigger. Sets the trigger arm of all measurements to continuous. |
| SETup:TXPower:CONTinuous ON | Turn On TX Power Continuous. Sets the TX power measurement trigger arm to continuous. |
| SETup:TXPower:COUNt <Count> | Set TX Power Count. Sets the TX power multi-measurement count (1 to 999) and turns the count state on. |
| SETup:TXPower:COUNt? | Read TX Power Count. Reads the TX power multi-measurement count (1 to 999). |
| Command | What it does |
|---|---|
| FETCh:TXPower? | Fetch TX Power. Fetches the integrity indicator and average transmit power in dBm. |
| FETCh:TXPower:POWer:AVERage? | Fetch TX Power Average. Fetches the average TX power result in dBm. |
| FETCh:TXPower:POWer:MAXimum? | Fetch TX Power Maximum. Fetches the maximum TX power result in dBm. |
| FETCh:TXPower:POWer:MINimum? | Fetch TX Power Minimum. Fetches the minimum TX power result in dBm. |
| Command | What it does |
|---|---|
| RFANalyzer:CONTrol:POWer:AUTO ON | Turn On Analyzer Auto Power. Sets the receiver expected power control to automatic. |
| RFANalyzer:CONTrol:POWer:AUTO? | Read Analyzer Auto Power State. Reads the on/off state set by Turn_On_Analyzer_Auto_Power / Turn_Off_Analyzer_Auto_Power. |
| RFANalyzer:CW:EXPected:POWer <Level> | Set CW Expected Power. Sets the power level in dBm the mobile is expected to transmit in CW mode (-60 to +53 dBm). |
| RFANalyzer:CW:EXPected:POWer? | Read CW Expected Power. Reads the power level in dBm the mobile is expected to transmit in CW mode (-60 to +53 dBm). |
| Command | What it does |
|---|---|
| READ:TXPower? | Read TX Power. Initiates and fetches one TX power measurement (integrity indicator and average TX power in dBm). |
| READ:PFERror? | Read PFER. Initiates and fetches one phase/frequency error measurement (integrity, RMS phase, peak phase, worst frequency error). |
| READ:PVTime? | Read PVT. Initiates and fetches one power versus time measurement. |
| READ:ORFSpectrum? | Read ORFS. Initiates and fetches one output RF spectrum measurement. |
280 command headers in the CMW500 library have no match in the E5515C 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: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. |
| Command | What it does |
|---|---|
| SOURce:GPRF:GENerator1:STATe ON | Turn 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| READ:GPRF:MEASurement1:POWer:CURRent? | Read Power Current. Starts the measurement and returns the current power results of all measured segments in dBm. |
| READ:GPRF:MEASurement1:POWer:CURRent:RMS? | Read Power Current RMS. Starts the measurement and returns the current RMS power results in dBm. |
| READ:GPRF:MEASurement1:POWer:AVERage? | Read Power Average. Starts the measurement and returns the average power results of all measured segments in dBm. |
| READ:GPRF:MEASurement1:POWer:SDEViation? | Read Power Standard Deviation. Starts the measurement and returns the standard deviation of the power results in dB. |
| Command | What it does |
|---|---|
| ABORt:GPRF:MEASurement1:POWer | Abort Power Measurement. Halts the power measurement and puts it into the OFF state; all results are set to NAV. |
| ABORt:GPRF:MEASurement1:FFTSanalyzer | Abort FFT Measurement. Halts the FFT measurement and clears all results. |
| ABORt:GPRF:MEASurement1:SPECtrum | Abort Spectrum Measurement. Halts the spectrum measurement and clears all results. |
| ABORt:GPRF:MEASurement1:IQVSlot | Abort IQVSlot Measurement. Halts the I/Q vs slot measurement and clears all 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, the two libraries have no common command with a worked example on both, so each instrument uses its own: RFANalyzer:CONTrol:POWer:AUTO ON on the E5515C and SOURce:GPRF:GENerator1:STATe ON on the CMW500. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: RFANalyzer:CONTrol:MEASurement:FREQuency:AUTO? on the E5515C and CONFigure:GPRF:MEASurement1:RFSettings:FREQuency? on the CMW500. 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_E5515C_ADDRESS") # Keysight E5515C
b = rm.open_resource("PASTE_CMW500_ADDRESS") # Rohde & Schwarz CMW500
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("RFANalyzer:CONTrol:POWer:AUTO ON") # Turn On Analyzer Auto Power
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("RFANalyzer:CONTrol:MEASurement:FREQuency:AUTO?")) # Read Analyzer Auto Frequency State
print(b.query("CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?")) # Read Analyzer Frequency
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5515C or Rohde & Schwarz CMW500 and writes the report from the measured results.
In TestFlow's library the E5515C has 172 SCPI commands and the CMW500 has 300 SCPI commands. 5 command headers are common to both, 155 are only on the E5515C (mostly CALL and SYSTem), and 280 are only on the CMW500 (mostly CONFigure and SOURce).
Partly. 5 command headers are accepted by both. 435 are not, for example CALL:OPERating:MODE on the E5515C and CONFigure:GPRF:MEASurement1:RFSettings:FREQuency on the CMW500, so a script that uses those needs a separate branch for each instrument.
The CMW500: 172 commands for the E5515C against 300 for the CMW500 in TestFlow's library. Of those, 96 on the E5515C and 157 on the CMW500 are queries that read a value or state, and the library splits them into 15 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.