Function Generator · SCPI command comparison

Aim-TTi TG2511A vs Tektronix AFG1022: SCPI commands and remote control compared

In TestFlow's instrument library, the Aim-TTi TG2511A takes 56 SCPI commands, 4 of them queries, and the Tektronix AFG1022 takes 67 SCPI commands, 10 of them queries. That is 11 more on the AFG1022. Counting distinct command headers (the command path without its arguments), 7 are accepted by both, 31 exist only on the TG2511A, and 49 only on the AFG1022. 18% of the TG2511A's command headers also exist on the AFG1022.

Both libraries have commands under OUTPUT. Only the TG2511A has MOD, MODSRC, MODFREQ, ZLOAD, SWP, and BST and 22 more. Only the AFG1022 has SOURce and SYSTem.

Only the TG2511A library has an operation-complete command (*OPC?); the AFG1022 library has none. Only the AFG1022 library has an error-queue read (SYSTem:ERRor?); the TG2511A library has none.

TestFlow's library gives the AFG1062 the same command set as the AFG1022, so the AFG1022 column applies to it too.

TG2511A commands
56
AFG1022 commands
67
Shared headers
7
Unique headers
80

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi TG2511A or Tektronix AFG1022 and writes the report from the measured results.

Get started

TG2511A vs AFG1022 at a glance

Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.

Aim-TTi TG2511ATektronix AFG1022
Commands in TestFlow's library5667
Queries (read a value or state)410
Settings and actions5257
Subsystems387
Distinct command headers3856
Headers the other lacks3149
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueNot in librarySYSTem:ERRor?
Models on this command setTG2511AAFG1022, AFG1062

Commands both accept

7 command headers are in both libraries.

CommandWhat it does
*TRGTrigger Now. Issues a manual/bus trigger.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*RSTReset. Resets the instrument to its default state.
*CLSClear Status. Clears all status registers.
*WAIWait To Continue. Waits until all pending operations are complete.
*SAV <Slot>Save Setup. Stores the current setup to a memory slot (0 to 9).
*RCL <Slot>Recall Setup. Recalls a setup from a memory slot (0 to 9).

Only on the Aim-TTi TG2511A

31 command headers in the TG2511A library have no match in the AFG1022 library. Below are 7 of them from the 6 largest subsystems; the full list is in the Aim-TTi TG2511A command reference.

IEEE 488.2 common (*) (2 only on the TG2511A)

CommandWhat it does
*TST?Self Test. Runs the self-test and returns 0 for pass.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.

AMPL (1 only on the TG2511A)

CommandWhat it does
AMPL <Amp>Set Amplitude CH1. Sets the output amplitude (Vpp).

AMPUNIT (1 only on the TG2511A)

CommandWhat it does
AMPUNIT <Unit>Set Amplitude Unit CH1. Sets the amplitude unit.

ARBLOAD (1 only on the TG2511A)

CommandWhat it does
ARBLOAD <Name>Set Arb Waveform CH1. Selects the arbitrary waveform by name.

BEEPMODE (1 only on the TG2511A)

CommandWhat it does
BEEPMODE ONBeep On. Enables the beeper.

BST (1 only on the TG2511A)

CommandWhat it does
BST NCYCTurn On Burst CH1. Enables burst mode.

Only on the Tektronix AFG1022

49 command headers in the AFG1022 library have no match in the TG2511A library. Below are 10 of them from the 4 largest subsystems; the full list is in the Tektronix AFG1022 command reference.

SOURce (43 only on the AFG1022)

CommandWhat it does
SOURce<Channel>:FUNCtion:SHAPe <Shape>Set Function. Sets the output waveform shape for the selected channel.
SOURce<Channel>:FUNCtion:SHAPe?Read Function. Reads the output waveform shape for the selected channel.
SOURce<Channel>:FREQuency:FIXed <Freq>Set Frequency. Sets the output frequency in Hz for the selected channel.
SOURce<Channel>:FREQuency:FIXed?Read Frequency. Reads the output frequency for the selected channel.

OUTPut (4 only on the AFG1022)

CommandWhat it does
OUTPut<Channel>:STATe ONTurn On Output. Enables the selected channel output.
OUTPut<Channel>:STATe?Read Output State. Reads whether the selected channel output is on.
OUTPut<Channel>:IMPedance <Ohm>Set Output Impedance. Sets the the selected channel output load impedance in ohms (1 to 10k).
OUTPut<Channel>:IMPedance?Read Output Impedance. Reads the the selected channel output load impedance.

IEEE 488.2 common (*) (1 only on the AFG1022)

CommandWhat it does
*OPT?Read Options. Queries the installed options.

SYSTem (1 only on the AFG1022)

CommandWhat it does
SYSTem:ERRor?Read Error. Reads and clears the next error-queue entry.

Control both from Python

With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, the two libraries have no common command with a worked example on both, so each instrument uses its own: OUTPUT ON on the TG2511A and OUTPut1:STATe ON on the AFG1022. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: EER? on the TG2511A and SYSTem:ERRor? on the AFG1022. For the basics, see the PyVISA tutorial.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find both VISA addresses

a = rm.open_resource("PASTE_TG2511A_ADDRESS")  # Aim-TTi TG2511A
b = rm.open_resource("PASTE_AFG1022_ADDRESS")  # Tektronix AFG1022
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# No shared setting with an example on both, so each uses its own command
a.write("OUTPUT ON")  # Turn On Output CH1
b.write("OUTPut1:STATe ON")  # Turn On Output

# No shared reading with an example on both, so each uses its own command
print(a.query("EER?"))  # Read Error
print(b.query("SYSTem:ERRor?"))  # Read Error

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi TG2511A or Tektronix AFG1022 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Aim-TTi TG2511A and the Tektronix AFG1022 for remote control?

In TestFlow's library the TG2511A has 56 SCPI commands and the AFG1022 has 67 SCPI commands. 7 command headers are common to both, 31 are only on the TG2511A (mostly IEEE 488.2 common (*) and AMPL), and 49 are only on the AFG1022 (mostly SOURce and OUTPut).

Can I use the same SCPI code for the Aim-TTi TG2511A and the Tektronix AFG1022?

Partly. 7 command headers are accepted by both. 80 are not, for example *TST? on the TG2511A and SOURce<Channel>:FUNCtion:SHAPe on the AFG1022, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the TG2511A or the AFG1022?

The AFG1022: 56 commands for the TG2511A against 67 for the AFG1022 in TestFlow's library. Of those, 4 on the TG2511A and 10 on the AFG1022 are queries that read a value or state, and the library splits them into 38 and 7 subsystems.

How do the TG2511A and AFG1022 signal operation complete and report errors?

Only the TG2511A library has an operation-complete command (*OPC?); the AFG1022 library has none. Only the AFG1022 library has an error-queue read (SYSTem:ERRor?); the TG2511A library has none. Each command named here is listed in the tables on this page and on each instrument's command reference.

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.