Phase Noise Analyzer · SCPI command reference

Microchip 5120A-01 SCPI commands

The Microchip 5120A-01 phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 61 commands for it, 25 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 5120A-01 on a real bench.

Commands
61
Queries
25
Subsystems
22
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Microchip 5120A-01 and writes the report from the measured results.

Get started

Control the Microchip 5120A-01 from Python

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 5120A-01's VISA address

# Paste the address of your Microchip 5120A-01 (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 5120A-01 and writes the report from the measured results.

Get started

Run a 5120A-01 test without writing code

Describe the test in a sentence, for example “pause frequency difference on the 5120A-01, 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.

Get started

SCPI command reference

61 commands in 22 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

SHOW subsystem (20)

CommandWhat it doesArguments
show stateRead State. Returns the current collecting state and time constant plus the collection duration when collecting.None
show inputsRead Inputs. Returns frequency and amplitude of the Input and Reference signals (current and last collection).None
show spectrumMeasure Spectrum. Returns the L(f) phase noise spectrum as offset frequency (Hz) and PSD (dBc/Hz) pairs followed by the noise floor.None
show spursMeasure Spurs. Returns the spur table (index, offset frequency and power of each spur).None
show ipnMeasure Integrated Phase Noise. Returns the integrated phase noise table.None
show adevMeasure ADEV. Returns the Allan deviation table for each tau0 with the noise equivalent bandwidth and noise floor.None
show phasediffMeasure Phase Difference. Returns the one second phase difference strip chart data (with linear trend info when removed).None
show freqdiffMeasure Frequency Difference. Returns the one second frequency difference strip chart data.None
show fcounterMeasure Frequency Counter. Returns the frequency counter table (reference frequency then averaging interval and average frequency).None
show tau0Read Tau0. Returns the current tau0 value.None
show phaserateRead Phase Rate. Returns the current data port phase rate value.None
show screensRead Printable Screens. Returns the names of the screens and data sets that can be printed.None
show printformatsRead Print Formats. Returns the acceptable values for the set print format command.None
show printoptionsRead Print Options. Returns the current print job destination and print format.None
show titleRead Title. Returns the current user specified title.None
show dateRead Date. Returns the current date and time in the configured format.None
show dateformatRead Date Format. Returns the selected printout date stamp format.None
show timeformatRead Time Format. Returns the selected printout time stamp format.None
show versionRead Version. Returns model, software and hardware version information and installed options.None
show macRead MAC Address. Returns the MAC (Ethernet hardware) address of the test set.None

SET subsystem (13)

CommandWhat it doesArguments
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 autoSet 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 localPrint To Local. Sends new print jobs to the local (USB) printer.None
set print filePrint 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)

CommandWhat it doesArguments
printPrint 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).Text: spectplot,ipn,spurtable,adevplot,adevtable,phasediff,freqdiff,fcounter,settings,all
print cancelCancel Print Jobs. Cancels all pending print jobs.None

CONTROL subsystem (2)

CommandWhat it doesArguments
control takeTake Remote Control. Takes remote control of the test set (required before start/stop and other control functions).None
control yieldYield Remote Control. Yields remote control of the test set back to the local user.None

PAUSE subsystem (2)

CommandWhat it doesArguments
pause phasediffPause Phase Difference. Pauses updates to the one second phase difference data set.None
pause freqdiffPause Frequency Difference. Pauses updates to the one second frequency difference data set.None

RESUME subsystem (2)

CommandWhat it doesArguments
resume phasediffResume Phase Difference. Resumes updates to the one second phase difference data set.None
resume freqdiffResume Frequency Difference. Resumes updates to the one second frequency difference data set.None

REMOVELINEAR subsystem (2)

CommandWhat it doesArguments
removelinear onRemove Linear On. Turns removal of the measured linear trend from the phase difference data on.None
removelinear offRemove Linear Off. Turns removal of the measured linear trend from the phase difference data off.None

PROMPT subsystem (2)

CommandWhat it doesArguments
prompt onPrompt On. Turns the command port prompt on.None
prompt offPrompt Off. Turns the command port prompt off.None

HELP subsystem (2)

CommandWhat it doesArguments
helpHelp. 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)

CommandWhat it doesArguments
startStart Collection. Begins data collection (requires remote control); phase data then streams on the data port (default 1298).None

Run control (1)

CommandWhat it doesArguments
stopStop Collection. Stops data collection.None

MEASURELINEAR subsystem (1)

CommandWhat it doesArguments
measurelinearMeasure Linear Trend. Measures the linear trend of the phase difference data set (shorthand ml).None

CALIBRATE subsystem (1)

CommandWhat it doesArguments
calibrateCalibrate Internal Reference. Calibrates the 5120A-01 internal reference oscillators against a 10 MHz signal on the Input port (collect for at least 17 minutes first).None

CALINFO subsystem (1)

CommandWhat it doesArguments
calinfoRead Calibration Info. Returns the date/time of calibration and the calibrated frequencies of both 5120A-01 internal reference oscillators.None

HISTORY subsystem (1)

CommandWhat it doesArguments
historyCommand History. Lists previously entered commands.None

BEEP subsystem (1)

CommandWhat it doesArguments
beepBeep. Beeps the PC speaker of the test set.None

RESET subsystem (1)

CommandWhat it doesArguments
resetReset. Resets the test set.None

RESTOREFACTORYDEFAULTS subsystem (1)

CommandWhat it doesArguments
restorefactorydefaultsRestore Factory Defaults. Restores all persistent settings to factory defaults and reboots the test set.None

QUIT subsystem (1)

CommandWhat it doesArguments
quitQuit. Closes the command port connection.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Microchip's programming documentation for the 5120A-01 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 5120A-01 support SCPI remote control?

Yes. The Microchip 5120A-01 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 61 SCPI commands for it: 25 queries that read values or state, and 36 settings and actions.

How do I control the Microchip 5120A-01 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 5120A-01?

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 5120A-01 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 5120A-01 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.