In TestFlow's instrument library, the Anritsu MT8870A takes 164 SCPI commands, 41 of them queries, and the Rohde & Schwarz CMW270 takes 318 SCPI commands, 167 of them queries. That is 154 more on the CMW270. Counting distinct command headers (the command path without its arguments), 9 are accepted by both, 132 exist only on the MT8870A, and 298 only on the CMW270. 6% of the MT8870A's command headers also exist on the CMW270.
Both libraries have commands under CONF, FETC, SOUR, CALC, ROUT, INIT, and SYST. Only the MT8870A has EXTL, INST, STAT, and TRIG. Only the CMW270 has SENSe, STOP, ABORt, READ, and CALL.
Only the CMW270 library has an operation-complete command (*OPC?); the MT8870A library has none. Only the CMW270 library has an error-queue read (SYSTem:ERRor?); the MT8870A library has none.
TestFlow's library gives the MT8872A the same command set as the MT8870A, so the MT8870A column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Anritsu MT8870A or Rohde & Schwarz CMW270 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.
| Anritsu MT8870A | Rohde & Schwarz CMW270 | |
|---|---|---|
| Commands in TestFlow's library | 164 | 318 |
| Queries (read a value or state) | 41 | 167 |
| Settings and actions | 123 | 151 |
| Subsystems | 15 | 16 |
| Distinct command headers | 141 | 307 |
| Headers the other lacks | 132 | 298 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | Not in library | SYSTem:ERRor? |
| Models on this command set | MT8870A, MT8872A | CMW270 |
9 command headers are in both libraries. Where the CMW270 library writes the command differently, its form is shown under the MT8870A's.
| Command | What it does |
|---|---|
| :SOUR:GPRF:GEN:STAT ONCMW270: SOURce:GPRF:GENerator1:STATe ON | Turn On Generator. Turns the signal generator output on. |
| *IDN? 1CMW270: *IDN? | Identify Mainframe. Returns the identification string of the MT8870A/MT8872A mainframe (*IDN? without parameter returns the MU887000A test module). |
| :SOUR:GPRF:GEN:BBM <Mode>CMW270: SOURce:GPRF:GENerator1:BBMode <Mode> | Set Generator Baseband Mode. Sets the generator baseband mode (CW or ARB waveform). |
| *RST | Reset. Resets the selected application to its default state. |
| :SOUR:GPRF:GEN:RFS:FREQ <Frequency>CMW270: SOURce:GPRF:GENerator1:RFSettings:FREQuency <Freq> | Set Generator Frequency. Sets the generator frequency (e.g. 1575.42MHz). |
| *CLS | Clear Status. Clears the status registers. |
| :SOUR:GPRF:GEN:RFS:LEV <Level>CMW270: SOURce:GPRF:GENerator1:RFSettings:LEVel <Level> | Set Generator Level. Sets the generator output level in dBm. |
| *OPC | Operation Complete Set. Sets the operation complete bit when all pending operations finish. |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. |
132 command headers in the MT8870A library have no match in the CMW270 library. Below are 22 of them from the 6 largest subsystems; the full list is in the Anritsu MT8870A command reference.
| Command | What it does |
|---|---|
| :CONF:SRW:SEGM:CLE | Clear Segments. Clears all capture segments. |
| :CONF:SRW:SEGM:APP <Type> | Append Segment. Appends a capture segment of the given signal type. |
| :CONF:SRW:SEGM:ACT <Segment> | Set Active Segment. Selects the active segment for configuration. |
| :CONF:SRW:SEGM:ACT? | Read Active Segment. Reads the active segment. |
| Command | What it does |
|---|---|
| :FETC:SRW:SEGM:IDEN? <Segment>,<Option> | Read Segment Identification. Reads the detected signal identification for a segment (Anritsu examples use option 0). |
| :FETC:SRW:CINF? | Read Capture Information. Reads the capture information. |
| :FETC:SRW:SUMM:WLAN:POW? <Segment>,<Option> | Fetch WLAN Power. Fetches WLAN power results (peak power #6, average power #7). |
| :FETC:SRW:SUMM:WLAN:CPOW? <Segment>,<Option> | Fetch WLAN Composite Power. Fetches WLAN composite (MIMO) power results. |
| Command | What it does |
|---|---|
| :SOUR:GPRF:GEN:MODE <Mode> | Set Generator Mode. Sets the signal generator mode (NORMAL or SEQUENCE). |
| :SOUR:GPRF:GEN:ARB:FILE:LOAD <Filename> | Load ARB Waveform. Loads a waveform file into ARB memory (quoted name, e.g. 'MV887030A_b_11_1024L'). |
| :SOUR:GPRF:GEN:ARB:FILE:LOAD:STAT? | Read ARB Load State. Reads the waveform file loading state (0 = complete). |
| :SOUR:GPRF:GEN:ARB:WAV:PATT:SEL <Filename>,<Pattern> | Select ARB Pattern. Selects the waveform pattern of a loaded file for output. |
| Command | What it does |
|---|---|
| :CALC:CAL:BAND:STAR:TEMP <Temperature> | Start Band Calibration. Starts WLAN/Bluetooth band calibration with the given temperature threshold (e.g. 2.0). |
| :CALC:CAL:BAND:RES? | Read Band Calibration Result. Reads the band calibration result (Pass/Fail). |
| :CALC:EXTL:TABL:SETT <Table> | Select Path Loss Table. Selects the path loss table to edit/use. |
| :CALC:EXTL:TABL:VAL <Frequency>,<Loss_Values> | Set Path Loss Value. Adds a path loss entry: frequency (e.g. 2412MHz) and the comma-separated loss values in dB (e.g. 1.00,2.00,3.00). |
| Command | What it does |
|---|---|
| :INIT:SRW:ALEV | Start Auto Level. Starts auto leveling on the DUT signal. |
| :INIT:SRW | Start Measurement. Starts the SRW measurement. |
| :INIT:FMA:MEAS:SING | Start FM Single Measurement. Starts a single FM/Audio measurement. |
| Command | What it does |
|---|---|
| :ROUT:PORT:CONN:DIR <Input_Port>,<Output_Port> | Set Port Connection. Sets the RF input and output test ports. |
| :ROUT:PORT:AUD:INP:SEL <Type> | Set Audio Input. Selects the analog or digital audio input. |
| :ROUT:PORT:RF:ROLE <Role> | Set RF Port Role. Sets the RF port role for FM tests (INPUT = RF input and audio output, OUTPUT = RF output and audio input). |
298 command headers in the CMW270 library have no match in the MT8870A 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: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 |
|---|---|
| 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 |
|---|---|
| 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? | Read Generator Baseband Mode. Reads the currently selected generator baseband mode. |
| SOURce:GPRF:GENerator1:RFSettings:FREQuency? | Read Generator Frequency. Reads the RF generator carrier frequency in Hz. |
| 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 |
|---|---|
| ROUTe:GPRF:GENerator1:SCENario:SALone <Connector>,<Converter> | Route Generator Standalone. Selects the RF output connector and TX module used for the generated RF signal. |
| ROUTe:GPRF:GENerator1:SCENario? | Read Generator Scenario. Reads the active routing scenario of the GPRF generator. |
| ROUTe:GPRF:MEASurement1:SCENario:SALone <Connector>,<Converter> | Route Measurement Standalone. Activates the standalone scenario and selects the RF input connector and RX module for the GPRF measurement. |
| ROUTe:GPRF:MEASurement1:SCENario:CSPath <Master> | Route Measurement Combined Path. Activates the combined signal path scenario and selects the controlling signaling application, for example 'LTE Sig1'. |
| 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). |
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 :SOUR:GPRF:GEN:STAT (turn on generator); the CMW270 library writes it as SOURce:GPRF:GENerator1:STATe ON. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: :FETC:FMA:FM:OBW:FREQ? UPPER on the MT8870A and CONFigure:GPRF:MEASurement1:RFSettings:FREQuency? on the CMW270. 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_MT8870A_ADDRESS") # Anritsu MT8870A
b = rm.open_resource("PASTE_CMW270_ADDRESS") # Rohde & Schwarz CMW270
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Turn On Generator
a.write(":SOUR:GPRF:GEN:STAT ON")
b.write("SOURce:GPRF:GENerator1:STATe ON")
# No shared reading with an example on both, so each uses its own command
print(a.query(":FETC:FMA:FM:OBW:FREQ? UPPER")) # Fetch FM OBW Frequency
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 Anritsu MT8870A or Rohde & Schwarz CMW270 and writes the report from the measured results.
In TestFlow's library the MT8870A has 164 SCPI commands and the CMW270 has 318 SCPI commands. 9 command headers are common to both, 132 are only on the MT8870A (mostly CONF and FETC), and 298 are only on the CMW270 (mostly CONFigure and FETCh).
Partly. 9 command headers are accepted by both, including :SOUR:GPRF:GEN:STAT, :SOUR:GPRF:GEN:BBM, and :SOUR:GPRF:GEN:RFS:FREQ. 430 are not, for example :CONF:SRW:SEGM:CLE on the MT8870A and CONFigure:GPRF:MEASurement1:RFSettings:FREQuency on the CMW270, so a script that uses those needs a separate branch for each instrument.
The CMW270: 164 commands for the MT8870A against 318 for the CMW270 in TestFlow's library. Of those, 41 on the MT8870A and 167 on the CMW270 are queries that read a value or state, and the library splits them into 15 and 16 subsystems.
Only the CMW270 library has an operation-complete command (*OPC?); the MT8870A library has none. Only the CMW270 library has an error-queue read (SYSTem:ERRor?); the MT8870A library has none. 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.