Radio Test Set · SCPI command reference

Tescom MTP120A SCPI commands

The Tescom MTP120A radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 60 commands for it, 31 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 MTP120A on a real bench.

Commands
60
Queries
31
Subsystems
9
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Tescom MTP120A and writes the report from the measured results.

Get started

Control the Tescom MTP120A 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 Tescom MTP120A's VISA address

# Paste the address of your Tescom MTP120A (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("SOURce:GENerator:OUT_A1:STATe ON")  # Generator On
print(inst.query("READ:LINK:BT_A:CONNected:BDADdress?"))  # Read BT Connected Address

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Tescom MTP120A and writes the report from the measured results.

Get started

Run a MTP120A test without writing code

Describe the test in a sentence, for example “generator on on the MTP120A, then read bt connected address 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

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

Configure (CONFigure) (27)

CommandWhat it doesArguments
CONFigure:MEASurement:<Port>:MODe <Mode>Set Analyzer Mode. Sets the input port mode: AMP or LINE.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Text: AMP,LINE
CONFigure:MEASurement:<Port>:MODe?Read Analyzer Mode. Returns the input port mode (AMP or LINE).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:TONE:ENHANced ONEnhanced Mode On. Turns enhanced mode on (from 20 Hz, FFT size 32768).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:TONE:ENHANced OFFEnhanced Mode Off. Turns enhanced mode off (from 100 Hz, FFT size 8196).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:TONE:ENHANced?Read Enhanced Mode. Returns the enhanced mode state (ON or OFF).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:TARGet <Target>Set Sweep Target. Sets the generator port (target SG) used as the source for sweep measurements on the input port.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2
CONFigure:MEASurement:<Port>:TARGet?Read Sweep Target. Returns the generator port used as the sweep source.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:STEP:STARt <Freq>Set Step Start Frequency. Sets the step sweep start frequency in Hz (20 to 20000).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 20,20000
CONFigure:MEASurement:<Port>:STEP:STARt?Read Step Start Frequency. Returns the step sweep start frequency in Hz.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:STEP:END <Freq>Set Step End Frequency. Sets the step sweep end frequency in Hz (20 to 20000).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 20,20000
CONFigure:MEASurement:<Port>:STEP:END?Read Step End Frequency. Returns the step sweep end frequency in Hz.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:STEP:NUMPoint <Points>Set Step Points. Sets the number of step sweep points (10 to 10000).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 10,10000
CONFigure:MEASurement:<Port>:STEP:NUMPoint?Read Step Points. Returns the number of step sweep points.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:STEP:SCALe <Scale>Set Step Scale. Sets the step sweep frequency scale.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Text: LOG,LINEAR
CONFigure:MEASurement:<Port>:STEP:SCALe?Read Step Scale. Returns the step sweep frequency scale.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:STEP:NUMRetry <Retries>Set Step Retries. Sets the number of retries per step (3 to 10).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 3,10
CONFigure:MEASurement:<Port>:STEP:NUMRetry?Read Step Retries. Returns the number of retries per step.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:SWEEP:STARt <Freq>Set Sweep Start Frequency. Sets the hybrid sweep start frequency in Hz (20 or 100).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 20,100
CONFigure:MEASurement:<Port>:SWEEP:STARt?Read Sweep Start Frequency. Returns the hybrid sweep start frequency in Hz.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:SWEEP:END <Freq>Set Sweep End Frequency. Sets the hybrid sweep end frequency in Hz (4000, 8000, 10000 or 20000).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 4000,8000,10000,20000
CONFigure:MEASurement:<Port>:SWEEP:END?Read Sweep End Frequency. Returns the hybrid sweep end frequency in Hz.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:SWEEP:OCTave <Octave>Set Sweep Octave. Sets the octave band resolution of the hybrid sweep (3, 6 or 12).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 3,6,12
CONFigure:MEASurement:<Port>:SWEEP:OCTave?Read Sweep Octave. Returns the octave band resolution of the hybrid sweep.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:SWEEP:ACTtime <Seconds>Set Sweep Active Time. Sets the hybrid sweep active time in seconds (0 to 10).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 0,10
CONFigure:MEASurement:<Port>:SWEEP:ACTtime?Read Sweep Active Time. Returns the hybrid sweep active time in seconds.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
CONFigure:MEASurement:<Port>:SWEEP:INACTtime <Seconds>Set Sweep Inactive Time. Sets the hybrid sweep inactive time in seconds (0 to 10).Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1; Number: 0,10
CONFigure:MEASurement:<Port>:SWEEP:INACTtime?Read Sweep Inactive Time. Returns the hybrid sweep inactive time in seconds.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1

Read (READ) (11)

CommandWhat it doesArguments
READ:LINK:<Port>:CONNected:BDADdress?Read BT Connected Address. Returns the BD address of the connected Bluetooth device.Text: BT_A,BT_B
READ:LINK:<Port>:CONNected:NAMe?Read BT Connected Name. Returns the name of the connected Bluetooth device.Text: BT_A,BT_B
READ:LINK:<Port>:CONNected:LINk?Read BT Link State. Returns 1 if a Bluetooth device is connected or 0 if not.Text: BT_A,BT_B
READ:MEASurement:<Port>:DISTortion:SNR?Read Distortion SNR. Returns the measured SNR.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
READ:MEASurement:<Port>:DISTortion:THD?Read Distortion THD. Returns the measured THD.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
READ:MEASurement:<Port>:DISTortion:SINAD?Read Distortion SINAD. Returns the measured SINAD.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
READ:MEASurement:<Port>:DISTortion:LEVEL?Read Distortion Level. Returns the measured level.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
READ:MEASurement:<Port>:DISTortion:FREQ?Read Distortion Frequency. Returns the measured frequency.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
READ:MEASurement:<Port>:DISTortion:GRAPh?Read Distortion Graph. Returns the spectrum graph as a frequency list and a level list.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
READ:MEASurement:<Port>:STEP?Read Step Sweep. Returns [FREQ, LEVEL, SNR, THD, SINAD] for each step frequency.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
READ:MEASurement:<Port>:SWEEP?Read Hybrid Sweep. Returns the hybrid sweep result as a frequency list and a value list.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1

Source (SOURce) (9)

CommandWhat it doesArguments
SOURce:GENerator:<Port>:STATe ONGenerator On. Turns on single-tone generation on the selected output port.Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2
SOURce:GENerator:<Port>:STATe OFFGenerator Off. Turns off single-tone generation on the selected output port.Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2
SOURce:GENerator:<Port>:STATe?Read Generator State. Returns ON or OFF for the selected output port.Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2
SOURce:GENerator:<Port>:MODe <Mode>Set Generator Mode. Sets the output port mode: AMP (amplifier) or LINE.Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2; Text: AMP,LINE
SOURce:GENerator:<Port>:MODe?Read Generator Mode. Returns the output port mode (AMP or LINE).Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2
SOURce:GENerator:<Port>:TONE:FREQuency <Freq>Set Tone Frequency. Sets the single-tone frequency in Hz (20 to 20000).Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2; Number: 20,20000
SOURce:GENerator:<Port>:TONE:FREQuency?Read Tone Frequency. Returns the single-tone frequency in Hz.Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2
SOURce:GENerator:<Port>:TONE:LEVel <Level>Set Tone Level. Sets the single-tone level in dBV (AMP: -60 to 10, LINE: -80 to 0).Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2; Number: -80,10
SOURce:GENerator:<Port>:TONE:LEVel?Read Tone Level. Returns the single-tone level in dBV.Text: OUT_A1,OUT_A2,OUT_B1,OUT_B2,BT_OUT_A1,BT_OUT_A2,BT_OUT_B1,BT_OUT_B2

EXEC subsystem (5)

CommandWhat it doesArguments
EXECute:LINK:<Port>:DISCOVerBT Discover Connect. Searches for a Bluetooth device on the selected BT RF port and connects to the device found.Text: BT_A,BT_B
EXECute:LINK:<Port>:DISConnectBT Disconnect. Disconnects the Bluetooth device connected on the selected BT RF port.Text: BT_A,BT_B
EXECute:MEASurement:<Port>:DISTortionMeasure Distortion. Starts the single-tone distortion measurement on the input port.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
EXECute:MEASurement:<Port>:STEPMeasure Step Sweep. Starts the step sweep measurement.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1
EXECute:MEASurement:<Port>:SWEEPMeasure Hybrid Sweep. Starts the hybrid sweep measurement.Text: IN_A1,IN_A2,IN_B1,IN_B2,BT_IN_A1,BT_IN_B1

System (SYSTem) (1)

CommandWhat it doesArguments
SYSTem:ERRor?Read Error. Returns the error code, error string and offending command (0 = No error).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

IEEE 488.2 common commands (4)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial number, firmware).None
*CLSClear Status. Clears all event registers and the error queue.None
*OPC?Operation Complete. Returns 1 when the previous command has completed and 0 otherwise.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Tescom's programming documentation for the MTP120A and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Tescom's programming manual: check it before you rely on an edge case. Last updated September 27, 2026.

Frequently asked questions

Does the Tescom MTP120A support SCPI remote control?

Yes. The Tescom MTP120A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 60 SCPI commands for it: 31 queries that read values or state, and 29 settings and actions.

How do I control the Tescom MTP120A 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?, SOURce:GENerator:OUT_A1:STATe ON and READ:LINK:BT_A:CONNected:BDADdress?.

Which command reads a value from the Tescom MTP120A?

READ:LINK:BT_A:CONNected:BDADdress? (read bt connected address). Returns the BD address of the connected Bluetooth device. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Tescom MTP120A 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 Tescom MTP120A 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.