Function Generator · SCPI command reference

Aim-TTi TG2512A, TG5011A, and TG5012A SCPI commands

The Aim-TTi TG2512A, TG5011A, and TG5012A function generator is controlled remotely with SCPI commands. TestFlow's instrument library holds 63 commands for it, 0 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 TG2512A on a real bench.

Commands
63
Queries
0
Subsystems
56
Models covered
3

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi TG2512A, TG5011A, or TG5012A and writes the report from the measured results.

Get started

Control the Aim-TTi TG2512A 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 Aim-TTi TG2512A's VISA address

# Paste the address of your Aim-TTi TG2512A (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 ON")  # Turn on

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi TG2512A, TG5011A, or TG5012A and writes the report from the measured results.

Get started

Run a TG2512A test without writing code

Describe the test in a sentence, for example “turn on on the TG2512A, then log the reading 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

63 commands in 56 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The TG2512A, TG5011A, and TG5012A share this command set in TestFlow's library.

Modulation (5)

CommandWhat it doesArguments
MOD <MOD >Modulation. Enable or select modulation type.Text: OFF,AM,FM,PM,FSK,SUM,BPSK,PWM
MOD<MOD>SHAPE <Shape>Modulation shape. Select internal modulation waveform shape.Text: AM,FM,PM,PWM; Text: SINE,SQUARE,RAMPUP,RAMPDN,TRIANG,NOISE,DC,SINC,EXPRISE,LOGRISE,ARB1,ARB2,ARB3,ARB4,PRBSPN7,PRBSPN9,PRBSPN11,PRBSPN15,PRBSPN20,PRBSPN23
MOD<MOD>SRC <Source>Modulation source. Select modulation source (internal or external).Text: AM,FM,PM,PWM; Text: INT, EXT
MOD<MOD>FREQ <Hz>Modulation frequency. Set modulation frequency.Text: AM,FM,PM,PWM; Number
MOD<MOD>DEV <Value>Deviation. Set deviation value for FM, PM or PWM.Text: FM,PM; Number

OUTPUT subsystem (3)

CommandWhat it doesArguments
OUTPUT ONTurn on. Enable output for active channel.None
OUTPUT OFFTurn off. Disable output for active channel.None
OUTPUT <State>Output. Control output state and polarity.Text: ON,OFF,NORMAL,INVERT

ZLOAD subsystem (2)

CommandWhat it doesArguments
ZLOAD <Ohms>Output load. Set output load impedance in ohms.None
ZLOAD OPENOpen Load. Set output load to high impedance (OPEN).None

CHN subsystem (1)

CommandWhat it doesArguments
CHN <Channel>Channel select. Select output channel (1 or 2).Number: 1,2

WAVE subsystem (1)

CommandWhat it doesArguments
WAVE <Wave>Wave. Select waveform type for the active channel.Text: SINE,SQUARE,RAMP,TRIANG,PULSE,NOISE,PRBSPN7,PRBSPN9,PRBSPN11,PRBSPN15,PRBSPN20,PRBSPN23,ARB

Frequency (FREQuency) (1)

CommandWhat it doesArguments
FREQ <Hz>Set frequency. Set output frequency in Hz.Number

PER subsystem (1)

CommandWhat it doesArguments
PER <Second>Set period. Set output period in seconds (inverse of frequency).Number

AMPLRNG subsystem (1)

CommandWhat it doesArguments
AMPLRNG <cpd>Amplitude range. Set amplitude autorange mode (AUTO or HOLD).Text: AUTO,HOLD

AMPUNIT subsystem (1)

CommandWhat it doesArguments
AMPUNIT <unit>Amplitude units. Select amplitude unit (Vpp, Vrms or dBm).Text: VPP,VRMS,DBM

AMPL subsystem (1)

CommandWhat it doesArguments
AMPL <AMPL>Set amplitude. Set output amplitude in selected unit.Number

HILVL subsystem (1)

CommandWhat it doesArguments
HILVL <Volt>High level. Set high voltage level for waveform.Number

LOLVL subsystem (1)

CommandWhat it doesArguments
LOLVL <Volt>Low level. Set low voltage level for waveform.Number

DCOFFS subsystem (1)

CommandWhat it doesArguments
DCOFFS <V>DC offset. Set DC offset voltage.Number

SQRSYMM subsystem (1)

CommandWhat it doesArguments
SQRSYMM <%>Square symmetry. Set square wave duty cycle (%).Number

RMPSYMM subsystem (1)

CommandWhat it doesArguments
RMPSYMM <%>Ramp symmetry. Set ramp waveform symmetry (%).Number

SYNCOUT subsystem (1)

CommandWhat it doesArguments
SYNCOUT <ON/OFF>Sync output. Enable or disable sync output.Text: ON,OFF

SYNCTYPE subsystem (1)

CommandWhat it doesArguments
SYNCTYPE <Type>Sync type. Select sync output source type.Text: AUTO,CARRIER,MODULATION,SWEEP,BURST,TRIGGER

PHASE subsystem (1)

CommandWhat it doesArguments
PHASE <Degrees>Phase offset. Set phase offset in degrees relative to reference.Number

ALIGN subsystem (1)

CommandWhat it doesArguments
ALIGNAlign zero phase ref. Align waveform phase to zero reference.None

PULSFREQ subsystem (1)

CommandWhat it doesArguments
PULSFREQ <Hz>Pulse frequency. Set pulse waveform frequency.Number

PULSPER subsystem (1)

CommandWhat it doesArguments
PULSPER <S>Pulse period. Set pulse waveform period.Number

PULSWID subsystem (1)

CommandWhat it doesArguments
PULSWID <S>Pulse width. Set pulse width duration.Number

PULSSYMM subsystem (1)

CommandWhat it doesArguments
PULSSYMM <%>Pulse symmetry. Set pulse symmetry percentage.Number

PULSEDGE subsystem (1)

CommandWhat it doesArguments
PULSEDGE <S>Pulse edge. Set pulse edge time (rise/fall).Number

PULSRANGE subsystem (1)

CommandWhat it doesArguments
PULSRANGE <1,2,3>Pulse Range. Select pulse output range (model dependent).Number: 1,2,3

PULSRISE subsystem (1)

CommandWhat it doesArguments
PULSRISE <S>Pulse P-edge. Set pulse positive edge (rise time).Number

PULSFALL subsystem (1)

CommandWhat it doesArguments
PULSFALL <S>Pulse N-edge. Set pulse negative edge (fall time).Number

PULSDLY subsystem (1)

CommandWhat it doesArguments
PULSDLY <S>Pulse delay. Set delay before pulse start.Number

NOISADD subsystem (1)

CommandWhat it doesArguments
NOISADD <ON/OFF>Add noise. Enable or disable additive noise.Text: ON,OFF

NOISLVL subsystem (1)

CommandWhat it doesArguments
NOISLVL <%>Noise level. Set noise amplitude level (%).Number

WAVELVL subsystem (1)

CommandWhat it doesArguments
WAVELVL <%>Waveform level. Set waveform amplitude scaling level (%).Number

PRBSBITRATE subsystem (1)

CommandWhat it doesArguments
PRBSBITRATE <bps>PRBS bit rate. Set PRBS bit rate (bits per second).Number

PRBSEDGE subsystem (1)

CommandWhat it doesArguments
PRBSEDGE <S>PRBS edge. Set PRBS edge transition time.Number

MODAMDEPTH subsystem (1)

CommandWhat it doesArguments
MODAMDEPTH <%>AM depth. Set AM modulation depth (%).Number

MODFMDEV subsystem (1)

CommandWhat it doesArguments
MODFMDEV <Hz>FM deviation. Set FM frequency deviation.Number

MODSUMLEVEL subsystem (1)

CommandWhat it doesArguments
MODSUMLEVEL <Level>SUM level. Set SUM modulation level.Number

SWPTYPE subsystem (1)

CommandWhat it doesArguments
SWPTYPE <Type>Sweep type. Select sweep direction and profile.Text: LINUP,LINDN,LINUPDN,LINDNUP,LOGUP,LOGDN,LOGUPDN,LOGDNUP

SWPMODE subsystem (1)

CommandWhat it doesArguments
SWPMODE <Mode>Sweep mode. Select sweep mode (continuous or triggered).Text: CONT, TRIG

SWPBEGFREQ subsystem (1)

CommandWhat it doesArguments
SWPBEGFREQ <Hz>Sweep start freq. Set sweep start frequency.Number

SWPENDFREQ subsystem (1)

CommandWhat it doesArguments
SWPENDFREQ <Hz>Sweep stop freq. Set sweep stop frequency.Number

SWPCNTFREQ subsystem (1)

CommandWhat it doesArguments
SWPCNTFREQ <Hz>Sweep center freq. Set sweep center frequency.Number

SWPSPNFREQ subsystem (1)

CommandWhat it doesArguments
SWPSPNFREQ <Hz>Sweep span freq. Set sweep span frequency.Number

SWPMKR subsystem (1)

CommandWhat it doesArguments
SWPMKR <ON/OFF>Sweep marker. Enable or disable sweep marker.Text: ON,OFF

SWPMKRFREQ subsystem (1)

CommandWhat it doesArguments
SWPMKRFREQ <Hz>Marker freq. Set sweep marker frequency.Number

SWPTIME subsystem (1)

CommandWhat it doesArguments
SWPTIME <S>Sweep time. Set total sweep time.Number

SWP subsystem (1)

CommandWhat it doesArguments
SWP <ON/OFF>Sweep. Enable or disable sweep mode.Text: ON,OFF

BSTCOUNT subsystem (1)

CommandWhat it doesArguments
BSTCOUNT <Cycles>Burst count. Set number of cycles in burst mode.Number

BSTPHASE subsystem (1)

CommandWhat it doesArguments
BSTPHASE <Degree>Burst phase. Set starting phase for burst mode.Number

BST subsystem (1)

CommandWhat it doesArguments
BST <Mode>Burst mode. Select burst mode type.Text: OFF,NCYC,GATED,INFINITE

TRGSRC subsystem (1)

CommandWhat it doesArguments
TRGSRC <Source>Trigger source. Select trigger source.Text: INT,EXT,CRC,MAN

TRGPER subsystem (1)

CommandWhat it doesArguments
TRGPER <S>Trigger period. Set internal trigger period.Number

TRGPOL subsystem (1)

CommandWhat it doesArguments
TRGPOL <POS/NEG>Trigger slope. Select trigger polarity (positive or negative).Text: POS,NEG

TRGOUT subsystem (1)

CommandWhat it doesArguments
TRGOUT <Trigger>Trigger output. Select trigger output routing.Text: AUTO,CARRIER,MODULATION,SWEEP,BURST,TRIGGER,OFF

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 mearurment to a variableText

Where these commands come from

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

Frequently asked questions

Does the Aim-TTi TG2512A support SCPI remote control?

Yes. The Aim-TTi TG2512A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 63 SCPI commands for it: 0 queries that read values or state, and 63 settings and actions.

How do I control the Aim-TTi TG2512A 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 ON.

Can I automate the Aim-TTi TG2512A 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 Aim-TTi TG2512A 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.