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.
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.
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()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.
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.
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.
| Command | What it does | Arguments |
|---|---|---|
| :CONF:SRW:SEGM:CLE | Clear 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 ON | Turn On WLAN Power. Enables the WLAN power measurement. | None |
| :CONF:SRW:SEL:WLAN:POW OFF | Turn Off WLAN Power. Disables the WLAN power measurement. | None |
| :CONF:SRW:SEL:WLAN:EVM ON | Turn On WLAN EVM. Enables the WLAN EVM measurement. | None |
| :CONF:SRW:SEL:WLAN:EVM OFF | Turn Off WLAN EVM. Disables the WLAN EVM measurement. | None |
| :CONF:SRW:SEL:WLAN:SPEC:NUM ON | Turn On WLAN Spectrum Numeric. Enables the numerical spectrum mask measurement. | None |
| :CONF:SRW:SEL:WLAN:SPEC:NUM OFF | Turn Off WLAN Spectrum Numeric. Disables the numerical spectrum mask measurement. | None |
| :CONF:SRW:SEL:WLAN:SPEC:GRAP ON | Turn On WLAN Spectrum Graph. Enables the graphical spectrum mask measurement. | None |
| :CONF:SRW:SEL:WLAN:SPEC:GRAP OFF | Turn Off WLAN Spectrum Graph. Disables the graphical spectrum mask measurement. | None |
| :CONF:SRW:SEL:WLAN:SPEC:FULL ON | Turn On WLAN Spectrum Full Span. Enables the full mask span (+/-140 MHz instead of +/-80 MHz). | None |
| :CONF:SRW:SEL:WLAN:SPEC:FULL OFF | Turn 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 ON | Turn On BT Power. Enables the Bluetooth output power measurement. | None |
| :CONF:SRW:SEL:BT:POW OFF | Turn Off BT Power. Disables the Bluetooth output power measurement. | None |
| :CONF:SRW:SEL:BT:ICFT ON | Turn On BT Initial Carrier. Enables the Bluetooth initial carrier frequency tolerance measurement. | None |
| :CONF:SRW:SEL:BT:ICFT OFF | Turn Off BT Initial Carrier. Disables the Bluetooth initial carrier frequency tolerance measurement. | None |
| :CONF:SRW:SEL:BT:CDR ON | Turn On BT Carrier Drift. Enables the Bluetooth carrier drift measurement. | None |
| :CONF:SRW:SEL:BT:CDR OFF | Turn Off BT Carrier Drift. Disables the Bluetooth carrier drift measurement. | None |
| :CONF:SRW:SEL:BT:MOD ON | Turn On BT Modulation. Enables the Bluetooth modulation characteristics measurement. | None |
| :CONF:SRW:SEL:BT:MOD OFF | Turn Off BT Modulation. Disables the Bluetooth modulation characteristics measurement. | None |
| :CONF:SRW:SEL:BT:ERTP ON | Turn On BT EDR Relative Power. Enables the EDR relative transmit power measurement. | None |
| :CONF:SRW:SEL:BT:ERTP OFF | Turn Off BT EDR Relative Power. Disables the EDR relative transmit power measurement. | None |
| :CONF:SRW:SEL:BT:ECM ON | Turn On BT EDR Carrier Modulation. Enables the EDR carrier frequency stability and modulation accuracy measurement. | None |
| :CONF:SRW:SEL:BT:ECM OFF | Turn 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 ON | Turn On BLE Power. Enables the BLE output power measurement. | None |
| :CONF:SRW:SEL:BLE:POW OFF | Turn Off BLE Power. Disables the BLE output power measurement. | None |
| :CONF:SRW:SEL:BLE:CDR ON | Turn On BLE Carrier Drift. Enables the BLE carrier frequency offset and drift measurement. | None |
| :CONF:SRW:SEL:BLE:CDR OFF | Turn Off BLE Carrier Drift. Disables the BLE carrier frequency offset and drift measurement. | None |
| :CONF:SRW:SEL:BLE:MOD ON | Turn On BLE Modulation. Enables the BLE modulation characteristics measurement. | None |
| :CONF:SRW:SEL:BLE:MOD OFF | Turn 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 ON | Turn On FM RDS. Enables RDS decoding. | None |
| :CONF:FMA:FM:RDS OFF | Turn 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 ON | Turn On FM Generator RF. Enables the FM generator RF output. | None |
| :CONF:FMA:GEN:RFS:STAT OFF | Turn Off FM Generator RF. Disables the FM generator RF output. | None |
| :CONF:FMA:FM:GEN ON | Turn On FM Generator Modulation. Enables FM modulation of the generator. | None |
| :CONF:FMA:FM:GEN OFF | Turn 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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :SOUR:GPRF:GEN:MODE <Mode> | Set Generator Mode. Sets the signal generator mode (NORMAL or SEQUENCE). | Text: NORMAL,SEQUENCE |
| :SOUR:GPRF:GEN:STAT ON | Turn On Generator. Turns the signal generator output on. | None |
| :SOUR:GPRF:GEN:STAT OFF | Turn 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:EXEC | Execute 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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :INIT:SRW:ALEV | Start Auto Level. Starts auto leveling on the DUT signal. | None |
| :INIT:SRW | Start Measurement. Starts the SRW measurement. | None |
| :INIT:FMA:MEAS:SING | Start FM Single Measurement. Starts a single FM/Audio measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| :EXTL:TABL:SWIT ON | Turn On Path Loss Table. Enables the external path loss table. | None |
| :EXTL:TABL:SWIT OFF | Turn Off Path Loss Table. Disables the external path loss table. | None |
| Command | What it does | Arguments |
|---|---|---|
| SYST:LANG SCPI | Set Language SCPI. Selects the SCPI remote command language. | None |
| Command | What it does | Arguments |
|---|---|---|
| :INST <Application> | Select Application. Selects the active measurement application (SRW = WLAN/Bluetooth/GPS, FMAUDIO = FM/Audio). | Text: SRW,FMAUDIO |
| Command | What it does | Arguments |
|---|---|---|
| :STAT:SRW:MEAS? | Read Measurement Status. Reads the measurement status (1 = complete). | None |
| Command | What it does | Arguments |
|---|---|---|
| :TRIG:FMA:MEAS:SOUR <Source> | Set FM Trigger Source. Sets the FM measurement trigger (free run or power trigger). | Text: FREERUN |
| 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? 1 | Identify 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 |
| *RST | Reset. Resets the selected application to its default state. | None |
| *CLS | Clear Status. Clears the status registers. | None |
| *OPC | Operation Complete Set. Sets the operation complete bit when all pending operations finish. | None |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
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.
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.
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.
: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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.