Function Generator · SCPI command comparison

Aim-TTi TG2511A vs Rigol DG1022Z: 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 Rigol DG1022Z takes 201 SCPI commands, 49 of them queries. That is 145 more on the DG1022Z. Counting distinct command headers (the command path without its arguments), 8 are accepted by both, 30 exist only on the TG2511A, and 172 only on the DG1022Z. 21% of the TG2511A's command headers also exist on the DG1022Z.

Both libraries have commands under OUTPUT. Only the TG2511A has MOD, MODSRC, MODFREQ, ZLOAD, SWP, and BST and 22 more. Only the DG1022Z has SOURce, COUNter, DISPlay, COUPling, MMEMory, and ROSCillator and 3 more.

Both libraries synchronise with *OPC?. Only the DG1022Z library has an error-queue read (SYSTem:ERRor?); the TG2511A library has none.

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

TG2511A commands
56
DG1022Z commands
201
Shared headers
8
Unique headers
202

Run this on your bench

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

Get started

TG2511A vs DG1022Z 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 TG2511ARigol DG1022Z
Commands in TestFlow's library56201
Queries (read a value or state)449
Settings and actions52152
Subsystems3814
Distinct command headers38180
Headers the other lacks30172
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueNot in librarySYSTem:ERRor?
Models on this command setTG2511ADG1022Z, DG1032Z

Commands both accept

8 command headers are in both libraries. Where the DG1022Z library writes the command differently, its form is shown under the TG2511A's.

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.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.
*WAIWait To Continue. Waits until all pending operations are complete.
*SAV <Slot>DG1022Z: *SAV <Location>Save Setup. Stores the current setup to a memory slot (0 to 9).
*RCL <Slot>DG1022Z: *RCL <Location>Recall Setup. Recalls a setup from a memory slot (0 to 9).

Only on the Aim-TTi TG2511A

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

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.

BSTCOUNT (1 only on the TG2511A)

CommandWhat it does
BSTCOUNT <N>Set Burst Count CH1. Sets the number of cycles per burst.

Only on the Rigol DG1022Z

172 command headers in the DG1022Z library have no match in the TG2511A library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rigol DG1022Z command reference.

SOURce (124 only on the DG1022Z)

CommandWhat it does
:SOURce1:APPLy:SINusoid <Freq>,<Amp>,<Offset>Apply Sine. Configures channel 1 to output a sine waveform with the given frequency amplitude and offset.
:SOURce1:APPLy:SQUare <Freq>,<Amp>,<Offset>Apply Square. Configures channel 1 to output a square waveform with the given frequency amplitude and offset.
:SOURce1:APPLy:RAMP <Freq>,<Amp>,<Offset>Apply Ramp. Configures channel 1 to output a ramp waveform with the given frequency amplitude and offset.
:SOURce1:APPLy:PULSe <Freq>,<Amp>,<Offset>Apply Pulse. Configures channel 1 to output a pulse waveform with the given frequency amplitude and offset.

OUTPut (14 only on the DG1022Z)

CommandWhat it does
:OUTPut1:STATe ONTurn On Output. Enables the output of channel 1.
:OUTPut1:STATe?Read Output State. Reads whether channel 1 output is ON or OFF.
:OUTPut1:IMPedance <Ohm>Set Output Impedance. Sets the output load impedance in ohms (1 to 10k) or INFinity for HighZ.
:OUTPut1:IMPedance?Read Output Impedance. Reads the current output load impedance setting.

COUNter (8 only on the DG1022Z)

CommandWhat it does
:COUNter:STATe ONEnable Counter. Enables the frequency counter function.
:COUNter:STATe?Read Counter State. Reads the running status of the frequency counter.
:COUNter:MEASure?Read Counter Measurement. Reads the frequency period duty cycle and pulse width measured by the counter.
:COUNter:COUPling <Mode>Set Counter Coupling. Sets the input coupling of the frequency counter.

DISPlay (6 only on the DG1022Z)

CommandWhat it does
:DISPlay:BRIGhtness <Level>Set Display Brightness. Sets the screen brightness level (1 to 100).
:DISPlay:BRIGhtness?Read Display Brightness. Reads the current screen brightness.
:DISPlay:MODE <Mode>Set Display Mode. Sets the display mode to dual parameter dual graph or single channel.
:DISPlay:TEXT <Str>Set Display Text. Displays a text string on the instrument screen.

IEEE 488.2 common (*) (6 only on the DG1022Z)

CommandWhat it does
*OPCSet Operation Complete Bit. Sets the operation complete bit after all previous commands are executed.
*OPT?Query Options. Returns whether the 16M arbitrary memory option is installed.
*ESE <Value>Set Event Status Enable. Sets the standard event status enable register.
*ESR?Read Event Status. Reads and clears the standard event status register.

MMEMory (5 only on the DG1022Z)

CommandWhat it does
:MMEMory:STORe:STATe <File>Store State To File. Stores the current instrument state to a file on external memory.
:MMEMory:LOAD:STATe <File>Load State From File. Loads an instrument state file from external memory.
:MMEMory:CATalog?List Directory. Returns the files and folders in the current external memory directory.
:MMEMory:CDIRectory <Path>Set Directory. Sets the current working directory on external memory.

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 DG1022Z. 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 :OUTPut1:STATe? on the DG1022Z. 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_DG1022Z_ADDRESS")  # Rigol DG1022Z
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(":OUTPut1:STATe?"))  # Read Output State

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 Rigol DG1022Z and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Aim-TTi TG2511A and the Rigol DG1022Z for remote control?

In TestFlow's library the TG2511A has 56 SCPI commands and the DG1022Z has 201 SCPI commands. 8 command headers are common to both, 30 are only on the TG2511A (mostly AMPL and AMPUNIT), and 172 are only on the DG1022Z (mostly SOURce and OUTPut).

Can I use the same SCPI code for the Aim-TTi TG2511A and the Rigol DG1022Z?

Partly. 8 command headers are accepted by both. 202 are not, for example AMPL on the TG2511A and :SOURce1:APPLy:SINusoid on the DG1022Z, so a script that uses those needs a separate branch for each instrument.

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

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

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

Both libraries synchronise with *OPC?. Only the DG1022Z 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.