In TestFlow's instrument library, the Keysight EDU33212A takes 124 SCPI commands, 18 of them queries, and the Rigol DG1022Z takes 201 SCPI commands, 49 of them queries. That is 77 more on the DG1022Z. Counting distinct command headers (the command path without its arguments), 78 are accepted by both, 24 exist only on the EDU33212A, and 102 only on the DG1022Z. 76% of the EDU33212A's command headers also exist on the DG1022Z.
Both libraries have commands under SOURce, OUTPut, SYSTem, DISPlay, ROSCillator, and MMEMory. Only the EDU33212A has TRIGger. Only the DG1022Z has COUNter, COUPling, HCOPy, and MEMory.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
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 Keysight EDU33212A 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.
| Keysight EDU33212A | Rigol DG1022Z | |
|---|---|---|
| Commands in TestFlow's library | 124 | 201 |
| Queries (read a value or state) | 18 | 49 |
| Settings and actions | 106 | 152 |
| Subsystems | 11 | 14 |
| Distinct command headers | 102 | 180 |
| Headers the other lacks | 24 | 102 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | EDU33212A | DG1022Z, DG1032Z |
78 command headers are in both libraries. Here are 12, taken across subsystems. Where the DG1022Z library writes the command differently, its form is shown under the EDU33212A's.
| Command | What it does |
|---|---|
| SOURce<Channel>:FUNCtion <Shape>DG1022Z: :SOURce1:FUNCtion <Shape> | Set Function. Sets the output waveform shape for the selected channel. |
| OUTPut<Channel>:STATe ONDG1022Z: :OUTPut1:STATe ON | Turn On Output. Enables the selected channel output. |
| SYSTem:ERRor? | Read Error. Reads and clears the next error-queue entry. |
| ROSCillator:SOURce INTernalDG1022Z: :ROSCillator:SOURce <Source> | Set Clock Internal. Uses the internal 10 MHz reference clock. |
| MMEMory:STORe:STATe <File> | Save State. Stores the instrument state to a file. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| SOURce<Channel>:FUNCtion?DG1022Z: :SOURce1:FUNCtion? | Read Function. Reads the output waveform shape for the selected channel. |
| OUTPut<Channel>:STATe?DG1022Z: :OUTPut1:STATe? | Read Output State. Reads whether the selected channel output is on. |
| MMEMory:LOAD:STATe <File> | Load State. Loads an instrument state file. |
| *RST | Reset. Resets the instrument to its default state. |
| SOURce<Channel>:FREQuency <Freq>DG1022Z: :SOURce1:FREQuency <Freq> | Set Frequency. Sets the output frequency in Hz for the selected channel. |
| OUTPut<Channel>:POLarity NORMalDG1022Z: :OUTPut1:POLarity NORMal | Set Output Polarity Normal. Sets the selected channel output polarity to normal. |
24 command headers in the EDU33212A library have no match in the DG1022Z library. Below are 16 of them from the 6 largest subsystems; the full list is in the Keysight EDU33212A command reference.
| Command | What it does |
|---|---|
| SOURce<Channel>:FREQuency:MODE CW | Set Frequency Mode Fixed. Sets the selected channel to fixed (continuous-wave) frequency mode. |
| SOURce<Channel>:PHASe:SYNChronize | Sync Phase. Resets the phase reference between channels. |
| SOURce1:APPLy:ARBitrary <Rate>,<Amp>,<Offset> | Apply Arb CH1. Sets channel 1 to the arbitrary waveform with the given sample rate, amplitude and offset. |
| SOURce<Channel>:FUNCtion:PULSe:TRANsition <Sec> | Set Pulse Edge Both. Sets both pulse edge transition times for the selected channel. |
| Command | What it does |
|---|---|
| OUTPut<Channel>:LOAD <Ohm> | Set Output Load. Sets the expected output load in ohms (1 to 10k) for the selected channel; use INF for high-Z. |
| OUTPut<Channel>:LOAD? | Read Output Load. Reads the output load setting for the selected channel. |
| OUTPut:SYNC:SOURce CH1 | Set Sync Source CH1. Sets the Sync output source to channel 1. |
| Command | What it does |
|---|---|
| SYSTem:BEEPer:STATe ON | Enable Beeper. Enables the beeper. |
| SYSTem:BEEPer | Beep Now. Sounds the beeper once. |
| SYSTem:VERSion? | Read SCPI Version. Returns the SCPI version. |
| Command | What it does |
|---|---|
| TRIGger:SOURce <Src> | Set Trigger Source. Sets the trigger source. |
| TRIGger:SLOPe <Slope> | Set Trigger Slope. Sets the external trigger slope. |
| TRIGger | Trigger Now. Issues an immediate trigger. |
| Command | What it does |
|---|---|
| *TST? | Self Test. Runs the self-test and returns 0 for pass. |
| *CAL? | Self Calibration. Runs internal self-calibration and returns 0 on success. |
| Command | What it does |
|---|---|
| DISPlay ON | Enable Display. Turns the front-panel display on. |
102 command headers in the DG1022Z library have no match in the EDU33212A 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:USER <Freq>,<Amp>,<Offset> | Apply User. Configures channel 1 to output the selected arbitrary waveform with the given frequency amplitude and offset. |
| :SOURce1:PERiod <Sec> | Set Period. Sets the output period of channel 1 in seconds. |
| :SOURce1:PERiod? | Read Period. Reads the current output period of channel 1. |
| :SOURce1:PHASe:INITiate | Align Phase. Re-aligns the phase relationship between the two channels. |
| Command | What it does |
|---|---|
| :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. |
| :OUTPut1:MODE <Mode> | Set Output Mode. Sets the output mode of channel 1 to normal or gated. |
| :OUTPut1:MODE? | Read Output Mode. Reads the current output mode of channel 1. |
| 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. |
| *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. |
| *STB? | Read Status Byte. Reads the status byte register without clearing it. |
| Command | What it does |
|---|---|
| :COUPling:STATe ON | Enable Channel Coupling. Enables frequency amplitude and phase coupling between the two channels. |
| :COUPling:FREQuency:STATe <State> | Set Frequency Coupling. Enables or disables frequency coupling between channels. |
| :COUPling:AMPL:STATe <State> | Set Amplitude Coupling. Enables or disables amplitude coupling between channels. |
| :COUPling:PHASe:STATe <State> | Set Phase Coupling. Enables or disables phase coupling between channels. |
With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold OUTPut:SYNC:STATe (turn on sync ch1); the DG1022Z library writes it as :OUTPut1:SYNC:STATe ON. For the reading, both libraries hold SYSTem:ERRor? (read error), and the same line runs on each. 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_EDU33212A_ADDRESS") # Keysight EDU33212A
b = rm.open_resource("PASTE_DG1022Z_ADDRESS") # Rigol DG1022Z
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Turn On Sync CH1
a.write("OUTPut:SYNC:STATe ON")
b.write(":OUTPut1:SYNC:STATe ON")
# The same reading on both: Read Error
print(a.query("SYSTem:ERRor?"))
print(b.query(":SYSTem:ERRor?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight EDU33212A or Rigol DG1022Z and writes the report from the measured results.
In TestFlow's library the EDU33212A has 124 SCPI commands and the DG1022Z has 201 SCPI commands. 78 command headers are common to both, 24 are only on the EDU33212A (mostly SOURce and OUTPut), and 102 are only on the DG1022Z (mostly SOURce and OUTPut).
Partly. 78 command headers are accepted by both, including SOURce<Channel>:FUNCtion, OUTPut<Channel>:STATe, and SYSTem:ERRor?. 126 are not, for example SOURce<Channel>:FREQuency:MODE on the EDU33212A and :SOURce1:APPLy:USER on the DG1022Z, so a script that uses those needs a separate branch for each instrument.
The DG1022Z: 124 commands for the EDU33212A against 201 for the DG1022Z in TestFlow's library. Of those, 18 on the EDU33212A and 49 on the DG1022Z are queries that read a value or state, and the library splits them into 11 and 14 subsystems.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. 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.