Radio Test Set · SCPI command reference

Anritsu MT8870A and MT8872A SCPI commands

The Anritsu MT8870A and MT8872A radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 164 commands for it, 41 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 MT8870A on a real bench.

Commands
164
Queries
41
Subsystems
15
Models covered
2

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Anritsu MT8870A or MT8872A and writes the report from the measured results.

Get started

Control the Anritsu MT8870A 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 Anritsu MT8870A's VISA address

# Paste the address of your Anritsu MT8870A (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(":SOUR:GPRF:GEN:STAT ON")  # Turn On Generator
print(inst.query(":FETC:FMA:FM:OBW:FREQ? UPPER"))  # Fetch FM OBW Frequency

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Anritsu MT8870A or MT8872A and writes the report from the measured results.

Get started

Run a MT8870A test without writing code

Describe the test in a sentence, for example “turn on generator on the MT8870A, then fetch fm obw 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

164 commands in 15 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The MT8870A and MT8872A share this command set in TestFlow's library.

Configure (CONFigure) (78)

CommandWhat it doesArguments
:CONF:SRW:SEGM:CLEClear Segments. Clears all capture segments.None
:CONF:SRW:SEGM:APP <Type>Append Segment. Appends a capture segment of the given signal type.Text: AUTODSSS,AUTOOFDM,AUTOBT,BT,BLE,COMPMIMO,TMIMOP,TMIMOS
:CONF:SRW:SEGM:ACT <Segment>Set Active Segment. Selects the active segment for configuration.Number
:CONF:SRW:SEGM:ACT?Read Active Segment. Reads the active segment.None
:CONF:SRW:SEGM:PORT <Port>Set Segment Input Port. Sets the input port of the segment.Text: PORT1,PORT2,PORT3,PORT4
:CONF:SRW:SEGM:TMIM:IP <IP>Set True MIMO Module IP. Sets the IP address of the secondary TRX test module for True MIMO (quoted).Text
:CONF:SRW:STAN?Read Standard. Reads the configured standard.None
:CONF:SRW:FREQ <Frequency>Set Center Frequency. Sets the analyzer center frequency in Hz.Number
:CONF:SRW:POW <Power>Set Expected Power. Sets the expected input power in dBm.Number
:CONF:SRW:POW?Read Expected Power. Reads the expected input power (e.g. after auto leveling).None
:CONF:SRW:TRIG <Source>Set Trigger Source. Sets the capture trigger.Text: LEVEL
:CONF:SRW:TDEL <Delay>Set Trigger Delay. Sets the trigger delay in s (e.g. -1E-05).Number
:CONF:SRW:TLEV <Level>Set Trigger Level. Sets the trigger level in dB.Number
:CONF:SRW:TTIM <Timeout>Set Trigger Timeout. Sets the trigger timeout in s.Number
:CONF:SRW:CAPT:MODE <Mode>Set Capture Mode. Sets the capture mode.Text: PACKET,TIME
:CONF:SRW:TIME <Time>Set Capture Time. Sets the capture time in s for TIME capture mode.Number
:CONF:SRW:PACK <Count>Set Packet Count. Sets the number of packets to measure.Number
:CONF:SRW:ALEV:TIME <Time>Set Auto Level Time. Sets the auto leveling time in s.Number
:CONF:SRW:WLB:FTYP <Filter>Set WLAN DSSS Filter. Sets the 802.11b DSSS measurement filter.Text: GAUSSIAN
:CONF:SRW:OFDM:CEST <Mode>Set OFDM Channel Estimation. Sets the OFDM channel estimation mode.Text: FULLPACKET
:CONF:SRW:WLAN:POW:GATE:ADD <Gate>Add WLAN Power Gate. Adds a WLAN power measurement gate.Number
:CONF:SRW:WLAN:SPEC:GATE:ADD <Gate>Add WLAN Spectrum Gate. Adds a WLAN spectrum measurement gate.Number
:CONF:SRW:SEL:WLAN:POW ONTurn On WLAN Power. Enables the WLAN power measurement.None
:CONF:SRW:SEL:WLAN:POW OFFTurn Off WLAN Power. Disables the WLAN power measurement.None
:CONF:SRW:SEL:WLAN:EVM ONTurn On WLAN EVM. Enables the WLAN EVM measurement.None
:CONF:SRW:SEL:WLAN:EVM OFFTurn Off WLAN EVM. Disables the WLAN EVM measurement.None
:CONF:SRW:SEL:WLAN:SPEC:NUM ONTurn On WLAN Spectrum Numeric. Enables the numerical spectrum mask measurement.None
:CONF:SRW:SEL:WLAN:SPEC:NUM OFFTurn Off WLAN Spectrum Numeric. Disables the numerical spectrum mask measurement.None
:CONF:SRW:SEL:WLAN:SPEC:GRAP ONTurn On WLAN Spectrum Graph. Enables the graphical spectrum mask measurement.None
:CONF:SRW:SEL:WLAN:SPEC:GRAP OFFTurn Off WLAN Spectrum Graph. Disables the graphical spectrum mask measurement.None
:CONF:SRW:SEL:WLAN:SPEC:FULL ONTurn On WLAN Spectrum Full Span. Enables the full mask span (+/-140 MHz instead of +/-80 MHz).None
:CONF:SRW:SEL:WLAN:SPEC:FULL OFFTurn Off WLAN Spectrum Full Span. Disables the full mask span (+/-140 MHz instead of +/-80 MHz).None
:CONF:SRW:BT:MODE <Mode>Set BT Test Mode. Sets the Bluetooth transmitter test mode (SPEED = fast test, STANDARD = SIG compliant).Text: SPEED,STANDARD
:CONF:SRW:BT:ADDR <Address>Set BT Address. Sets the Bluetooth device address used for standard mode measurements (quoted hex).Text
:CONF:SRW:BT:PACK <Packet>Set BT Packet Type. Sets the Bluetooth packet type.Text: DH1,3DH5
:CONF:SRW:BT:PLEN <Length>Set BT Payload Length. Sets the Bluetooth payload length in bytes.Number
:CONF:SRW:BT:PAYL <Payload>Set BT Payload. Sets the Bluetooth payload pattern.Text: PRBS9,AAHEX,FZEROHEX
:CONF:SRW:SEL:BT:POW ONTurn On BT Power. Enables the Bluetooth output power measurement.None
:CONF:SRW:SEL:BT:POW OFFTurn Off BT Power. Disables the Bluetooth output power measurement.None
:CONF:SRW:SEL:BT:ICFT ONTurn On BT Initial Carrier. Enables the Bluetooth initial carrier frequency tolerance measurement.None
:CONF:SRW:SEL:BT:ICFT OFFTurn Off BT Initial Carrier. Disables the Bluetooth initial carrier frequency tolerance measurement.None
:CONF:SRW:SEL:BT:CDR ONTurn On BT Carrier Drift. Enables the Bluetooth carrier drift measurement.None
:CONF:SRW:SEL:BT:CDR OFFTurn Off BT Carrier Drift. Disables the Bluetooth carrier drift measurement.None
:CONF:SRW:SEL:BT:MOD ONTurn On BT Modulation. Enables the Bluetooth modulation characteristics measurement.None
:CONF:SRW:SEL:BT:MOD OFFTurn Off BT Modulation. Disables the Bluetooth modulation characteristics measurement.None
:CONF:SRW:SEL:BT:ERTP ONTurn On BT EDR Relative Power. Enables the EDR relative transmit power measurement.None
:CONF:SRW:SEL:BT:ERTP OFFTurn Off BT EDR Relative Power. Disables the EDR relative transmit power measurement.None
:CONF:SRW:SEL:BT:ECM ONTurn On BT EDR Carrier Modulation. Enables the EDR carrier frequency stability and modulation accuracy measurement.None
:CONF:SRW:SEL:BT:ECM OFFTurn Off BT EDR Carrier Modulation. Disables the EDR carrier frequency stability and modulation accuracy measurement.None
:CONF:SRW:BLE:MODE <Mode>Set BLE Test Mode. Sets the Bluetooth low energy test mode.Text: STANDARD
:CONF:SRW:BLE:PAYL <Payload>Set BLE Payload. Sets the BLE payload pattern.Text: PRBS9
:CONF:SRW:SEL:BLE:POW ONTurn On BLE Power. Enables the BLE output power measurement.None
:CONF:SRW:SEL:BLE:POW OFFTurn Off BLE Power. Disables the BLE output power measurement.None
:CONF:SRW:SEL:BLE:CDR ONTurn On BLE Carrier Drift. Enables the BLE carrier frequency offset and drift measurement.None
:CONF:SRW:SEL:BLE:CDR OFFTurn Off BLE Carrier Drift. Disables the BLE carrier frequency offset and drift measurement.None
:CONF:SRW:SEL:BLE:MOD ONTurn On BLE Modulation. Enables the BLE modulation characteristics measurement.None
:CONF:SRW:SEL:BLE:MOD OFFTurn Off BLE Modulation. Disables the BLE modulation characteristics measurement.None
:CONF:FMA:MEAS:RFS:FREQ <Frequency>Set FM Meas Frequency. Sets the FM measurement RF frequency in Hz.Number
:CONF:FMA:MEAS:RFS:LEV <Level>Set FM Meas Level. Sets the FM measurement input level in dBm.Number
:CONF:FMA:FM:OBW:RAT <Ratio>Set FM OBW Ratio. Sets the occupied bandwidth power ratio in %.Number
:CONF:FMA:FM:MOD <Mode>Set FM Modulation. Sets the FM demodulation mode.Text: STEREO,MONO
:CONF:FMA:FM:LEFT:HPF <Filter>Set FM Left HPF. Sets the left-channel demodulation high-pass filter.Text: HPF20
:CONF:FMA:FM:LEFT:LPF <Filter>Set FM Left LPF. Sets the left-channel demodulation low-pass filter.Text: LPF15K
:CONF:FMA:FM:LEFT:DEEM <Deemphasis>Set FM Left Deemphasis. Sets the left-channel de-emphasis.Text: US75
:CONF:FMA:FM:RDS ONTurn On FM RDS. Enables RDS decoding.None
:CONF:FMA:FM:RDS OFFTurn Off FM RDS. Disables RDS decoding.None
:CONF:FMA:GEN:RFS:LEV <Level>Set FM Generator Level. Sets the FM generator RF level in dBm.Number
:CONF:FMA:GEN:RFS:FREQ <Frequency>Set FM Generator Frequency. Sets the FM generator RF frequency in Hz.Number
:CONF:FMA:GEN:RFS:STAT ONTurn On FM Generator RF. Enables the FM generator RF output.None
:CONF:FMA:GEN:RFS:STAT OFFTurn Off FM Generator RF. Disables the FM generator RF output.None
:CONF:FMA:FM:GEN ONTurn On FM Generator Modulation. Enables FM modulation of the generator.None
:CONF:FMA:FM:GEN OFFTurn Off FM Generator Modulation. Disables FM modulation of the generator.None
:CONF:FMA:FM:GEN:MOD <Mode>Set FM Generator Modulation Mode. Sets the FM generator stereo/mono mode.Text: STEREO,MONO
:CONF:FMA:FM:GEN:LEFT:FREQ <Tone>,<Frequency>Set FM Generator Left Tone Frequency. Sets the left tone frequency in Hz.Number; Number
:CONF:FMA:FM:GEN:LEFT:DEV <Tone>,<Deviation>Set FM Generator Left Tone Deviation. Sets the left tone deviation in Hz.Number; Number
:CONF:FMA:FM:GEN:PIL:DEV <Deviation>Set FM Generator Pilot Deviation. Sets the stereo pilot deviation in Hz.Number
:CONF:FMA:AF:MEAS:ANAL:RANG <Range>Set AF Analyzer Range. Sets the analog audio analyzer range (e.g. 5000MV).Text: 5000MV
:CONF:FMA:AF:MEAS:MOD <Mode>Set AF Measurement Mode. Sets the audio measurement stereo/mono mode.Text: STEREO,MONO

Fetch (FETCh) (31)

CommandWhat it doesArguments
:FETC:SRW:SEGM:IDEN? <Segment>,<Option>Read Segment Identification. Reads the detected signal identification for a segment (Anritsu examples use option 0).Number; Number: 0
:FETC:SRW:CINF?Read Capture Information. Reads the capture information.None
:FETC:SRW:SUMM:WLAN:POW? <Segment>,<Option>Fetch WLAN Power. Fetches WLAN power results (peak power #6, average power #7).Number; Number: 1
:FETC:SRW:SUMM:WLAN:CPOW? <Segment>,<Option>Fetch WLAN Composite Power. Fetches WLAN composite (MIMO) power results.Number; Number: 0
:FETC:SRW:SUMM:WLAN:DSSS:EVM? <Segment>,<Option>Fetch WLAN DSSS EVM. Fetches DSSS EVM results (EVM max #5, frequency error #10 ppm / #11 Hz).Number; Number: 1
:FETC:SRW:SUMM:WLAN:OFDM:EVM? <Segment>Fetch WLAN OFDM EVM. Fetches OFDM EVM results (EVM average #13 dB, frequency error #7 ppm / #8 Hz).Number
:FETC:SRW:SUMM:WLAN:SPEC:NUM? <Segment>,<Option>Fetch WLAN Spectrum Mask. Fetches numerical spectrum mask results (limit test result #41: 1 pass, 0 fail).Number; Number: 1,15
:FETC:SRW:SUMM:WLAN:SPEC:GRAP:ASC? <Segment>Fetch WLAN Spectrum Graph ASCII. Fetches the spectrum mask graph data in ASCII format.Number
:FETC:SRW:SUMM:WLAN:SPEC:GRAP:BIN? <Segment>Fetch WLAN Spectrum Graph Binary. Fetches the spectrum mask graph data in binary format.Number
:FETC:SRW:SUMM:BT:POW? <Segment>Fetch BT Power. Fetches Bluetooth output power results.Number
:FETC:SRW:SUMM:BT:ICFT? <Segment>Fetch BT Initial Carrier. Fetches Bluetooth initial carrier frequency tolerance results.Number
:FETC:SRW:SUMM:BT:CDR? <Segment>Fetch BT Carrier Drift. Fetches Bluetooth carrier drift results.Number
:FETC:SRW:SUMM:BT:MOD? <Segment>Fetch BT Modulation. Fetches Bluetooth modulation characteristics results.Number
:FETC:SRW:SUMM:BT:ERTP? <Segment>Fetch BT EDR Relative Power. Fetches EDR relative transmit power results.Number
:FETC:SRW:SUMM:BT:ECM? <Segment>Fetch BT EDR Carrier Modulation. Fetches EDR carrier frequency stability and modulation accuracy results.Number
:FETC:SRW:SUMM:BLE:POW? <Segment>Fetch BLE Power. Fetches BLE output power results.Number
:FETC:SRW:SUMM:BLE:CDR? <Segment>Fetch BLE Carrier Drift. Fetches BLE carrier frequency offset and drift results.Number
:FETC:SRW:SUMM:BLE:MOD? <Segment>Fetch BLE Modulation. Fetches BLE modulation characteristics results.Number
:FETC:FMA:MEAS:STAT?Read FM Measurement Status. Reads the FM/Audio measurement status.None
:FETC:FMA:FM:RF?Fetch FM RF. Fetches the FM RF frequency, frequency error and level results.None
:FETC:FMA:FM:OBW?Fetch FM OBW. Fetches the FM occupied bandwidth result.None
:FETC:FMA:FM:OBW:FREQ? <Edge>Fetch FM OBW Frequency. Fetches the OBW upper/lower/center frequency.Text: UPPER,LOWER,CENTER
:FETC:FMA:FM:DEM:BOTH:DEV?Fetch FM Deviation. Fetches the FM frequency deviation (L+R) results.None
:FETC:FMA:FM:DEM:LEFT:AF?Fetch FM Left AF. Fetches the left-channel demodulated AF frequency/level results.None
:FETC:FMA:FM:DEM:CROS?Fetch FM Crosstalk. Fetches the stereo crosstalk results.None
:FETC:FMA:FM:DEM:LEFT:ANAL?Fetch FM Left Analysis. Fetches the left-channel SINAD/THD/SNR analysis results.None
:FETC:FMA:FM:DEM:PIL?Fetch FM Pilot. Fetches the stereo pilot deviation/frequency results.None
:FETC:FMA:AF:AUD:LEFT:TOT?Fetch AF Left Total. Fetches the left-channel audio total level results.None
:FETC:FMA:AF:AUD:LEFT:AF?Fetch AF Left AF. Fetches the left-channel audio tone frequency/level results.None
:FETC:FMA:AF:AUD:LEFT:ANAL?Fetch AF Left Analysis. Fetches the left-channel audio SINAD/THD/SNR analysis results.None
:FETC:FMA:AF:AUD:CROS?Fetch AF Crosstalk. Fetches the audio stereo crosstalk results.None

Source (SOURce) (30)

CommandWhat it doesArguments
:SOUR:GPRF:GEN:MODE <Mode>Set Generator Mode. Sets the signal generator mode (NORMAL or SEQUENCE).Text: NORMAL,SEQUENCE
:SOUR:GPRF:GEN:STAT ONTurn On Generator. Turns the signal generator output on.None
:SOUR:GPRF:GEN:STAT OFFTurn Off Generator. Turns the signal generator output off.None
:SOUR:GPRF:GEN:BBM <Mode>Set Generator Baseband Mode. Sets the generator baseband mode (CW or ARB waveform).Text: CW,ARB
:SOUR:GPRF:GEN:RFS:FREQ <Frequency>Set Generator Frequency. Sets the generator frequency (e.g. 1575.42MHz).Number
:SOUR:GPRF:GEN:RFS:LEV <Level>Set Generator Level. Sets the generator output level in dBm.Number
: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').Text
:SOUR:GPRF:GEN:ARB:FILE:LOAD:STAT?Read ARB Load State. Reads the waveform file loading state (0 = complete).None
:SOUR:GPRF:GEN:ARB:WAV:PATT:SEL <Filename>,<Pattern>Select ARB Pattern. Selects the waveform pattern of a loaded file for output.Text; Number
:SOUR:GPRF:GEN:ARB:WAV:GEN:ZVSP <Filename>,<Sample_Rate>,<Samples>Generate Zero Waveform. Generates a zero (no signal) waveform file, e.g. 'ZERO_200000000Hz_100000p',200000000HZ,100000.Text; Number; Number
:SOUR:GPRF:GEN:SEQ:REIN <Value>Reinitialize Sequencer. Reinitializes the SG sequencer (example value 0).Number: 0
:SOUR:GPRF:GEN:SEQ:RX:GEN:SST <Sequence>,<Start>,<Stop>Set Sequence Start Stop. Sets the start and stop segment of the SG sequence.Number; Number; Number
:SOUR:GPRF:GEN:SEQ:RX:GEN:REP <Sequence>,<Mode>Set Sequence Repetition. Sets the sequence repetition mode.Number; Text: SINGLE
:SOUR:GPRF:GEN:SEQ:RX:LEV <Sequence>,<Segment>,<Level>Set Segment Level. Sets the output level of a sequencer segment (e.g. -55.0DBM).Number; Number; Number
:SOUR:GPRF:GEN:SEQ:RX:FREQ <Sequence>,<Segment>,<Frequency>Set Segment Frequency. Sets the frequency of a sequencer segment (e.g. 2412000000HZ).Number; Number; Number
:SOUR:GPRF:GEN:SEQ:RX:OUTP:STAT <Sequence>,<Segment>,<Port>Set Segment Output Port. Sets the output test port of a sequencer segment.Number; Number; Text: PORT1,PORT2,PORT3,PORT4
:SOUR:GPRF:GEN:SEQ:RX:ENDC <Sequence>,<Segment>,<Condition>Set Segment End Condition. Sets the end condition of a sequencer segment.Number; Number; Text: TRIGGER,SNUMBER
:SOUR:GPRF:GEN:SEQ:RX:TRIG:SOUR <Sequence>,<Segment>,<Source>Set Segment Trigger Source. Sets the trigger source for moving to the next segment.Number; Number; Text: WFGEND
:SOUR:GPRF:GEN:SEQ:RX:TRIG:DEL <Sequence>,<Segment>,<Delay>Set Segment Trigger Delay. Sets the trigger delay of a segment in s.Number; Number; Number
:SOUR:GPRF:GEN:SEQ:RX:NSLC <Sequence>,<Segment>,<Control>Set Segment Repetition Control. Sets the repetition control of a segment.Number; Number; Text: NSEGMENT,LOOP
:SOUR:GPRF:GEN:SEQ:RX:BBM <Sequence>,<Segment>,<Mode>Set Segment Baseband Mode. Sets the baseband mode of a segment.Number; Number; Text: ARB,CW
:SOUR:GPRF:GEN:SEQ:WAV:PATT:SEL <Sequence>,<Segment>,<Pattern>Select Sequence Waveform. Selects the waveform pattern for a waveform list segment (quoted file name followed by pattern number, e.g. 'MV887030A_b_11_1024L',1).Number; Number; Text
:SOUR:GPRF:GEN:SEQ:WAV:IREP <Sequence>,<Segment>,<Count>Set Waveform Repeat Count. Sets how many times the waveform of a segment is repeated (number of packets).Number; Number; Number
:SOUR:GPRF:GEN:SEQ:WAV:ENDC <Sequence>,<Segment>,<Condition>Set Waveform End Condition. Sets the end condition of a waveform list segment.Number; Number; Text: REPEAT
:SOUR:GPRF:GEN:SEQ:WAV:GETR <Sequence>,<Segment>,<State>Set Waveform Trigger Out. Sets whether a trigger is output after the waveform segment completes (1 = on, 0 = off).Number; Number; Number: 0,1
:SOUR:GPRF:GEN:SEQ:WAV:PATT:DEL <Sequence>,<Segment>Delete Sequence Waveform. Deletes the waveform pattern of a segment.Number; Number
:SOUR:GPRF:GEN:SEQ:COMB:PATT <Sequence>,<Table>Combine Sequence Pattern. Applies the sequence table.Number; Number
:SOUR:GPRF:GEN:SEQ:RX:ERR? <Sequence>Read Sequence Errors. Checks the sequence list before transmission (0,0,0 = no errors).Number
:SOUR:GPRF:GEN:SEQ:EXECExecute Sequence. Starts transmission of the test signal according to the sequence configuration.None
:SOUR:GPRF:GEN:SEQ:STAT?Read Sequence State. Reads the sequencer state (1 = transmitting, 0 = completed).None

Calculate (CALCulate) (4)

CommandWhat it doesArguments
:CALC:CAL:BAND:STAR:TEMP <Temperature>Start Band Calibration. Starts WLAN/Bluetooth band calibration with the given temperature threshold (e.g. 2.0).Number
:CALC:CAL:BAND:RES?Read Band Calibration Result. Reads the band calibration result (Pass/Fail).None
:CALC:EXTL:TABL:SETT <Table>Select Path Loss Table. Selects the path loss table to edit/use.Number
: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).Text; Text

ROUT subsystem (3)

CommandWhat it doesArguments
:ROUT:PORT:CONN:DIR <Input_Port>,<Output_Port>Set Port Connection. Sets the RF input and output test ports.Text: PORT1,PORT2,PORT3,PORT4; Text: PORT1,PORT2,PORT3,PORT4
:ROUT:PORT:AUD:INP:SEL <Type>Set Audio Input. Selects the analog or digital audio input.Text: ANALOG,DIGITAL
: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).Text: INPUT,OUTPUT

Initiate (INITiate) (3)

CommandWhat it doesArguments
:INIT:SRW:ALEVStart Auto Level. Starts auto leveling on the DUT signal.None
:INIT:SRWStart Measurement. Starts the SRW measurement.None
:INIT:FMA:MEAS:SINGStart FM Single Measurement. Starts a single FM/Audio measurement.None

EXTL subsystem (2)

CommandWhat it doesArguments
:EXTL:TABL:SWIT ONTurn On Path Loss Table. Enables the external path loss table.None
:EXTL:TABL:SWIT OFFTurn Off Path Loss Table. Disables the external path loss table.None

System (SYSTem) (1)

CommandWhat it doesArguments
SYST:LANG SCPISet Language SCPI. Selects the SCPI remote command language.None

Instrument (INSTrument) (1)

CommandWhat it doesArguments
:INST <Application>Select Application. Selects the active measurement application (SRW = WLAN/Bluetooth/GPS, FMAUDIO = FM/Audio).Text: SRW,FMAUDIO

Status (STATus) (1)

CommandWhat it doesArguments
:STAT:SRW:MEAS?Read Measurement Status. Reads the measurement status (1 = complete).None

Trigger (TRIGger) (1)

CommandWhat it doesArguments
:TRIG:FMA:MEAS:SOUR <Source>Set FM Trigger Source. Sets the FM measurement trigger (free run or power trigger).Text: FREERUN

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 (6)

CommandWhat it doesArguments
*IDN? 1Identify Mainframe. Returns the identification string of the MT8870A/MT8872A mainframe (*IDN? without parameter returns the MU887000A test module).None
*IDN?Identify. Returns the identification string of the MU887000A TRX test module.None
*RSTReset. Resets the selected application to its default state.None
*CLSClear Status. Clears the status registers.None
*OPCOperation Complete Set. Sets the operation complete bit when all pending operations finish.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Anritsu's programming documentation for the MT8870A and MT8872A and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Anritsu's programming manual: check it before you rely on an edge case. Last updated September 27, 2026.

Frequently asked questions

Does the Anritsu MT8870A support SCPI remote control?

Yes. The Anritsu MT8870A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 164 SCPI commands for it: 41 queries that read values or state, and 123 settings and actions.

How do I control the Anritsu MT8870A 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?, :SOUR:GPRF:GEN:STAT ON and :FETC:FMA:FM:OBW:FREQ? UPPER.

Which command reads a value from the Anritsu MT8870A?

:FETC:FMA:FM:OBW:FREQ? UPPER (fetch fm obw frequency). Fetches the OBW upper/lower/center frequency. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Anritsu MT8870A 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 Anritsu MT8870A 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.