Radio Test Set · SCPI command reference

Rohde & Schwarz CMA180 SCPI commands

The Rohde & Schwarz CMA180 radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 145 commands for it, 72 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 CMA180 on a real bench.

Commands
145
Queries
72
Subsystems
12
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz CMA180 and writes the report from the measured results.

Get started

Control the Rohde & Schwarz CMA180 from Python

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 CMA180's VISA address

# Paste the address of your Rohde & Schwarz CMA180 (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:AFRF:GENerator1:STATe ON")  # Turn On Generator
print(inst.query("CONFigure:AFRF:MEASurement1:RFSettings:FREQuency?"))  # Read Analyzer Frequency

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz CMA180 and writes the report from the measured results.

Get started

Run a CMA180 test without writing code

Describe the test in a sentence, for example “turn on generator on the CMA180, then read analyzer 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.

Get started

SCPI command reference

145 commands in 12 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

Configure (CONFigure) (58)

CommandWhat it doesArguments
CONFigure:BASE:SCENario <Scenario>Set Test Scenario. Selects the test scenario (analog TX/RX/duplex/spectrum/expert/audio/avionics or digital); select it before configuring an application.Text: TXTest,RXTest,DXTest,SPECtrum,EXPert,AUDio,AVIonics,DTXTest,DRXTest,DSPectrum,DEXPert
CONFigure:BASE:SCENario?Read Test Scenario. Reads the selected test scenario (analog TX/RX/duplex/spectrum/expert/audio/avionics or digital); select it before configuring an application.None
CONFigure:AFRF:MEASurement1:RFSettings:FREQuency <Frequency>Set Analyzer Frequency. Sets the center frequency of the RF analyzer in Hz (100 kHz to 3 GHz).Number: 100E3,3E9
CONFigure:AFRF:MEASurement1:RFSettings:FREQuency?Read Analyzer Frequency. Reads the center frequency of the RF analyzer in Hz (100 kHz to 3 GHz).None
CONFigure:AFRF:MEASurement1:RFSettings:CONNector <Connector>Set Analyzer Connector. Selects the RF input connector: RF COM or RF IN.Text: RFCom,RFIN
CONFigure:AFRF:MEASurement1:RFSettings:CONNector?Read Analyzer Connector. Reads the selected RF input connector: RF COM or RF IN.None
CONFigure:AFRF:MEASurement1:RFSettings:ENPower <Power>Set Analyzer Expected Power. Sets the expected nominal power of the measured RF signal in dBm.Number
CONFigure:AFRF:MEASurement1:RFSettings:ENPower?Read Analyzer Expected Power. Reads the expected nominal power of the measured RF signal in dBm.None
CONFigure:AFRF:MEASurement1:RFSettings:EATTenuation <Atten>Set Analyzer External Attenuation. Sets the external attenuation in the RF input path in dB (negative values = gain).Number: -50,90
CONFigure:AFRF:MEASurement1:RFSettings:EATTenuation?Read Analyzer External Attenuation. Reads the external attenuation in the RF input path in dB (negative values = gain).None
CONFigure:AFRF:MEASurement1:DEModulation <Type>Set Demodulation Type. Selects the type of demodulation.Text: FM,AM,PM,USB,LSB,FMSTereo
CONFigure:AFRF:MEASurement1:DEModulation?Read Demodulation Type. Reads the selected type of demodulation.None
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:LPASs <Filter>Set Demod Lowpass Filter. Configures the lowpass filter in the demodulation path (cutoff 255 Hz to 15 kHz).Text: OFF,F255,F3K,F3K4,F4K,F15K
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:LPASs?Read Demod Lowpass Filter. Reads back the setting: configures the lowpass filter in the demodulation path (cutoff 255 Hz to 15 kHz).None
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:HPASs <Filter>Set Demod Highpass Filter. Configures the highpass filter in the demodulation path (cutoff 6, 50 or 300 Hz).Text: OFF,F6,F50,F300
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:HPASs?Read Demod Highpass Filter. Reads back the setting: configures the highpass filter in the demodulation path (cutoff 6, 50 or 300 Hz).None
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:WEIGhting <Filter>Set Demod Weighting Filter. Selects the weighting filter in the demodulation path.Text: OFF,AWEighting,CCITt,CMESsage
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:WEIGhting?Read Demod Weighting Filter. Reads the selected weighting filter in the demodulation path.None
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:DEEMphasis <Filter>Set Demod Deemphasis. Configures the de-emphasis filter (time constant 50, 75 or 750 us).Text: OFF,T50,T75,T750
CONFigure:AFRF:MEASurement1:DEModulation:FILTer:DEEMphasis?Read Demod Deemphasis. Reads back the setting: configures the de-emphasis filter (time constant 50, 75 or 750 us).None
CONFigure:AFRF:MEASurement1:AIN1:ENABle ONTurn On AF1 Input. Enables the AF1 IN connector.None
CONFigure:AFRF:MEASurement1:AIN1:ENABle OFFTurn Off AF1 Input. Disables the AF1 IN connector.None
CONFigure:AFRF:MEASurement1:AIN1:MLEVel <Level>Set AF1 Input Max Level. Sets the maximum expected level of the AF1 IN connector in V (used when auto ranging is disabled).Number
CONFigure:AFRF:MEASurement1:AIN1:MLEVel?Read AF1 Input Max Level. Reads the maximum expected level of the AF1 IN connector in V (used when auto ranging is disabled).None
CONFigure:AFRF:MEASurement1:AIN1:ICOupling <Coupling>Set AF1 Input Coupling. Selects AC or DC coupling of the AF1 IN connector.Text: AC,DC
CONFigure:AFRF:MEASurement1:AIN1:ICOupling?Read AF1 Input Coupling. Reads the selection: AC or DC coupling of the AF1 IN connector.None
CONFigure:AFRF:MEASurement1:MEValuation:REPetition <Repetition>Set Meas Repetition. Selects single-shot or continuous multi-evaluation measurement.Text: SINGleshot,CONTinuous
CONFigure:AFRF:MEASurement1:MEValuation:REPetition?Read Meas Repetition. Reads the selection: single-shot or continuous multi-evaluation measurement.None
CONFigure:AFRF:MEASurement1:MEValuation:TOUT <Seconds>Set Meas Timeout. Defines a timeout for the measurement in seconds.Number
CONFigure:AFRF:MEASurement1:MEValuation:TOUT?Read Meas Timeout. Reads the timeout for the measurement in seconds.None
CONFigure:AFRF:MEASurement1:MEValuation:RF:SCOunt <Count>Set RF Statistic Count. Sets the number of measurement intervals per cycle for RF results.Number: 1,1000
CONFigure:AFRF:MEASurement1:MEValuation:RF:SCOunt?Read RF Statistic Count. Reads the number of measurement intervals per cycle for RF results.None
CONFigure:AFRF:MEASurement1:MEValuation:AF:SCOunt <Count>Set AF Statistic Count. Sets the number of measurement intervals per cycle for AF results.Number: 1,1000
CONFigure:AFRF:MEASurement1:MEValuation:AF:SCOunt?Read AF Statistic Count. Reads the number of measurement intervals per cycle for AF results.None
CONFigure:AFRF:MEASurement1:FREQuency:COUNter:MODE <Mode>Set Frequency Counter Mode. Selects whether the frequency search procedure is used in analog or digital scenarios.Text: ANALog,DIGital
CONFigure:AFRF:MEASurement1:FREQuency:COUNter:MODE?Read Frequency Counter Mode. Reads the selection: whether the frequency search procedure is used in analog or digital scenarios.None
CONFigure:GPRF:MEASurement1:RFSettings:FREQuency <Frequency>Set Power Meter Frequency. Sets the center frequency of the GPRF power measurement in Hz.Number
CONFigure:GPRF:MEASurement1:RFSettings:FREQuency?Read Power Meter Frequency. Reads the center frequency of the GPRF power measurement in Hz.None
CONFigure:GPRF:MEASurement1:RFSettings:CONNector <Connector>Set Power Meter Connector. Selects the RF input connector of the GPRF measurement.Text: RFCom,RFIN
CONFigure:GPRF:MEASurement1:RFSettings:CONNector?Read Power Meter Connector. Reads the selected RF input connector of the GPRF measurement.None
CONFigure:GPRF:MEASurement1:RFSettings:ENPower <Power>Set Power Meter Expected Power. Sets the expected nominal input power in dBm.Number
CONFigure:GPRF:MEASurement1:RFSettings:ENPower?Read Power Meter Expected Power. Reads the expected nominal input power in dBm.None
CONFigure:GPRF:MEASurement1:RFSettings:EATTenuation <Atten>Set Power Meter External Attenuation. Sets the external input attenuation in dB.Number: -50,90
CONFigure:GPRF:MEASurement1:RFSettings:EATTenuation?Read Power Meter External Attenuation. Reads the external input attenuation in dB.None
CONFigure:GPRF:MEASurement1:POWer:FILTer:TYPE <Type>Set Power Filter Type. Selects the IF filter type of the power measurement.Text: BANDpass,GAUSs
CONFigure:GPRF:MEASurement1:POWer:FILTer:TYPE?Read Power Filter Type. Reads the selected IF filter type of the power measurement.None
CONFigure:GPRF:MEASurement1:POWer:MLENgth <Seconds>Set Power Measurement Length. Sets the power measurement length in seconds.Number
CONFigure:GPRF:MEASurement1:POWer:MLENgth?Read Power Measurement Length. Reads the power measurement length in seconds.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?Read Power Repetition. Reads the selection: single-shot or continuous power measurement.None
CONFigure:GPRF:MEASurement1:POWer:SCOunt <Count>Set Power Statistic Count. Sets the statistic count of the power measurement.Number
CONFigure:GPRF:MEASurement1:POWer:SCOunt?Read Power Statistic Count. Reads the statistic count of the power measurement.None
CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:CENTer <Frequency>Set Spectrum Center Frequency. Sets the spectrum analyzer center frequency in Hz.Number
CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:CENTer?Read Spectrum Center Frequency. Reads the spectrum analyzer center frequency in Hz.None
CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:SPAN <Span>Set Spectrum Span. Sets the spectrum analyzer span in Hz.Number
CONFigure:GPRF:MEASurement1:SPECtrum:FREQuency:SPAN?Read Spectrum Span. Reads the spectrum analyzer span in Hz.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?Read Spectrum Repetition. Reads the selection: single-shot or continuous spectrum measurement.None

Source (SOURce) (38)

CommandWhat it doesArguments
SOURce:AFRF:GENerator1:STATe ONTurn On Generator. Starts the AFRF generator.None
SOURce:AFRF:GENerator1:STATe OFFTurn Off Generator. Stops the AFRF generator.None
SOURce:AFRF:GENerator1:STATe?Read Generator. Reads the AFRF generator state (OFF, ON, PENDing).None
SOURce:AFRF:GENerator1:MSCHeme <Scheme>Set RF Signal Mode. Selects the RF modulation scheme for analog scenarios (FM, AM, PM, SSB upper/lower, CW, FM stereo, ARB).Text: FM,AM,PM,USB,LSB,CW,FMSTereo,ARB
SOURce:AFRF:GENerator1:MSCHeme?Read RF Signal Mode. Reads the selected RF modulation scheme for analog scenarios (FM, AM, PM, SSB upper/lower, CW, FM stereo, ARB).None
SOURce:AFRF:GENerator1:DSOurce <Source>Set Digital Source. Selects the data source for digital scenarios.Text: DMR,ARB,NXDN,POCSag,P25,UDEFined,ZIGBee,DPMR
SOURce:AFRF:GENerator1:DSOurce?Read Digital Source. Reads the selected data source for digital scenarios.None
SOURce:AFRF:GENerator1:RFSettings:FREQuency <Frequency>Set Generator Frequency. Sets the center frequency of the RF carrier in Hz (100 kHz to 3 GHz).Number: 100E3,3E9
SOURce:AFRF:GENerator1:RFSettings:FREQuency?Read Generator Frequency. Reads the center frequency of the RF carrier in Hz (100 kHz to 3 GHz).None
SOURce:AFRF:GENerator1:RFSettings:LEVel <Level>Set Generator Level. Sets the RMS level of the unmodulated RF signal in dBm.Number
SOURce:AFRF:GENerator1:RFSettings:LEVel?Read Generator Level. Reads the RMS level of the unmodulated RF signal in dBm.None
SOURce:AFRF:GENerator1:RFSettings:CONNector <Connector>Set Generator Connector. Selects the RF output connector: RF COM or RF OUT.Text: RFCom,RFOut
SOURce:AFRF:GENerator1:RFSettings:CONNector?Read Generator Connector. Reads the selected RF output connector: RF COM or RF OUT.None
SOURce:AFRF:GENerator1:RFSettings:EATTenuation <Atten>Set Generator External Attenuation. Sets the external attenuation in the RF output path in dB (negative values = gain).Number: -50,90
SOURce:AFRF:GENerator1:RFSettings:EATTenuation?Read Generator External Attenuation. Reads the external attenuation in the RF output path in dB (negative values = gain).None
SOURce:AFRF:GENerator1:RFSettings:RF:ENABle ONTurn On Generator RF Output. Enables the RF signal without changing the generator state.None
SOURce:AFRF:GENerator1:RFSettings:RF:ENABle OFFTurn Off Generator RF Output. Disables the RF signal without changing the generator state.None
SOURce:AFRF:GENerator1:RFSettings:RF:ENABle?Read Generator RF Output. Reads whether the RF signal is enabled.None
SOURce:AFRF:GENerator1:RFSettings:PEPower?Read Generator PEP. Returns the peak envelope power of the generated signal in dBm.None
SOURce:AFRF:GENerator1:MODulator <Source>Set Modulator Source. Selects the audio source modulated onto the RF carrier (internal audio generators, AF IN, SPDIF IN).Text: GEN3,GEN4,GENB,AFI1,AFI2,AFIB,SPIL,SPIR,SPIN
SOURce:AFRF:GENerator1:MODulator?Read Modulator Source. Reads the selected audio source modulated onto the RF carrier (internal audio generators, AF IN, SPDIF IN).None
SOURce:AFRF:GENerator1:MODulator:FDEViation <Deviation>Set FM Deviation. Sets the maximum frequency deviation for FM in Hz (0 to 100 kHz).Number: 0,100000
SOURce:AFRF:GENerator1:MODulator:FDEViation?Read FM Deviation. Reads the maximum frequency deviation for FM in Hz (0 to 100 kHz).None
SOURce:AFRF:GENerator1:MODulator:MDEPth <Depth>Set AM Modulation Depth. Sets the AM modulation depth in % (0 to 100).Number: 0,100
SOURce:AFRF:GENerator1:MODulator:MDEPth?Read AM Modulation Depth. Reads the AM modulation depth in % (0 to 100).None
SOURce:AFRF:GENerator1:MODulator:PDEViation <Deviation>Set PM Deviation. Sets the maximum phase deviation for PM in rad (0 to 10).Number: 0,10
SOURce:AFRF:GENerator1:MODulator:PDEViation?Read PM Deviation. Reads the maximum phase deviation for PM in rad (0 to 10).None
SOURce:AFRF:GENerator1:IGENerator1:TMODe <Mode>Set Audio Generator Tone Mode. Selects the tone mode of internal audio generator 1.Text: STONe,DTONe,MTONe,NOISe,DTMF,SELCall,FDIaling,SCAL,SQUare
SOURce:AFRF:GENerator1:IGENerator1:TMODe?Read Audio Generator Tone Mode. Reads the selected tone mode of internal audio generator 1.None
SOURce:AFRF:GENerator1:IGENerator1:FREQuency <Frequency>Set Audio Generator Frequency. Sets the single-tone/square frequency of internal audio generator 1 in Hz (0 to 21 kHz).Number: 0,21000
SOURce:AFRF:GENerator1:IGENerator1:FREQuency?Read Audio Generator Frequency. Reads the single-tone/square frequency of internal audio generator 1 in Hz (0 to 21 kHz).None
SOURce:AFRF:GENerator1:IGENerator1:ENABle?Read Audio Generator Enabled. Queries whether internal audio generator 1 is assigned to an output path.None
SOURce:AFRF:GENerator1:AOUT1 <Source>Set AF1 Output Source. Selects the audio signal source for the AF1 OUT connector.Text: GEN1,AFI1,SPIL
SOURce:AFRF:GENerator1:AOUT1?Read AF1 Output Source. Reads the selected audio signal source for the AF1 OUT connector.None
SOURce:AFRF:GENerator1:AOUT1:ENABle ONTurn On AF1 Output. Enables the AF1 OUT connector.None
SOURce:AFRF:GENerator1:AOUT1:ENABle OFFTurn Off AF1 Output. Disables the AF1 OUT connector.None
SOURce:AFRF:GENerator1:AOUT1:LEVel <Level>Set AF1 Output Level. Sets the output level of the AF1 OUT connector.Number
SOURce:AFRF:GENerator1:AOUT1:LEVel?Read AF1 Output Level. Reads the output level of the AF1 OUT connector.None

Fetch (FETCh) (16)

CommandWhat it doesArguments
FETCh:AFRF:MEASurement1:MEValuation:STATe?Read Measurement State. Returns the AFRF multi-evaluation measurement state: OFF, RUN or RDY.None
FETCh:AFRF:MEASurement1:MEValuation:RFCarrier:CURRent?Fetch RF Carrier Current. Returns the current RF carrier results (power, PEP, frequency error...).None
FETCh:AFRF:MEASurement1:MEValuation:RFCarrier:AVERage?Fetch RF Carrier Average. Returns the average RF carrier results.None
FETCh:AFRF:MEASurement1:MEValuation:RFCarrier:FREQuency:AVERage?Fetch RF Carrier Frequency. Returns the average RF carrier frequency in Hz.None
FETCh:AFRF:MEASurement1:MEValuation:DEModulation:FDEViation:AVERage?Fetch FM Deviation Average. Returns the FM frequency deviation statistics of the demodulated signal.None
FETCh:AFRF:MEASurement1:MEValuation:DEModulation:MDEPth:AVERage?Fetch AM Depth Average. Returns the AM modulation depth statistics of the demodulated signal.None
FETCh:AFRF:MEASurement1:MEValuation:DEModulation:PDEViation:AVERage?Fetch PM Deviation Average. Returns the PM phase deviation statistics of the demodulated signal.None
FETCh:AFRF:MEASurement1:MEValuation:AIN1:AFSignal:AVERage?Fetch AF1 Signal Average. Returns AF frequency and level results measured at AF1 IN.None
FETCh:AFRF:MEASurement1:FREQuency:COUNter?Fetch Frequency Counter. Returns the results of the RF frequency search procedure.None
FETCh:GPRF:MEASurement1:POWer:STATe?Read 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 in dBm.None
FETCh:GPRF:MEASurement1:POWer:CURRent?Fetch Power Current. Returns the current RMS power in dBm.None
FETCh:GPRF:MEASurement1:POWer:PEAK:MAXimum?Fetch Power Peak Maximum. Returns the maximum peak power in dBm.None
FETCh:GPRF:MEASurement1:SPECtrum:STATe?Read 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 RMS spectrum trace.None
FETCh:GPRF:MEASurement1:SPECtrum:REFMarker:NPEak?Fetch Spectrum Peak Marker. Moves the reference marker to the next peak and returns its position and level.None

System (SYSTem) (9)

CommandWhat it doesArguments
SYSTem:BASE:REFerence:FREQuency:SOURce <Source>Set Reference Frequency Source. Selects the internal or external reference frequency source.Text: INTernal,EXTernal
SYSTem:BASE:REFerence:FREQuency:SOURce?Read Reference Frequency Source. Reads the selected internal or external reference frequency source.None
SYSTem:COMMunicate:NET:IPADdress?Read IP Address. Returns the IP address of the LAN interface.None
SYSTem:RESet:BASEReset Base Settings. Resets the base settings.None
SYSTem:RESet:ALLReset All Settings. Resets the base settings and all applications.None
SYSTem:PRESet:ALLPreset 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:BASE:VERSion?Read Software Version. Returns the version of the base software.None

Initiate (INITiate) (4)

CommandWhat it doesArguments
INITiate:AFRF:MEASurement1:MEValuationStart Measurement. Starts or restarts the AFRF multi-evaluation measurement (state RUN).None
INITiate:AFRF:MEASurement1:FREQuency:COUNterStart Frequency Counter. Starts the RF frequency search procedure.None
INITiate:GPRF:MEASurement1:POWerStart Power Measurement. Starts or restarts the GPRF power measurement (state RUN).None
INITiate:GPRF:MEASurement1:SPECtrumStart Spectrum Measurement. Starts or restarts the spectrum analyzer measurement (state RUN).None

Abort (4)

CommandWhat it doesArguments
ABORt:AFRF:MEASurement1:MEValuationAbort Measurement. Aborts the AFRF multi-evaluation measurement and releases resources (state OFF).None
ABORt:AFRF:MEASurement1:FREQuency:COUNterAbort Frequency Counter. Aborts the RF frequency search procedure.None
ABORt:GPRF:MEASurement1:POWerAbort Power Measurement. Aborts the GPRF power measurement and releases resources (state OFF).None
ABORt:GPRF:MEASurement1:SPECtrumAbort Spectrum Measurement. Aborts the spectrum analyzer measurement and releases resources (state OFF).None

Run control (3)

CommandWhat it doesArguments
STOP:AFRF:MEASurement1:MEValuationStop Measurement. Halts the AFRF multi-evaluation measurement; results are kept (state RDY).None
STOP:GPRF:MEASurement1:POWerStop Power Measurement. Halts the GPRF power measurement; results are kept (state RDY).None
STOP:GPRF:MEASurement1:SPECtrumStop Spectrum Measurement. Halts the spectrum analyzer measurement; results are kept (state RDY).None

Sense (SENSe) (3)

CommandWhat it doesArguments
SENSe:BASE:REFerence:FREQuency:LOCKed?Read Reference Locked. Queries whether the reference frequency is locked.None
SENSe:BASE:POWer:OMODe?Read Power Supply Mode. Returns whether the instrument is powered by BATTery or MAINs.None
SENSe:BASE:BATTery:CAPacity?Read Battery Capacity. Returns the total remaining battery capacity in %.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (7)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*SAV <Memory>Save State. Stores the current settings in an intermediate memory.Number
*RCL <Memory>Recall State. Recalls settings from an intermediate memory.Number

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the CMA180 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.

Frequently asked questions

Does the Rohde & Schwarz CMA180 support SCPI remote control?

Yes. The Rohde & Schwarz CMA180 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 145 SCPI commands for it: 72 queries that read values or state, and 73 settings and actions.

How do I control the Rohde & Schwarz CMA180 from Python?

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:AFRF:GENerator1:STATe ON and CONFigure:AFRF:MEASurement1:RFSettings:FREQuency?.

Which command reads a value from the Rohde & Schwarz CMA180?

CONFigure:AFRF:MEASurement1:RFSettings:FREQuency? (read analyzer frequency). Reads the center frequency of the RF analyzer in Hz (100 kHz to 3 GHz). The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rohde & Schwarz CMA180 without writing code?

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 CMA180 through the TestFlow desktop app, and writes the report from the measured results.

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.