Function Generator · SCPI command comparison

Aim-TTi TG2512A vs Keysight 33511B: SCPI commands and remote control compared

In TestFlow's instrument library, the Aim-TTi TG2512A takes 63 SCPI commands, 0 of them queries, and the Keysight 33511B takes 117 SCPI commands, 17 of them queries. That is 54 more on the 33511B. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 36 exist only on the TG2512A, and 101 only on the 33511B. None of the TG2512A's command headers appears in the 33511B library, so a script written for one needs every command rewritten for the other.

Both libraries have commands under OUTPUT. Only the TG2512A has MOD, MODSHAPE, MODFREQ, MODDEV, ZLOAD, and CHN and 29 more. Only the 33511B has SOURce, SYSTem, TRIGger, DISPlay, ROSCillator, and MMEMory.

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

TestFlow's library gives the TG5011A and TG5012A the same command set as the TG2512A, so the TG2512A column applies to them too. TestFlow's library gives the 33519B, 33521B, 33611A, and 33621A the same command set as the 33511B, so the 33511B column applies to them too.

TG2512A commands
63
33511B commands
117
Shared headers
0
Unique headers
137

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi TG2512A or Keysight 33511B and writes the report from the measured results.

Get started

TG2512A vs 33511B 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 TG2512AKeysight 33511B
Commands in TestFlow's library63117
Queries (read a value or state)017
Settings and actions63100
Subsystems5611
Distinct command headers36101
Headers the other lacks36101
Command languageSCPISCPI
Operation completeNot in library*OPC?
Error queueNot in librarySYSTem:ERRor?
Models on this command setTG2512A, TG5011A, TG5012A33511B, 33519B, 33521B, 33611A, 33621A

Commands both accept

None. No command header in TestFlow's TG2512A library matches one in its 33511B library, so every command needs its own version for each instrument.

Only on the Aim-TTi TG2512A

36 command headers in the TG2512A library have no match in the 33511B library. Below are 6 of them from the 6 largest subsystems; the full list is in the Aim-TTi TG2512A command reference.

ALIGN (1 only on the TG2512A)

CommandWhat it does
ALIGNAlign zero phase ref. Align waveform phase to zero reference.

AMPLRNG (1 only on the TG2512A)

CommandWhat it does
AMPLRNG <cpd>Amplitude range. Set amplitude autorange mode (AUTO or HOLD).

AMPUNIT (1 only on the TG2512A)

CommandWhat it does
AMPUNIT <unit>Amplitude units. Select amplitude unit (Vpp, Vrms or dBm).

BST (1 only on the TG2512A)

CommandWhat it does
BST <Mode>Burst mode. Select burst mode type.

BSTCOUNT (1 only on the TG2512A)

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

BSTPHASE (1 only on the TG2512A)

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

Only on the Keysight 33511B

101 command headers in the 33511B library have no match in the TG2512A library. Below are 21 of them from the 6 largest subsystems; the full list is in the Keysight 33511B command reference.

SOURce (72 only on the 33511B)

CommandWhat it does
SOURce1:FUNCtion <Shape>Set Function CH1. Sets the output waveform shape for channel 1.
SOURce1:FUNCtion?Read Function CH1. Reads the output waveform shape for channel 1.
SOURce1:FREQuency <Freq>Set Frequency CH1. Sets the output frequency in Hz for channel 1.
SOURce1:FREQuency?Read Frequency CH1. Reads the output frequency for channel 1.

IEEE 488.2 common (*) (10 only on the 33511B)

CommandWhat it does
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*RSTReset. Resets the instrument to its default state.
*CLSClear Status. Clears all event registers and the error queue.
*TST?Self Test. Runs the self-test and returns 0 for pass.

OUTPut (8 only on the 33511B)

CommandWhat it does
OUTPut1:STATe ONTurn On Output CH1. Enables channel 1 output.
OUTPut1:STATe?Read Output State CH1. Reads whether channel 1 output is on.
OUTPut1:LOAD <Ohm>Set Output Load CH1. Sets the expected output load in ohms (1 to 10k) for channel 1; use INF for high-Z.
OUTPut1:LOAD?Read Output Load CH1. Reads the output load setting for channel 1.

SYSTem (4 only on the 33511B)

CommandWhat it does
SYSTem:BEEPer:STATe ONEnable Beeper. Enables the beeper.
SYSTem:BEEPerBeep Now. Sounds the beeper once.
SYSTem:ERRor?Read Error. Reads and clears the next error-queue entry.
SYSTem:VERSion?Read SCPI Version. Returns the SCPI version.

TRIGger (3 only on the 33511B)

CommandWhat it does
TRIGger:SOURce <Src>Set Trigger Source. Sets the trigger source.
TRIGger:SLOPe <Slope>Set Trigger Slope. Sets the external trigger slope.
TRIGgerTrigger Now. Issues an immediate trigger.

MMEMory (2 only on the 33511B)

CommandWhat it does
MMEMory:STORe:STATe <File>Save State. Stores the instrument state to a file.
MMEMory:LOAD:STATe <File>Load State. Loads an instrument state file.

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 TG2512A and OUTPut1:STATe ON on the 33511B. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: OUTPut1:STATe? on the 33511B. 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_TG2512A_ADDRESS")  # Aim-TTi TG2512A
b = rm.open_resource("PASTE_33511B_ADDRESS")  # Keysight 33511B
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
b.write("OUTPut1:STATe ON")  # Turn On Output CH1

# No shared reading with an example on both, so each uses its own command
print(b.query("OUTPut1:STATe?"))  # Read Output State CH1

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi TG2512A or Keysight 33511B and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Aim-TTi TG2512A and the Keysight 33511B for remote control?

In TestFlow's library the TG2512A has 63 SCPI commands and the 33511B has 117 SCPI commands. 0 command headers are common to both, 36 are only on the TG2512A (mostly ALIGN and AMPLRNG), and 101 are only on the 33511B (mostly SOURce and IEEE 488.2 common (*)).

Can I use the same SCPI code for the Aim-TTi TG2512A and the Keysight 33511B?

Not without changes. None of the 36 command headers in the TG2512A library matches one of the 101 in the 33511B library: the TG2512A uses commands such as ALIGN and the 33511B uses commands such as SOURce1:FUNCtion. PyVISA opens both the same way, but each command needs its own version for each instrument.

Which has more remote commands, the TG2512A or the 33511B?

The 33511B: 63 commands for the TG2512A against 117 for the 33511B in TestFlow's library. Of those, 0 on the TG2512A and 17 on the 33511B are queries that read a value or state, and the library splits them into 56 and 11 subsystems.

How do the TG2512A and 33511B signal operation complete and report errors?

Only the 33511B library has an operation-complete command (*OPC?); the TG2512A library has none. Only the 33511B library has an error-queue read (SYSTem:ERRor?); the TG2512A 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.