The Microchip 5125A phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 58 commands for it, 24 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 5125A on a real bench.
Commands
58
Queries
24
Subsystems
20
Models covered
1
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Microchip 5125A 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 Microchip 5125A's VISA address
# Paste the address of your Microchip 5125A (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("pause freqdiff") # Pause Frequency Difference
print(inst.query("show state")) # Read State
inst.close()
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Microchip 5125A and writes the report from the measured results.
Describe the test in a sentence, for example “pause frequency difference on the 5125A, then read state 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.
Cancel Print Jobs. Cancels all pending print jobs.
None
CONTROL subsystem (2)
Command
What it does
Arguments
control take
Take Remote Control. Takes remote control of the test set (required before start/stop and other control functions).
None
control yield
Yield Remote Control. Yields remote control of the test set back to the local user.
None
PAUSE subsystem (2)
Command
What it does
Arguments
pause phasediff
Pause Phase Difference. Pauses updates to the one second phase difference data set.
None
pause freqdiff
Pause Frequency Difference. Pauses updates to the one second frequency difference data set.
None
RESUME subsystem (2)
Command
What it does
Arguments
resume phasediff
Resume Phase Difference. Resumes updates to the one second phase difference data set.
None
resume freqdiff
Resume Frequency Difference. Resumes updates to the one second frequency difference data set.
None
REMOVELINEAR subsystem (2)
Command
What it does
Arguments
removelinear on
Remove Linear On. Turns removal of the measured linear trend from the phase difference data on.
None
removelinear off
Remove Linear Off. Turns removal of the measured linear trend from the phase difference data off.
None
PROMPT subsystem (2)
Command
What it does
Arguments
prompt on
Prompt On. Turns the command port prompt on.
None
prompt off
Prompt Off. Turns the command port prompt off.
None
HELP subsystem (2)
Command
What it does
Arguments
help
Help. Returns a list of all available commands.
None
help <Command>
Help Command. Returns the usage (and abbreviations) of the given command.
Text
START subsystem (1)
Command
What it does
Arguments
start
Start Collection. Begins data collection (requires remote control); phase data then streams on the data port (default 1298).
None
Run control (1)
Command
What it does
Arguments
stop
Stop Collection. Stops data collection.
None
MEASURELINEAR subsystem (1)
Command
What it does
Arguments
measurelinear
Measure Linear Trend. Measures the linear trend of the phase difference data set (shorthand ml).
None
HISTORY subsystem (1)
Command
What it does
Arguments
history
Command History. Lists previously entered commands.
None
BEEP subsystem (1)
Command
What it does
Arguments
beep
Beep. Beeps the PC speaker of the test set.
None
RESET subsystem (1)
Command
What it does
Arguments
reset
Reset. Resets the test set.
None
RESTOREFACTORYDEFAULTS subsystem (1)
Command
What it does
Arguments
restorefactorydefaults
Restore Factory Defaults. Restores all persistent settings to factory defaults and reboots the test set.
None
QUIT subsystem (1)
Command
What it does
Arguments
quit
Quit. Closes the command port connection.
None
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
Where these commands come from
This reference is generated from TestFlow's instrument library, which is drafted from Microchip's programming documentation for the 5125A and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Microchip's programming manual: check it before you rely on an edge case. Last updated September 26, 2026.
Frequently asked questions
Does the Microchip 5125A support SCPI remote control?
Yes. The Microchip 5125A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 58 SCPI commands for it: 24 queries that read values or state, and 34 settings and actions.
How do I control the Microchip 5125A 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?, pause freqdiff and show state.
Which command reads a value from the Microchip 5125A?
show state (read state). Returns the current collecting state plus the collection duration when collecting. The full list of queries is in the command reference on this page, grouped by subsystem.
Can I automate the Microchip 5125A 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 Microchip 5125A 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.