Vector Network Analyzer · SCPI command reference

Tektronix TTR503A and TTR506A SCPI commands

The Tektronix TTR503A and TTR506A vector network analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 47 commands for it, 6 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 TTR503A on a real bench.

Commands
47
Queries
6
Subsystems
14
Models covered
2

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Tektronix TTR503A or TTR506A and writes the report from the measured results.

Get started

Control the Tektronix TTR503A 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 Tektronix TTR503A's VISA address

# Paste the address of your Tektronix TTR503A (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("OUTPut:STATe 1")  # RF Power On
print(inst.query("CALCulate:SELected:DATA:FDATa?"))  # Read Formatted Data

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Tektronix TTR503A or TTR506A and writes the report from the measured results.

Get started

Run a TTR503A test without writing code

Describe the test in a sentence, for example “rf power on on the TTR503A, then read formatted data 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

47 commands in 14 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The TTR503A and TTR506A share this command set in TestFlow's library.

Sense (SENSe) (14)

CommandWhat it doesArguments
SENSe:FREQuency:STARt <Frequency>Set Start Freq. Sets the sweep start frequency in Hz.Number
SENSe:FREQuency:STOP <Frequency>Set Stop Freq. Sets the sweep stop frequency in Hz.Number
SENSe:FREQuency:CENTer <Frequency>Set Center Freq. Sets the sweep center frequency in Hz.Number
SENSe:FREQuency:SPAN <Frequency>Set Span Freq. Sets the sweep frequency span in Hz.Number
SENSe:FREQuency:CW <Frequency>Set CW Freq. Sets the CW (fixed) frequency in Hz.Number
SENSe:SWEep:POINts <Points>Set Points. Sets the number of measurement points per sweep.Number
SENSe:SWEep:TYPE <Type>Set Sweep Type. Sets the sweep type.Text: LINear,LOGarithmic,SEGMent,POWer
SENSe:BANDwidth:RESolution <Bandwidth>Set IF Bandwidth. Sets the IF bandwidth in Hz.Number
SENSe:AVERage:STATe 1Average On. Enables trace averaging.None
SENSe:AVERage:STATe 0Average Off. Disables trace averaging.None
SENSe:AVERage:COUNt <Count>Set Average Count. Sets the number of sweeps to average.Number
SENSe:AVERage:CLEarAverage Clear. Restarts (clears) the averaging measurement.None
SENSe:CORRection:STATe 1Correction On. Turns measurement error correction (calibration) on.None
SENSe:CORRection:STATe 0Correction Off. Turns measurement error correction (calibration) off.None

Calculate (CALCulate) (11)

CommandWhat it doesArguments
CALCulate:PARameter:COUNt <Count>Set Param Count. Sets the number of measurement parameters (traces) for the channel.Number
CALCulate:PARameter<Trace>:DEFine <Parameter>Define Measurement. Assigns an S-parameter to the specified trace.Number: 1,2,3,4; Text: S11,S12,S21,S22
CALCulate:SELected:FORMat <Format>Set Format. Sets the display/data format of the selected trace.Text: MLOGarithmic,MLINear,PHASe,GDELay,SMITh,SLINear,SLOGarithmic,SCOMplex,SADMittance,SWR,REAL,IMAGinary
CALCulate:SELected:DATA:FDATa?Read Formatted Data. Returns the formatted trace data array of the selected trace.None
CALCulate:SELected:DATA:SDATa?Read Complex Data. Returns the complex (real/imag) trace data of the selected trace.None
CALCulate:SELected:MARKer<Marker>:STATe 1Marker On. Turns on the specified marker on the selected trace.Number: 1,2,3,4,5,6,7,8
CALCulate:SELected:MARKer<Marker>:STATe 0Marker Off. Turns off the specified marker on the selected trace.Number: 1,2,3,4,5,6,7,8
CALCulate:SELected:MARKer<Marker>:X <Frequency>Set Marker X. Sets the marker stimulus position in Hz.Number: 1,2,3,4,5,6,7,8; Number
CALCulate:SELected:MARKer<Marker>:Y?Read Marker Y. Returns the marker response value.Number: 1,2,3,4,5,6,7,8
CALCulate:SELected:MARKer<Marker>:FUNCtion:TYPE MAXimum ; CALCulate:SELected:MARKer<Marker>:FUNCtion:EXECuteMarker Search Max. Moves the marker to the trace maximum.Number: 1,2,3,4,5,6,7,8
CALCulate:SELected:MARKer<Marker>:FUNCtion:TYPE MINimum ; CALCulate:SELected:MARKer<Marker>:FUNCtion:EXECuteMarker Search Min. Moves the marker to the trace minimum.Number: 1,2,3,4,5,6,7,8

Initiate (INITiate) (3)

CommandWhat it doesArguments
INITiate:CONTinuous 1Continuous On. Enables continuous (free-run) triggering.None
INITiate:CONTinuous 0Continuous Off. Disables continuous triggering (hold/single mode).None
INITiate:IMMediateTrigger Single. Triggers a single sweep when not in continuous mode.None

Display (DISPlay) (3)

CommandWhat it doesArguments
DISPlay:CHANnel:TRACe:Y:SCALe:AUTOAutoscale. Autoscales the selected trace to fit the display.None
DISPlay:ENABle 1Display Enable. Enables display updates.None
DISPlay:ENABle 0Display Disable. Disables display updates to speed up remote measurements.None

Output (OUTPut) (2)

CommandWhat it doesArguments
OUTPut:STATe 1RF Power On. Turns the RF source power output on.None
OUTPut:STATe 0RF Power Off. Turns the RF source power output off.None

Mass memory (MMEMory) (2)

CommandWhat it doesArguments
MMEMory:STORe '<Filename>'Save State. Saves the instrument state to the named file.Text
MMEMory:LOAD '<Filename>'Recall State. Recalls an instrument state from the named file.Text

Source (SOURce) (1)

CommandWhat it doesArguments
SOURce:POWer:LEVel <Power>Set Power Level. Sets the source output power level in dBm.Number

Trigger (TRIGger) (1)

CommandWhat it doesArguments
TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source for the sweep.Text: INTernal,EXTernal,MANual,BUS

Abort (1)

CommandWhat it doesArguments
ABORtAbort. Resets the trigger system and stops the current measurement.None

System (SYSTem) (1)

CommandWhat it doesArguments
SYSTem:ERRor?Read Error. Reads the next message from the error queue.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 (5)

CommandWhat it doesArguments
*RSTPreset. Presets the analyzer to its default measurement state.None
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*CLSClear Status. Clears all event registers and the error queue.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.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 Tektronix's programming documentation for the TTR503A and TTR506A and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Tektronix's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Tektronix TTR503A support SCPI remote control?

Yes. The Tektronix TTR503A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 47 SCPI commands for it: 6 queries that read values or state, and 41 settings and actions.

How do I control the Tektronix TTR503A 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?, OUTPut:STATe 1 and CALCulate:SELected:DATA:FDATa?.

Which command reads a value from the Tektronix TTR503A?

CALCulate:SELected:DATA:FDATa? (read formatted data). Returns the formatted trace data array of the selected trace. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Tektronix TTR503A 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 Tektronix TTR503A 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.