The Anritsu MT8821C radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 203 commands for it, 48 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 MT8821C on a real bench.
Commands
203
Queries
48
Subsystems
118
Models covered
1
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Anritsu MT8821C 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 MT8821C's VISA address
# Paste the address of your Anritsu MT8821C (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("ANTCONFIG RX_DIVERSITY") # Set Antenna Configuration
print(inst.query("ENTERSYNC?")) # Read Frame Sync
inst.close()
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Anritsu MT8821C and writes the report from the measured results.
Describe the test in a sentence, for example “set antenna configuration on the MT8821C, then read frame sync 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.
Turn Off All Measurement Items. Sets all fundamental measurement items to OFF.
None
ACLR subsystem (1)
Command
What it does
Arguments
ACLR_AVG <Count>
Set ACLR Average Count. Sets the average count of the ACLR measurement.
Number
PT subsystem (1)
Command
What it does
Arguments
PT_WDR ON
Turn On Power Template Wide Range. Enables Power Template wide dynamic range measurement.
None
IBEM subsystem (1)
Command
What it does
Arguments
IBEM_CLFR <Position>
Set IBEM Carrier Leakage Frequency. Sets the Carrier Leakage frequency for in-band emission measurement (CFR = carrier frequency center).
Text: CFR
SWP subsystem (1)
Command
What it does
Arguments
SWP
Start Measurement. Executes the measurement (sweep) and waits for completion.
None
SNGLS subsystem (1)
Command
What it does
Arguments
SNGLS
Single Measurement. Performs a single measurement.
None
MSTAT subsystem (1)
Command
What it does
Arguments
MSTAT?
Read Measurement Status. Reads the measurement status.
None
ESR subsystem (1)
Command
What it does
Arguments
ESR?
Read Event Status. Reads the event status register.
None
POWER subsystem (1)
Command
What it does
Arguments
POWER? AVG
Read TX Power. Reads the averaged TX power measurement result in dBm.
None
POWERPASS subsystem (1)
Command
What it does
Arguments
POWERPASS?
Read TX Power Pass. Reads the TX power Pass/Fail judgment.
None
EVM subsystem (1)
Command
What it does
Arguments
EVM? AVG
Read EVM. Reads the averaged EVM measurement result in %.
None
EVMPASS subsystem (1)
Command
What it does
Arguments
EVMPASS?
Read EVM Pass. Reads the EVM Pass/Fail judgment.
None
RSEVM subsystem (1)
Command
What it does
Arguments
RSEVM? AVG
Read RS EVM. Reads the averaged Reference Signal EVM result.
None
WORST subsystem (1)
Command
What it does
Arguments
WORST_CARRFERR? <Unit>
Read Carrier Frequency Error. Reads the worst Carrier Frequency Error result.
Text: HZ,PPM
CARRFERRPASS subsystem (1)
Command
What it does
Arguments
CARRFERRPASS?
Read Carrier Frequency Error Pass. Reads the Carrier Frequency Error Pass/Fail judgment.
None
CARRLEAK subsystem (1)
Command
What it does
Arguments
CARRLEAK? MAX
Read Carrier Leakage. Reads the maximum Carrier Leakage result.
None
CARRLEAKPASS subsystem (1)
Command
What it does
Arguments
CARRLEAKPASS?
Read Carrier Leakage Pass. Reads the Carrier Leakage Pass/Fail judgment.
None
INBANDEPASS subsystem (1)
Command
What it does
Arguments
INBANDEPASS?
Read Inband Emission Pass. Reads the In-band Emissions Pass/Fail judgment.
None
SPECFLAT subsystem (1)
Command
What it does
Arguments
SPECFLAT_RP1? MAX
Read Spectrum Flatness RP1. Reads the maximum spectrum flatness RP1 result.
None
SPECFLATPASS subsystem (1)
Command
What it does
Arguments
SPECFLATPASS?
Read Spectrum Flatness Pass. Reads the Spectrum Flatness Pass/Fail judgment.
None
OBWPASS subsystem (1)
Command
What it does
Arguments
OBWPASS?
Read Occupied Bandwidth Pass. Reads the Occupied Bandwidth Pass/Fail judgment.
None
SEMPASS subsystem (1)
Command
What it does
Arguments
SEMPASS?
Read SEM Pass. Reads the Spectrum Emission Mask Pass/Fail judgment.
None
MODPWRPASS subsystem (1)
Command
What it does
Arguments
MODPWRPASS?
Read ACLR Pass. Reads the ACLR Pass/Fail judgment.
None
ONPWR subsystem (1)
Command
What it does
Arguments
ONPWR? AVG
Read On Power. Reads the averaged On Power result.
None
ONPWRPASS subsystem (1)
Command
What it does
Arguments
ONPWRPASS?
Read On Power Pass. Reads the On Power Pass/Fail judgment.
None
OFFPWRPASS subsystem (1)
Command
What it does
Arguments
OFFPWRPASS?
Read Off Power Pass. Reads the Off Power Pass/Fail judgment.
None
CHPWR subsystem (1)
Command
What it does
Arguments
CHPWR? AVG
Read Channel Power. Reads the averaged Channel Power result.
None
CHPWRPASS subsystem (1)
Command
What it does
Arguments
CHPWRPASS?
Read Channel Power Pass. Reads the Channel Power Pass/Fail judgment.
None
PCTPWR subsystem (1)
Command
What it does
Arguments
PCTPWR? <CC>
Read Absolute Power CC. Reads the power control Absolute Power result (dBm) for the given CC.
Text: PCC,SCC1
PCTPASS subsystem (1)
Command
What it does
Arguments
PCTPASS? <CC>
Read Power Control Pass CC. Reads the power control Pass/Fail judgment for the given CC.
Text: PCC,SCC1
TPUTPASS subsystem (1)
Command
What it does
Arguments
TPUTPASS?
Read Throughput Pass. Reads the throughput Pass/Fail judgment.
None
UL subsystem (1)
Command
What it does
Arguments
UL_TPUT? <CC>
Read UL Throughput CC. Reads the UL throughput result for the given CC.
Text: PCC,SCC1
MAX subsystem (1)
Command
What it does
Arguments
MAX_CARRFERR? <Unit>
Read Max Carrier Frequency Error. Reads the maximum carrier frequency error (W-CDMA/GSM).
Text: PPM
TPCALGO subsystem (1)
Command
What it does
Arguments
TPCALGO <Algorithm>
Set TPC Algorithm. Sets the W-CDMA Power Control Algorithm.
Number: 1,2
CPICHPWR subsystem (1)
Command
What it does
Arguments
CPICHPWR <Level>
Set CPICH Power. Sets the downlink CPICH power in dB (W-CDMA).
Number
OPEMODE subsystem (1)
Command
What it does
Arguments
OPEMODE <Mode>
Set Operating Mode. Sets the Operating Mode (GSM measurement software).
Text: GPRS
Other subsystem (1)
Command
What it does
Arguments
<Output Variable>=<Equation>
Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)
Number; Text
WAIT subsystem (1)
Command
What it does
Arguments
wait(<ms>)
Wait. Waits for number of milliseconds
Number
SAVE subsystem (1)
Command
What it does
Arguments
save2var <Variable_name>
Save2Variable. Saves last measurement to a variable
Text
IEEE 488.2 common commands (1)
Command
What it does
Arguments
*RST
Reset. Resets the instrument to its default state.
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 MT8821C 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 MT8821C support SCPI remote control?
Yes. The Anritsu MT8821C accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 203 SCPI commands for it: 48 queries that read values or state, and 155 settings and actions.
How do I control the Anritsu MT8821C 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?, ANTCONFIG RX_DIVERSITY and ENTERSYNC?.
Which command reads a value from the Anritsu MT8821C?
ENTERSYNC? (read frame sync). Returns 1 when frame timing synchronization is established. The full list of queries is in the command reference on this page, grouped by subsystem.
Can I automate the Anritsu MT8821C 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 MT8821C 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.