The Rohde & Schwarz CMP200 radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 242 commands for it, 125 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the CMP200 on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz CMP200 and writes the report from the measured results.
With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Rohde & Schwarz CMP200's VISA address
# Paste the address of your Rohde & Schwarz CMP200 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write("SOURce:GPRF:GENerator1:STATe ON") # Turn On RF Generator
print(inst.query("CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?")) # Query Power Meter Frequency
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz CMP200 and writes the report from the measured results.
Describe the test in a sentence, for example “turn on rf generator on the CMP200, then query power meter frequency and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.
242 commands in 18 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| CONFigure:GPRF:MEASurement1:RFSettings:FREQuency <Frequency> | Set Power Meter Frequency. Sets the center frequency of the RF analyzer in Hz. | Number |
| CONFigure:GPRF:MEASurement1:RFSettings:FREQuency? | Query Power Meter Frequency. Reads the center frequency of the RF analyzer in Hz. | None |
| CONFigure:GPRF:MEASurement1:RFSettings:ENPower <Power> | Set Power Meter Expected Power. Sets the expected nominal power of the measured RF signal in dBm. | Number |
| CONFigure:GPRF:MEASurement1:RFSettings:ENPower? | Query Power Meter Expected Power. Reads the expected nominal power of the measured RF signal in dBm. | None |
| CONFigure:GPRF:MEASurement1:RFSettings:UMARgin <Margin> | Set Power Meter User Margin. Sets the margin added to the expected nominal power to determine the reference level in dB. | Number |
| CONFigure:GPRF:MEASurement1:RFSettings:UMARgin? | Query Power Meter User Margin. Reads the margin added to the expected nominal power to determine the reference level in dB. | None |
| CONFigure:GPRF:MEASurement1:RFSettings:EATTenuation <Atten> | Set Power Meter External Attenuation. Sets the external attenuation (or gain if negative) at the input connector in dB. | Number |
| CONFigure:GPRF:MEASurement1:RFSettings:EATTenuation? | Query Power Meter External Attenuation. Reads the external attenuation (or gain if negative) at the input connector in dB. | None |
| CONFigure:GPRF:MEASurement1:RFSettings:MLOFfset <Offset> | Set Power Meter Mixer Level Offset. Varies the input level of the mixer in the analyzer path in dB. | Number |
| CONFigure:GPRF:MEASurement1:RFSettings:MLOFfset? | Query Power Meter Mixer Level Offset. Reads back the setting: varies the input level of the mixer in the analyzer path in dB. | None |
| CONFigure:GPRF:MEASurement1:RFSettings:FOFFset <Offset> | Set Power Meter Frequency Offset. Sets a frequency offset added to the analyzer center frequency in Hz. | Number |
| CONFigure:GPRF:MEASurement1:RFSettings:FOFFset? | Query Power Meter Frequency Offset. Reads a frequency offset added to the analyzer center frequency in Hz. | None |
| CONFigure:GPRF:MEASurement1:POWer:MODE <Mode> | Set Power Measurement Mode. Selects power or statistic (CCDF) measurement mode. | Text: POWer,STATistic |
| CONFigure:GPRF:MEASurement1:POWer:MODE? | Query Power Measurement Mode. Reads the selection: power or statistic (CCDF) measurement mode. | None |
| CONFigure:GPRF:MEASurement1:POWer:REPetition <Repetition> | Set Power Repetition. Selects single-shot or continuous power measurement. | Text: SINGleshot,CONTinuous |
| CONFigure:GPRF:MEASurement1:POWer:REPetition? | Query Power Repetition. Reads the selection: single-shot or continuous power measurement. | None |
| CONFigure:GPRF:MEASurement1:POWer:SCOunt <Count> | Set Power Statistic Count. Sets the number of measurement intervals per single shot. | Number |
| CONFigure:GPRF:MEASurement1:POWer:SCOunt? | Query Power Statistic Count. Reads the number of measurement intervals per single shot. | None |
| CONFigure:GPRF:MEASurement1:POWer:MLENgth <Seconds> | Set Power Measurement Length. Sets the length of the power evaluation interval in seconds. | Number |
| CONFigure:GPRF:MEASurement1:POWer:MLENgth? | Query Power Measurement Length. Reads the length of the power evaluation interval in seconds. | None |
| CONFigure:GPRF:MEASurement1:POWer:SLENgth <Seconds> | Set Power Step Length. Sets the time between the beginning of two consecutive measurement lengths in seconds. | Number |
| CONFigure:GPRF:MEASurement1:POWer:SLENgth? | Query Power Step Length. Reads the time between the beginning of two consecutive measurement lengths in seconds. | None |
| CONFigure:GPRF:MEASurement1:POWer:TOUT <Seconds> | Set Power Timeout. Defines a timeout for the power measurement in seconds. | Number |
| CONFigure:GPRF:MEASurement1:POWer:TOUT? | Query Power Timeout. Reads the timeout for the power measurement in seconds. | None |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:FSPan <Span> | Set FFT Span. Sets the frequency span of the FFT spectrum analyzer in Hz (rounded to allowed spans). | Number |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:FSPan? | Query FFT Span. Reads the frequency span of the FFT spectrum analyzer in Hz (rounded to allowed spans). | None |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:FFTLength <Length> | Set FFT Length. Selects the number of samples recorded per measurement interval. | Number: 1024,2048,4096,8192,16384 |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:FFTLength? | Query FFT Length. Reads the selected number of samples recorded per measurement interval. | None |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:DETector <Detector> | Set FFT Detector. Selects the detector used to build the FFT spectrum trace. | Text: PEAK,RMS |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:DETector? | Query FFT Detector. Reads the selected detector used to build the FFT spectrum trace. | None |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:AMODe <Mode> | Set FFT Averaging Mode. Selects linear or logarithmic averaging of the average trace. | Text: LINear,LOGarithmic |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:AMODe? | Query FFT Averaging Mode. Reads the selection: linear or logarithmic averaging of the average trace. | None |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:REPetition <Repetition> | Set FFT Repetition. Selects single-shot or continuous FFT measurement. | Text: SINGleshot,CONTinuous |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:REPetition? | Query FFT Repetition. Reads the selection: single-shot or continuous FFT measurement. | None |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:SCOunt <Count> | Set FFT Statistic Count. Sets the statistic count of the FFT measurement. | Number |
| CONFigure:GPRF:MEASurement1:FFTSanalyzer:SCOunt? | Query FFT Statistic Count. Reads the statistic count of the FFT measurement. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:CENTer <Frequency> | Set Spectrum Center Frequency. Sets the center frequency of the spectrum analyzer in Hz. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:CENTer? | Query Spectrum Center Frequency. Reads the center frequency of the spectrum analyzer in Hz. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:SPAN <Span> | Set Spectrum Span. Sets the frequency span of the spectrum analyzer in Hz. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:SPAN? | Query Spectrum Span. Reads the frequency span of the spectrum analyzer in Hz. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:SPAN:MODE <Mode> | Set Spectrum Span Mode. Selects frequency sweep or zero span mode. | Text: FSWeep,ZSPan |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:SPAN:MODE? | Query Spectrum Span Mode. Reads the selection: frequency sweep or zero span mode. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:STARt <Frequency> | Set Spectrum Start Frequency. Sets the start frequency of the sweep in Hz. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:STARt? | Query Spectrum Start Frequency. Reads the start frequency of the sweep in Hz. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:STOP <Frequency> | Set Spectrum Stop Frequency. Sets the stop frequency of the sweep in Hz. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:STOP? | Query Spectrum Stop Frequency. Reads the stop frequency of the sweep in Hz. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:RBW <RBW> | Set Spectrum RBW. Sets the resolution bandwidth of the frequency sweep in Hz. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:RBW? | Query Spectrum RBW. Reads the resolution bandwidth of the frequency sweep in Hz. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:RBW:AUTO ON | Turn On Spectrum RBW Auto. Couples the RBW automatically to the span. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:RBW:AUTO OFF | Turn Off Spectrum RBW Auto. Uses the manually set RBW. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:VBW <VBW> | Set Spectrum VBW. Sets the video bandwidth of the frequency sweep in Hz. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:VBW? | Query Spectrum VBW. Reads the video bandwidth of the frequency sweep in Hz. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:SWT <Seconds> | Set Spectrum Sweep Time. Sets the sweep time in seconds. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:FSWeep:SWT? | Query Spectrum Sweep Time. Reads the sweep time in seconds. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:AMODe <Mode> | Set Spectrum Averaging Mode. Selects linear or logarithmic trace averaging. | Text: LINear,LOGarithmic |
| CONFigure:GPRF:MEASurement1:SPECtrum:AMODe? | Query Spectrum Averaging Mode. Reads the selection: linear or logarithmic trace averaging. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:REPetition <Repetition> | Set Spectrum Repetition. Selects single-shot or continuous spectrum measurement. | Text: SINGleshot,CONTinuous |
| CONFigure:GPRF:MEASurement1:SPECtrum:REPetition? | Query Spectrum Repetition. Reads the selection: single-shot or continuous spectrum measurement. | None |
| CONFigure:GPRF:MEASurement1:SPECtrum:SCOunt <Count> | Set Spectrum Statistic Count. Sets the statistic count of the spectrum measurement. | Number |
| CONFigure:GPRF:MEASurement1:SPECtrum:SCOunt? | Query Spectrum Statistic Count. Reads the statistic count of the spectrum measurement. | None |
| CONFigure:NRMMw:MEASurement1:BAND <Band> | Set NR FR2 Meas Band. Selects the NR FR2 operating band. | Text: B257,B258,B259,B260,B261,B262 |
| CONFigure:NRMMw:MEASurement1:BAND? | Query NR FR2 Meas Band. Reads the selected NR FR2 operating band. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:DMODe <Mode> | Set NR FR2 Meas Duplex Mode. Selects the duplex mode. | Text: FDD,TDD |
| CONFigure:NRMMw:MEASurement1:MEValuation:DMODe? | Query NR FR2 Meas Duplex Mode. Reads the selected duplex mode. | None |
| CONFigure:NRMMw:MEASurement1:FREQuency <Frequency> | Set NR FR2 Meas Carrier Frequency. Sets the center frequency of the carrier in Hz. | Number |
| CONFigure:NRMMw:MEASurement1:FREQuency? | Query NR FR2 Meas Carrier Frequency. Reads the center frequency of the carrier in Hz. | None |
| CONFigure:NRMMw:MEASurement1:CBANdwidth <Bandwidth> | Set NR FR2 Meas Channel Bandwidth. Selects the channel bandwidth (50 to 400 MHz). | Text: B050,B100,B200,B400 |
| CONFigure:NRMMw:MEASurement1:CBANdwidth? | Query NR FR2 Meas Channel Bandwidth. Reads the selected channel bandwidth (50 to 400 MHz). | None |
| CONFigure:NRMMw:MEASurement1:CCALl:TXBWidth:SCSPacing <Spacing> | Set NR FR2 Meas Subcarrier Spacing. Selects the subcarrier spacing of the TX bandwidth. | Text: S60K,S120k |
| CONFigure:NRMMw:MEASurement1:CCALl:TXBWidth:SCSPacing? | Query NR FR2 Meas Subcarrier Spacing. Reads the selected subcarrier spacing of the TX bandwidth. | None |
| CONFigure:NRMMw:MEASurement1:PLCid <Cell_ID> | Set NR FR2 Meas Physical Cell ID. Sets the physical layer cell ID. | Number: 0,1007 |
| CONFigure:NRMMw:MEASurement1:PLCid? | Query NR FR2 Meas Physical Cell ID. Reads the physical layer cell ID. | None |
| CONFigure:NRMMw:MEASurement1:RFSettings:FREQuency <Frequency> | Set NR FR2 Meas Frequency. Sets the analyzer center frequency in Hz. | Number |
| CONFigure:NRMMw:MEASurement1:RFSettings:FREQuency? | Query NR FR2 Meas Frequency. Reads the analyzer center frequency in Hz. | None |
| CONFigure:NRMMw:MEASurement1:RFSettings:ENPower <Power> | Set NR FR2 Meas Expected Power. Sets the expected nominal power of the measured signal in dBm. | Number |
| CONFigure:NRMMw:MEASurement1:RFSettings:ENPower? | Query NR FR2 Meas Expected Power. Reads the expected nominal power of the measured signal in dBm. | None |
| CONFigure:NRMMw:MEASurement1:RFSettings:UMARgin <Margin> | Set NR FR2 Meas User Margin. Sets the user margin added to the expected nominal power in dB. | Number |
| CONFigure:NRMMw:MEASurement1:RFSettings:UMARgin? | Query NR FR2 Meas User Margin. Reads the user margin added to the expected nominal power in dB. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:SCONdition <Condition> | Set NR FR2 Meas Stop Condition. Defines whether the measurement stops on a limit failure. | Text: NONE,SLFail |
| CONFigure:NRMMw:MEASurement1:MEValuation:SCONdition? | Query NR FR2 Meas Stop Condition. Reads whether the measurement stops on a limit failure. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:REPetition <Repetition> | Set NR FR2 Meas Repetition. Selects single-shot or continuous multi-evaluation measurement. | Text: SINGleshot,CONTinuous |
| CONFigure:NRMMw:MEASurement1:MEValuation:REPetition? | Query NR FR2 Meas Repetition. Reads the selection: single-shot or continuous multi-evaluation measurement. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:SCOunt:MODulation <Count> | Set NR FR2 Meas Modulation Count. Sets the statistic count (measurement intervals per single shot) for modulation results. | Number |
| CONFigure:NRMMw:MEASurement1:MEValuation:SCOunt:MODulation? | Query NR FR2 Meas Modulation Count. Reads the statistic count (measurement intervals per single shot) for modulation results. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:SCOunt:POWer <Count> | Set NR FR2 Meas Power Count. Sets the statistic count (measurement intervals per single shot) for power results. | Number |
| CONFigure:NRMMw:MEASurement1:MEValuation:SCOunt:POWer? | Query NR FR2 Meas Power Count. Reads the statistic count (measurement intervals per single shot) for power results. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:TOUT <Seconds> | Set NR FR2 Meas Timeout. Defines a timeout for the measurement in seconds. | Number |
| CONFigure:NRMMw:MEASurement1:MEValuation:TOUT? | Query NR FR2 Meas Timeout. Reads the timeout for the measurement in seconds. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:MOEXception ON | Turn On NR FR2 Meas On Exception. Results identified as faulty are never rejected. | None |
| CONFigure:NRMMw:MEASurement1:MEValuation:MOEXception OFF | Turn Off NR FR2 Meas On Exception. Faulty results are rejected. | None |
| CONFigure:UWB:MEASurement1:RFSettings:CHANnel <Channel> | Set UWB Meas Channel. Selects the UWB channel number. | Number |
| CONFigure:UWB:MEASurement1:RFSettings:CHANnel? | Query UWB Meas Channel. Reads the selected UWB channel number. | None |
| CONFigure:UWB:MEASurement1:RFSettings:FREQuency <Frequency> | Set UWB Meas Frequency. Sets the analyzer center frequency in Hz. | Number |
| CONFigure:UWB:MEASurement1:RFSettings:FREQuency? | Query UWB Meas Frequency. Reads the analyzer center frequency in Hz. | None |
| CONFigure:UWB:MEASurement1:RFSettings:ENPower <Power> | Set UWB Meas Expected Power. Sets the expected nominal power of the measured signal in dBm. | Number |
| CONFigure:UWB:MEASurement1:RFSettings:ENPower? | Query UWB Meas Expected Power. Reads the expected nominal power of the measured signal in dBm. | None |
| CONFigure:UWB:MEASurement1:RFSettings:UMARgin <Margin> | Set UWB Meas User Margin. Sets the user margin added to the expected nominal power in dB. | Number |
| CONFigure:UWB:MEASurement1:RFSettings:UMARgin? | Query UWB Meas User Margin. Reads the user margin added to the expected nominal power in dB. | None |
| CONFigure:UWB:MEASurement1:RFSettings:EATTenuation <Atten> | Set UWB Meas External Attenuation. Sets the external attenuation (or gain if negative) at the RF input in dB. | Number |
| CONFigure:UWB:MEASurement1:RFSettings:EATTenuation? | Query UWB Meas External Attenuation. Reads the external attenuation (or gain if negative) at the RF input in dB. | None |
| CONFigure:UWB:MEASurement1:MEValuation:PPDU:NUMBer <Number> | Set UWB Meas PPDU Number. Sets the number of PPDUs to be evaluated. | Number |
| CONFigure:UWB:MEASurement1:MEValuation:PPDU:NUMBer? | Query UWB Meas PPDU Number. Reads the number of PPDUs to be evaluated. | None |
| CONFigure:UWB:MEASurement1:MEValuation:REPetition <Repetition> | Set UWB Meas Repetition. Selects single-shot or continuous UWB measurement. | Text: SINGleshot,CONTinuous |
| CONFigure:UWB:MEASurement1:MEValuation:REPetition? | Query UWB Meas Repetition. Reads the selection: single-shot or continuous UWB measurement. | None |
| CONFigure:UWB:MEASurement1:MEValuation:SCOunt <Count> | Set UWB Meas Statistic Count. Sets the statistic count for TX modulation and jitter results. | Number |
| CONFigure:UWB:MEASurement1:MEValuation:SCOunt? | Query UWB Meas Statistic Count. Reads the statistic count for TX modulation and jitter results. | None |
| CONFigure:UWB:MEASurement1:MEValuation:TOUT <Seconds> | Set UWB Meas Timeout. Defines a timeout for the measurement in seconds. | Number |
| CONFigure:UWB:MEASurement1:MEValuation:TOUT? | Query UWB Meas Timeout. Reads the timeout for the measurement in seconds. | None |
| CONFigure:UWB:MEASurement1:MEValuation:SCONdition <Condition> | Set UWB Meas Stop Condition. Defines whether the measurement stops on a limit failure. | Text: NONE,SLFail |
| CONFigure:UWB:MEASurement1:MEValuation:SCONdition? | Query UWB Meas Stop Condition. Reads whether the measurement stops on a limit failure. | None |
| CONFigure:UWB:MEASurement1:MEValuation:MOEXception ON | Turn On UWB Meas On Exception. Results identified as faulty are never rejected. | None |
| CONFigure:UWB:MEASurement1:MEValuation:MOEXception OFF | Turn Off UWB Meas On Exception. Faulty results are rejected. | None |
| Command | What it does | Arguments |
|---|---|---|
| SOURce:GPRF:GENerator1:STATe ON | Turn On RF Generator. Turns the GPRF generator on. | None |
| SOURce:GPRF:GENerator1:STATe OFF | Turn Off RF Generator. Turns the GPRF generator off. | None |
| SOURce:GPRF:GENerator1:STATe? | Query RF Generator. Queries the generator state (OFF, PENDing, ON). | None |
| SOURce:GPRF:GENerator1:BBMode <Mode> | Set RF Generator Baseband Mode. Selects the generator baseband mode: unmodulated CW, dual tone or ARB waveform playback. | Text: CW,DTONe,ARB |
| SOURce:GPRF:GENerator1:BBMode? | Query RF Generator Baseband Mode. Reads the selected generator baseband mode: unmodulated CW, dual tone or ARB waveform playback. | None |
| SOURce:GPRF:GENerator1:RFSettings:FREQuency <Frequency> | Set RF Generator Frequency. Sets the frequency of the unmodulated RF carrier in Hz. | Number |
| SOURce:GPRF:GENerator1:RFSettings:FREQuency? | Query RF Generator Frequency. Reads the frequency of the unmodulated RF carrier in Hz. | None |
| SOURce:GPRF:GENerator1:RFSettings:LEVel <Level> | Set RF Generator Level. Sets the base RMS level of the RF generator in dBm. | Number |
| SOURce:GPRF:GENerator1:RFSettings:LEVel? | Query RF Generator Level. Reads the base RMS level of the RF generator in dBm. | None |
| SOURce:GPRF:GENerator1:RFSettings:EATTenuation <Atten> | Set RF Generator External Attenuation. Sets the external attenuation (or gain if negative) at the output connector in dB. | Number |
| SOURce:GPRF:GENerator1:RFSettings:EATTenuation? | Query RF Generator External Attenuation. Reads the external attenuation (or gain if negative) at the output connector in dB. | None |
| SOURce:GPRF:GENerator1:RFSettings:DGAin <Gain> | Set RF Generator Digital Gain. Sets the digital gain of the RF generator in dB. | Number |
| SOURce:GPRF:GENerator1:RFSettings:DGAin? | Query RF Generator Digital Gain. Reads the digital gain of the RF generator in dB. | None |
| SOURce:GPRF:GENerator1:RFSettings:PEPower? | Query RF Generator PEP. Queries the peak envelope power of the generated signal in dBm. | None |
| SOURce:GPRF:GENerator1:ARB:FILE <Filename> | Set ARB File. Selects the ARB waveform file (.wv) for ARB baseband mode. | Text |
| SOURce:GPRF:GENerator1:ARB:FILE? | Query ARB File. Reads the selected ARB waveform file (.wv) for ARB baseband mode. | None |
| SOURce:GPRF:GENerator1:ARB:REPetition <Repetition> | Set ARB Repetition. Selects continuous or single (counted cycles) ARB playback. | Text: CONTinuous,SINGle |
| SOURce:GPRF:GENerator1:ARB:REPetition? | Query ARB Repetition. Reads the selection: continuous or single (counted cycles) ARB playback. | None |
| SOURce:GPRF:GENerator1:ARB:CYCLes <Cycles> | Set ARB Cycles. Sets the number of ARB playback cycles in single repetition mode. | Number |
| SOURce:GPRF:GENerator1:ARB:CYCLes? | Query ARB Cycles. Reads the number of ARB playback cycles in single repetition mode. | None |
| SOURce:GPRF:GENerator1:ARB:FOFFset <Offset> | Set ARB Frequency Offset. Sets the baseband frequency offset for ARB playback in Hz. | Number |
| SOURce:GPRF:GENerator1:ARB:FOFFset? | Query ARB Frequency Offset. Reads the baseband frequency offset for ARB playback in Hz. | None |
| SOURce:GPRF:GENerator1:ARB:CRATe? | Query ARB Clock Rate. Queries the clock rate of the loaded waveform file in Hz. | None |
| SOURce:GPRF:GENerator1:ARB:SAMPles? | Query ARB Samples. Queries the number of samples in the loaded waveform file. | None |
| SOURce:GPRF:GENerator1:ARB:POFFset? | Query ARB Peak Offset. Queries the peak offset of the loaded waveform file in dB. | None |
| SOURce:GPRF:GENerator1:ARB:LOFFset? | Query ARB Level Offset. Queries the level offset (crest factor) of the loaded waveform file in dB. | None |
| SOURce:GPRF:GENerator1:ARB:STATus? | Query ARB Status. Queries the number of the ARB segment currently processed. | None |
| SOURce:GPRF:GENerator1:DTONe:RATio <Ratio> | Set Dual Tone Ratio. Sets the RMS level ratio between the two dual-tone signals in dB. | Number |
| SOURce:GPRF:GENerator1:DTONe:RATio? | Query Dual Tone Ratio. Reads the RMS level ratio between the two dual-tone signals in dB. | None |
| SOURce:GPRF:GENerator1:DTONe:OFRequency1 <Offset> | Set Dual Tone Offset Frequency 1. Sets the offset frequency of dual-tone source 1 relative to the RF frequency in Hz. | Number |
| SOURce:GPRF:GENerator1:DTONe:OFRequency1? | Query Dual Tone Offset Frequency 1. Reads the offset frequency of dual-tone source 1 relative to the RF frequency in Hz. | None |
| SOURce:GPRF:GENerator1:DTONe:OFRequency2 <Offset> | Set Dual Tone Offset Frequency 2. Sets the offset frequency of dual-tone source 2 relative to the RF frequency in Hz. | Number |
| SOURce:GPRF:GENerator1:DTONe:OFRequency2? | Query Dual Tone Offset Frequency 2. Reads the offset frequency of dual-tone source 2 relative to the RF frequency in Hz. | None |
| SOURce:GPRF:GENerator1:DTONe:LEVel1? | Query Dual Tone Level 1. Queries the output level of dual-tone source 1 in dBm. | None |
| SOURce:GPRF:GENerator1:DTONe:LEVel2? | Query Dual Tone Level 2. Queries the output level of dual-tone source 2 in dBm. | None |
| Command | What it does | Arguments |
|---|---|---|
| FETCh:SELFtest:STATe? | Query Self Test State. Returns the self-test state (OFF, RUN, RDY). | None |
| FETCh:GPRF:MEASurement1:POWer:STATe? | Query Power Measurement State. Returns the GPRF power measurement state: OFF, RUN or RDY. | None |
| FETCh:GPRF:MEASurement1:POWer:AVERage? | Fetch Power Average. Returns the average RMS power results (one per segment) in dBm. | None |
| FETCh:GPRF:MEASurement1:POWer:CURRent? | Fetch Power Current. Returns the current RMS power results (one per segment) in dBm. | None |
| FETCh:GPRF:MEASurement1:POWer:MAXimum:CURRent? | Fetch Power Current Maximum. Returns the current-maximum power results in dBm. | None |
| FETCh:GPRF:MEASurement1:POWer:MINimum:CURRent? | Fetch Power Current Minimum. Returns the current-minimum power results in dBm. | None |
| FETCh:GPRF:MEASurement1:POWer:PEAK:MAXimum? | Fetch Power Peak Maximum. Returns the maximum peak power results in dBm. | None |
| FETCh:GPRF:MEASurement1:POWer:PEAK:MINimum? | Fetch Power Peak Minimum. Returns the minimum peak power results in dBm. | None |
| FETCh:GPRF:MEASurement1:POWer:SDEViation? | Fetch Power Standard Deviation. Returns the standard deviation of the power results in dB. | None |
| FETCh:GPRF:MEASurement1:FFTSanalyzer:STATe? | Query FFT Measurement State. Returns the FFT spectrum analyzer measurement state: OFF, RUN or RDY. | None |
| FETCh:GPRF:MEASurement1:FFTSanalyzer:POWer:AVERage? | Fetch FFT Power Average. Returns the average FFT spectrum trace (801 power values). | None |
| FETCh:GPRF:MEASurement1:FFTSanalyzer:PEAKs:AVERage? | Fetch FFT Peaks Average. Returns the peak search results (frequency, level pairs) of the average trace. | None |
| FETCh:GPRF:MEASurement1:SPECtrum:STATe? | Query Spectrum Measurement State. Returns the spectrum analyzer measurement state: OFF, RUN or RDY. | None |
| FETCh:GPRF:MEASurement1:SPECtrum:RMS:AVERage? | Fetch Spectrum RMS Average. Returns the average trace of the RMS detector. | None |
| FETCh:GPRF:MEASurement1:SPECtrum:MAXimum:MAXimum? | Fetch Spectrum Max Hold. Returns the max-hold trace of the maximum-peak detector. | None |
| FETCh:NRMMw:MEASurement1:MEValuation:STATe? | Query NR FR2 MultiEval State. Returns the NR FR2 multi-evaluation measurement state: OFF, RUN or RDY. | None |
| FETCh:NRMMw:MEASurement1:MEValuation:MODulation:AVERage? | Fetch NR FR2 Modulation Average. Returns the average modulation results. | None |
| FETCh:NRMMw:MEASurement1:MEValuation:ACLR:AVERage? | Fetch NR FR2 ACLR Average. Returns the relative ACLR values. | None |
| FETCh:NRMMw:MEASurement1:MEValuation:SEMask:AVERage? | Fetch NR FR2 Spectrum Emission Average. Returns the spectrum emission mask results. | None |
| FETCh:NRMMw:MEASurement1:MEValuation:PMONitor:AVERage? | Fetch NR FR2 Power Monitor Average. Returns the power monitor results. | None |
| FETCh:UWB:MEASurement1:MEValuation:STATe? | Query UWB MultiEval State. Returns the UWB multi-evaluation measurement state: OFF, RUN or RDY. | None |
| FETCh:UWB:MEASurement1:MEValuation:MODulation:AVERage? | Fetch UWB Modulation Average. Returns the average UWB modulation results of the first PPDU. | None |
| FETCh:UWB:MEASurement1:MEValuation:MODulation:FOFFset:AVERage? | Fetch UWB Frequency Offset Average. Returns the frequency error relative to the channel center in ppm. | None |
| FETCh:UWB:MEASurement1:MEValuation:MODulation:PLEVel:AVERage? | Fetch UWB Pulse Level Average. Returns the pulse levels relative to the SHR pulse level (FiRa). | None |
| FETCh:UWB:MEASurement1:MEValuation:MODulation:NMSE:AVERage? | Fetch UWB Pulse NMSE Average. Returns the pulse normalized mean square error. | None |
| FETCh:UWB:MEASurement1:MEValuation:MODulation:CCERor:AVERage? | Fetch UWB Chip Clock Error Average. Returns the chip clock error. | None |
| FETCh:UWB:MEASurement1:MEValuation:MODulation:SMACcuracy:AVERage? | Fetch UWB Symbol Modulation Accuracy. Returns the symbol modulation accuracy results. | None |
| Command | What it does | Arguments |
|---|---|---|
| SYSTem:BASE:REFerence:FREQuency:SOURce <Source> | Set Reference Frequency Source. Selects the reference frequency source: internal, external, or external with internal fallback. | Text: INTernal,EXTernal,EINTernal |
| SYSTem:BASE:REFerence:FREQuency:SOURce? | Query Reference Frequency Source. Reads the selected reference frequency source: internal, external, or external with internal fallback. | None |
| SYSTem:BASE:OPTion:LIST? | Query Installed Options. Returns the list of installed options, licenses and firmware applications. | None |
| SYSTem:COMMunicate:NET:IPADdress? | Query IP Address. Returns the IP address of the instrument LAN interface. | None |
| SYSTem:GENerator:ALL:OFF | All Generators Off. Switches off all running generators. | None |
| SYSTem:MEASurement:ALL:OFF | All Measurements Off. Switches off all running measurements. | None |
| SYSTem:RESet:BASE | Reset Base Settings. Resets the base settings. | None |
| SYSTem:RESet:ALL | Reset All Settings. Resets the base settings and all applications. | None |
| SYSTem:PRESet:ALL | Preset All Settings. Presets the base settings and all applications. | None |
| SYSTem:ERRor:ALL? | Read Error Queue. Returns all entries of the error queue and clears it. | None |
| SYSTem:ERRor:COUNt? | Read Error Count. Returns the number of entries in the error queue. | None |
| SYSTem:VERSion? | Read SCPI Version. Returns the SCPI version supported by the instrument. | None |
| Command | What it does | Arguments |
|---|---|---|
| ROUTe:GPRF:GENerator1:SPATh <Signal_Path> | Set RF Generator Signal Path. Selects the RF connection (signal path name from the catalog) used for the generated signal. | Text |
| ROUTe:GPRF:GENerator1:SPATh? | Query RF Generator Signal Path. Reads the selected RF connection (signal path name from the catalog) used for the generated signal. | None |
| ROUTe:GPRF:MEASurement1:SPATh <Signal_Path> | Set Power Meter Signal Path. Selects the RF connection (signal path name from the catalog) used by the GPRF measurement. | Text |
| ROUTe:GPRF:MEASurement1:SPATh? | Query Power Meter Signal Path. Reads the selected RF connection (signal path name from the catalog) used by the GPRF measurement. | None |
| ROUTe:NRMMw:MEASurement1:SPATh <Signal_Path> | Set NR FR2 Meas Signal Path. Selects the RF connection (remote radio head) used by the NR FR2 measurement. | Text |
| ROUTe:NRMMw:MEASurement1:SPATh? | Query NR FR2 Meas Signal Path. Reads the selected RF connection (remote radio head) used by the NR FR2 measurement. | None |
| ROUTe:UWB:MEASurement1:SPATh <Signal_Path> | Set UWB Meas Signal Path. Selects the RF connection used by the UWB measurement. | Text |
| ROUTe:UWB:MEASurement1:SPATh? | Query UWB Meas Signal Path. Reads the selected RF connection used by the UWB measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| CATalog:SYSTem:RRHead? | Query Remote Radio Heads. Returns the list of connected remote radio heads (R&S CMPHEAD). | None |
| CATalog:SYSTem:ATTenuation:CTABle? | Query Correction Tables. Returns the names of all correction tables. | None |
| CATalog:GPRF:GENerator1:SPATh? | Query Generator Signal Paths. Returns the names of the available RF connections for the generator. | None |
| CATalog:GPRF:MEASurement1:SPATh? | Query Measurement Signal Paths. Returns the names of the available RF connections for the GPRF measurement. | None |
| CATalog:TENVironment:SPATh? | Query Test Environment Paths. Returns all connection (signal path) names defined in the test environment. | None |
| CATalog:TENVironment:CONNectors? | Query Test Environment Connectors. Returns the names of all RF connectors of the test environment. | None |
| Command | What it does | Arguments |
|---|---|---|
| INIT:SELFtest | Start Self Test. Starts the instrument self-test. | None |
| INITiate:GPRF:MEASurement1:POWer | Start Power Measurement. Starts or restarts the GPRF power measurement (state RUN). | None |
| INITiate:GPRF:MEASurement1:FFTSanalyzer | Start FFT Measurement. Starts or restarts the FFT spectrum analyzer measurement (state RUN). | None |
| INITiate:GPRF:MEASurement1:SPECtrum | Start Spectrum Measurement. Starts or restarts the spectrum analyzer measurement (state RUN). | None |
| INITiate:NRMMw:MEASurement1:MEValuation | Start NR FR2 MultiEval. Starts or restarts the NR FR2 multi-evaluation measurement (state RUN). | None |
| INITiate:UWB:MEASurement1:MEValuation | Start UWB MultiEval. Starts or restarts the UWB multi-evaluation measurement (state RUN). | None |
| Command | What it does | Arguments |
|---|---|---|
| STOP:GPRF:MEASurement1:POWer | Stop Power Measurement. Halts the GPRF power measurement; results are kept (state RDY). | None |
| STOP:GPRF:MEASurement1:FFTSanalyzer | Stop FFT Measurement. Halts the FFT spectrum analyzer measurement; results are kept (state RDY). | None |
| STOP:GPRF:MEASurement1:SPECtrum | Stop Spectrum Measurement. Halts the spectrum analyzer measurement; results are kept (state RDY). | None |
| STOP:NRMMw:MEASurement1:MEValuation | Stop NR FR2 MultiEval. Halts the NR FR2 multi-evaluation measurement; results are kept (state RDY). | None |
| STOP:UWB:MEASurement1:MEValuation | Stop UWB MultiEval. Halts the UWB multi-evaluation measurement; results are kept (state RDY). | None |
| Command | What it does | Arguments |
|---|---|---|
| ABORt:GPRF:MEASurement1:POWer | Abort Power Measurement. Aborts the GPRF power measurement and releases resources (state OFF). | None |
| ABORt:GPRF:MEASurement1:FFTSanalyzer | Abort FFT Measurement. Aborts the FFT spectrum analyzer measurement and releases resources (state OFF). | None |
| ABORt:GPRF:MEASurement1:SPECtrum | Abort Spectrum Measurement. Aborts the spectrum analyzer measurement and releases resources (state OFF). | None |
| ABORt:NRMMw:MEASurement1:MEValuation | Abort NR FR2 MultiEval. Aborts the NR FR2 multi-evaluation measurement and releases resources (state OFF). | None |
| ABORt:UWB:MEASurement1:MEValuation | Abort UWB MultiEval. Aborts the UWB multi-evaluation measurement and releases resources (state OFF). | None |
| Command | What it does | Arguments |
|---|---|---|
| SENSe:BASE:REFerence:FREQuency:LOCKed? | Query Reference Frequency Locked. Queries whether the reference frequency is locked. | None |
| SENSe:BASE:TEMPerature:OPERating:INTernal? | Query Internal Temperature. Queries the internal operating temperature in degrees C. | None |
| SENSe:BASE:TEMPerature:OPERating:AMBient? | Query Ambient Temperature. Queries the ambient temperature in degrees C. | None |
| Command | What it does | Arguments |
|---|---|---|
| CREate:SYSTem:ATTenuation:CTABle <Table_Name>, <Freq_Att_Pairs> | Create Correction Table. Creates a frequency-dependent attenuation table; pairs are <Frequency Hz>, <Attenuation dB>. | Text; Text |
| CREate:TENVironment:SPATh <Signal_Path>, <Antenna_Name>, <Connector_Name> | Create Signal Path. Creates a named connection between a DUT antenna name and an RF connector of the tester. | Text; Text; Text |
| Command | What it does | Arguments |
|---|---|---|
| DELete:SYSTem:ATTenuation:CTABle <Table_Name> | Delete Correction Table. Deletes a correction table. | Text |
| DELete:TENVironment:SPATh <Signal_Path> | Delete Signal Path. Deletes a named connection from the test environment. | Text |
| Command | What it does | Arguments |
|---|---|---|
| ADD:TENVironment:SPATh:CTABle:RX <Signal_Path>, <Table_Name> | Assign RX Correction Table. Assigns a correction table to the RX direction of a connection. | Text; Text |
| ADD:TENVironment:SPATh:CTABle:TX <Signal_Path>, <Table_Name> | Assign TX Correction Table. Assigns a correction table to the TX direction of a connection. | Text; Text |
| Command | What it does | Arguments |
|---|---|---|
| READ:GPRF:MEASurement1:POWer:AVERage? | Measure Power Average. Starts a single-shot power measurement and returns the average RMS power in dBm. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear Status. Clears all event registers and the error queue. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
| *OPC | Set Operation Complete Bit. Sets the operation complete bit in the event status register when all pending operations are complete. | None |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
| *ESR? | Query Event Status Register. Returns and clears the standard event status register. | None |
| *ESE <Mask> | Set Event Status Enable. Sets the event status enable register (0 to 255). | Number: 0,255 |
| *STB? | Query Status Byte. Returns the status byte. | None |
| *SRE <Mask> | Set Service Request Enable. Sets the service request enable register (0 to 255). | Number: 0,255 |
| *SAV <Memory> | Save State. Stores the current settings in an intermediate memory. | Number |
| *RCL <Memory> | Recall State. Recalls settings from an intermediate memory. | Number |
| *TRG | Trigger Bus. Generates a software (bus) trigger event. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the CMP200 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rohde & Schwarz's programming manual: check it before you rely on an edge case. Last updated September 27, 2026.
Yes. The Rohde & Schwarz CMP200 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 242 SCPI commands for it: 125 queries that read values or state, and 117 settings and actions.
Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, SOURce:GPRF:GENerator1:STATe ON and CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?.
CONFigure:GPRF:MEASurement1:RFSettings:FREQuency? (query power meter frequency). Reads the center frequency of the RF analyzer in Hz. The full list of queries is in the command reference on this page, grouped by subsystem.
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Rohde & Schwarz CMP200 through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.