The Microchip 5115A and 5120A phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 59 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 5115A on a real bench.
Commands
59
Queries
24
Subsystems
20
Models covered
2
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Microchip 5115A or 5120A 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 5115A's VISA address
# Paste the address of your Microchip 5115A (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 5115A or 5120A and writes the report from the measured results.
Describe the test in a sentence, for example “pause frequency difference on the 5115A, 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.
59 commands in 20 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The 5115A and 5120A share this command set in TestFlow's library.
SHOW subsystem (20)
Command
What it does
Arguments
show state
Read State. Returns the current collecting state and time constant plus the collection duration when collecting.
None
show inputs
Read Inputs. Returns frequency and amplitude of the Input and Reference signals (current and last collection).
None
show spectrum
Measure Spectrum. Returns the L(f) phase noise spectrum as offset frequency (Hz) and PSD (dBc/Hz) pairs.
None
show spurs
Measure Spurs. Returns the spur table (index, offset frequency and power of each spur).
None
show ipn
Measure Integrated Phase Noise. Returns the integrated phase noise table.
None
show adev
Measure ADEV. Returns the Allan deviation table for each tau0 with the noise equivalent bandwidth.
None
show phasediff
Measure Phase Difference. Returns the one second phase difference strip chart data (with linear trend info when removed).
None
show freqdiff
Measure Frequency Difference. Returns the one second frequency difference strip chart data.
None
show fcounter
Measure Frequency Counter. Returns the frequency counter table (reference frequency then averaging interval and average frequency).
None
show tau0
Read Tau0. Returns the current tau0 value.
None
show phaserate
Read Phase Rate. Returns the current data port phase rate value.
None
show screens
Read Printable Screens. Returns the names of the screens and data sets that can be printed.
None
show printformats
Read Print Formats. Returns the acceptable values for the set print format command.
None
show printoptions
Read Print Options. Returns the current print job destination and print format.
None
show title
Read Title. Returns the current user specified title.
None
show date
Read Date. Returns the current date and time in the configured format.
None
show dateformat
Read Date Format. Returns the selected printout date stamp format.
None
show timeformat
Read Time Format. Returns the selected printout time stamp format.
None
show version
Read Version. Returns model, software and hardware version information and installed options.
None
show mac
Read MAC Address. Returns the MAC (Ethernet hardware) address of the test set.
None
SET subsystem (13)
Command
What it does
Arguments
set timeconstant <Value>
Set Time Constant. Sets the running-average time constant for spectrum and Allan deviation in s (0 = infinite; 1, 10 or 100).
Number: 0,1,10,100
set tau0 <Tau0>
Set Tau0. Sets the Allan deviation tau0 value in s (0.001, 0.01, 0.1 or 1).
Number: 0.001,0.01,0.1,1
set referencefreq auto
Set Reference Freq Auto. Sets the frequency counter reference frequency automatically each time data collection starts.
None
set referencefreq <Frequency>
Set Reference Freq. Sets the frequency counter reference frequency manually in MHz (e.g. 5.0000003).
Number
set phaserate <Rate>
Set Phase Rate. Sets the data port output rate in samples per second (1, 10, 100 or 1000; default 1000).
Number: 1,10,100,1000
set print format <Format>
Set Print Format. Selects the print job format.
Text: pcl5,postscript
set print local
Print To Local. Sends new print jobs to the local (USB) printer.
None
set print file
Print To File. Sends new print jobs to the file system (fetch print jobs using FTP).
None
set print remote <Host> <Port>
Print To Remote. Sends new print jobs to a network printer at the given IP address and port (e.g. 9100).
Text; Number
set title <Title>
Set Title. Sets the user specified title printed on all printouts (quoted string up to 34 characters).
Text
set date <DateTime>
Set Date. Sets the system date and time (format YYYYMMDDhhmmss).
Text
set dateformat <Format>
Set Date Format. Sets the printout date format (1 = three letter month; 2 = mm/dd/yyyy; 3 = dd/mm/yyyy).
Number: 1,2,3
set timeformat <Format>
Set Time Format. Sets the printout time format (24 = 24 hour; 12 = 12 hour with AM/PM).
Number: 24,12
PRINT subsystem (3)
Command
What it does
Arguments
print
Print Screen. Prints the screen currently displayed by the graphical user interface.
None
print <DataSet>
Print Data Set. Prints the given plot or table (several names may be listed separated by spaces).
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 5115A and 5120A 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 5115A support SCPI remote control?
Yes. The Microchip 5115A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 59 SCPI commands for it: 24 queries that read values or state, and 35 settings and actions.
How do I control the Microchip 5115A 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 5115A?
show state (read state). Returns the current collecting state and time constant 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 5115A 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 5115A 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.