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.
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.
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 TG2511A | Rigol DG1022Z | |
|---|---|---|
| Commands in TestFlow's library | 56 | 201 |
| Queries (read a value or state) | 4 | 49 |
| Settings and actions | 52 | 152 |
| Subsystems | 38 | 14 |
| Distinct command headers | 38 | 180 |
| Headers the other lacks | 30 | 172 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | Not in library | SYSTem:ERRor? |
| Models on this command set | TG2511A | DG1022Z, DG1032Z |
8 command headers are in both libraries. Where the DG1022Z library writes the command differently, its form is shown under the TG2511A's.
| Command | What it does |
|---|---|
| *TRG | Trigger Now. Issues a manual/bus trigger. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| *RST | Reset. Resets the instrument to its default state. |
| *CLS | Clear Status. Clears all status registers. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| *WAI | Wait 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). |
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.
| Command | What it does |
|---|---|
| AMPL <Amp> | Set Amplitude CH1. Sets the output amplitude (Vpp). |
| Command | What it does |
|---|---|
| AMPUNIT <Unit> | Set Amplitude Unit CH1. Sets the amplitude unit. |
| Command | What it does |
|---|---|
| ARBLOAD <Name> | Set Arb Waveform CH1. Selects the arbitrary waveform by name. |
| Command | What it does |
|---|---|
| BEEPMODE ON | Beep On. Enables the beeper. |
| Command | What it does |
|---|---|
| BST NCYC | Turn On Burst CH1. Enables burst mode. |
| Command | What it does |
|---|---|
| BSTCOUNT <N> | Set Burst Count CH1. Sets the number of cycles per burst. |
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.
| Command | What 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. |
| Command | What it does |
|---|---|
| :OUTPut1:STATe ON | Turn 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. |
| Command | What it does |
|---|---|
| :COUNter:STATe ON | Enable 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| *OPC | Set 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. |
| Command | What 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. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.