Anritsu instrument command references

Remote-control command sets for 32 Anritsu instruments from TestFlow's instrument library, each with its arguments and a working PyVISA example.

The library covers 6 radio test sets, 24 vector network analyzers, 2 vector signal generators from Anritsu: 1400 commands in total, 401 of them queries that read a value or a setting back. These are the commands TestFlow's agent sends when it automates a test on Anritsu hardware, so every entry is one that drives a real instrument.

Anritsu radio test sets

Anritsu vector network analyzers

Anritsu vector signal generators

Commands shared across Anritsu instruments

These commands appear on more than one Anritsu instrument in the library, so a script that uses them carries over between models.

CommandWhat it doesModels
*RSTResets the instrument to its default state.12 of 12
*IDN?Returns the instrument identification string (manufacturer, model, serial number, software revision).10 of 12
*CLSClears all GPIB status data structures except the MAV bit.9 of 12
*OPC?Returns 1 when all pending operations are complete.9 of 12
*WAIWait to continue (decoded but no action on the MT8852B).9 of 12
*TST?Runs a self test and returns ALL TESTS PASSED or SELFTEST FAILED.8 of 12
*TRGGenerates a bus trigger when the instrument is in wait-for-trigger state.6 of 12
CALCulate:DATA:FDATa?Returns the formatted trace data array for the selected measurement.5 of 12

Control a Anritsu instrument from Python

The pattern is the same for every Anritsu instrument here: open it through VISA, identify it, then write settings and query values. This example uses the Anritsu MT8820C; the full MT8820C reference has every command.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Anritsu MT8820C's VISA address

# Paste the address of your Anritsu MT8820C (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()

Related guides

Frequently asked questions

Which Anritsu instruments have a command reference here?

32 Anritsu models (radio test set, vector network analyzer, vector signal generator): MT8820C, MT8821C, MT8852B, MT8860C, MT8870A, MT8872A, MS2026C, MS2027C, MS2028C, MS2036C, MS2037C, MS2038C, MS46121A, MS46121B, MS46122A, MS46122B, MS46131A, MS46322A, MS46322B, MS4642A, MS4642B, MS4644A, MS4644B, MS4645A, MS4647A, MS4647B, MS46522A, MS46524A, MS46522B, MS46524B, MG3710A, MG3710E. Each page lists every remote-control command TestFlow's agent uses for that instrument, with its arguments.

Do Anritsu instruments use SCPI?

Yes. Every Anritsu model in TestFlow's library is programmed with SCPI commands over its remote interfaces, including the IEEE 488.2 common commands such as *IDN? and *RST.

How do I control a Anritsu instrument from Python?

Install PyVISA and a VISA backend, list the connected instruments with ResourceManager().list_resources(), open the Anritsu instrument by its VISA address (USB, LAN or GPIB), then send commands with write() and read values with query(). Each model page has a working example.

Can I automate Anritsu instruments 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 your Anritsu instruments 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.