In TestFlow's instrument library, the Rigol DP821 takes 49 SCPI commands, 10 of them queries, and the Siglent SPD3303X-E takes 20 SCPI commands, 9 of them queries. That is 29 more on the DP821. Counting distinct command headers (the command path without its arguments), 5 are accepted by both, 40 exist only on the DP821, and 11 only on the SPD3303X-E. 11% of the DP821's command headers also exist on the SPD3303X-E.
Both libraries have commands under OUTPut, SYSTem, MEASure, and INST. Only the DP821 has TRIGger, SOURce, TIMEr, DELAY, and APPLy. Only the SPD3303X-E has CH.
Neither library has an operation-complete command such as *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the DP832 and DP832A the same command set as the DP821, so the DP821 column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Rigol DP821 or Siglent SPD3303X-E 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.
| Rigol DP821 | Siglent SPD3303X-E | |
|---|---|---|
| Commands in TestFlow's library | 49 | 20 |
| Queries (read a value or state) | 10 | 9 |
| Settings and actions | 39 | 11 |
| Subsystems | 13 | 9 |
| Distinct command headers | 45 | 16 |
| Headers the other lacks | 40 | 11 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | Not in library |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | DP821, DP832, DP832A | SPD3303X-E |
5 command headers are in both libraries. Where the SPD3303X-E library writes the command differently, its form is shown under the DP821's.
| Command | What it does |
|---|---|
| :OUTPut ONSPD3303X-E: OUTPut CH<CH>,ON | Turn On. Turns output ON |
| :SYSTem:ERRor? | Read Error. Reads system error queue |
| :MEASure:VOLTage?SPD3303X-E: MEASure:VOLTage? CH<CH> | Measure Voltage. Measures actual output voltage |
| *IDN? | Identify. Reads instrument identification string |
| :MEASure:CURRent?SPD3303X-E: MEASure:CURRent? CH<CH> | Measure Current. Measures actual output current |
40 command headers in the DP821 library have no match in the SPD3303X-E library. Below are 21 of them from the 6 largest subsystems; the full list is in the Rigol DP821 command reference.
| Command | What it does |
|---|---|
| :TRIGger:IN:ENABle <State> | Trigger Input Enable. Enables trigger input |
| :TRIGger:IN:SOURce <Channel> | Trigger Input Source. Selects trigger source |
| :TRIGger:IN:IMMEdiate | Trigger Immediate. Issues immediate trigger |
| :TRIGger:IN:TYPE <Type> | Set Trigger Input Type. Sets trigger condition type |
| Command | What it does |
|---|---|
| :OUTPut? | Read Output State. Reads output ON/OFF state |
| :OUTPut:OVP:VALue <Voltage> | Set OVP Level. Sets over-voltage protection level |
| :OUTPut:OVP:STATe <State> | Enable OVP. Enables/disables OVP |
| :OUTPut:OVP:CLEAR | Clear OVP. Clears OVP fault |
| Command | What it does |
|---|---|
| :SOURce:VOLTage <Voltage> | Set Voltage. Sets output voltage |
| :SOURce:CURRent <Current> | Set Current. Sets current limit |
| :SOURce:VOLTage? | Read Voltage Set. Reads programmed voltage |
| :SOURce:CURRent? | Read Current Set. Reads programmed current limit |
| Command | What it does |
|---|---|
| :DELAY <State> | Enable Delay. Enables or disables delay function |
| :DELAY:ENDState <State> | Set Delay End State. Sets output state after delay completes |
| :DELAY:STOP <Condition>,<Value> | Stop Delay. Stops delay execution |
| Command | What it does |
|---|---|
| :SYSTem:BEEPer <State> | Beeper Control. Enables or disables system beeper |
| :SYSTem:LOCal | Go Local. Returns instrument to local control |
| :SYSTem:REMote | Go Remote. Forces remote control mode |
| Command | What it does |
|---|---|
| :TIMEr <State> | Enable Timer. Enables or disables timer function |
| :TIMEr:CYCLEs <Mode>,<Count> | Set Timer Cycles. Sets number of timer cycles |
| :TIMEr:ENDState <State> | Set Timer End State. Sets output state after timer completes |
11 command headers in the SPD3303X-E library have no match in the DP821 library. Below are 11 of them from the 5 largest subsystems; the full list is in the Siglent SPD3303X-E command reference.
| Command | What it does |
|---|---|
| CH<CH>:VOLTage <Volt> | Set Voltage. |
| CH<CH>:VOLTage? | Read Voltage. |
| CH<CH>:CURRent <Amp> | Set Current. |
| CH<CH>:CURRent? | Read Current. |
| Command | What it does |
|---|---|
| *LOCK | Lock Keys. |
| *UNLOCK | Unlock Keys. |
| Command | What it does |
|---|---|
| INSTrument CH<CH> | Select Channel. |
| INSTrument? | Read Selected Channel. |
| Command | What it does |
|---|---|
| SYSTem:VERSion? | Read Version. |
| SYSTem:STATus? | Read Status. |
| Command | What it does |
|---|---|
| OUTPut:TRACK <Mode> | Set Track Mode. |
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 (turn on); the SPD3303X-E library writes it as OUTPut CH1,ON. For the reading, both libraries hold :MEASure:VOLTage? (measure voltage); the SPD3303X-E library writes it as MEASure:VOLTage? CH1. 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_DP821_ADDRESS") # Rigol DP821
b = rm.open_resource("PASTE_SPD3303X_E_ADDRESS") # Siglent SPD3303X-E
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Turn On
a.write(":OUTPut ON")
b.write("OUTPut CH1,ON")
# The same reading on both: Measure Voltage
print(a.query(":MEASure:VOLTage?"))
print(b.query("MEASure:VOLTage? CH1"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Rigol DP821 or Siglent SPD3303X-E and writes the report from the measured results.
In TestFlow's library the DP821 has 49 SCPI commands and the SPD3303X-E has 20 SCPI commands. 5 command headers are common to both, 40 are only on the DP821 (mostly TRIGger and OUTPut), and 11 are only on the SPD3303X-E (mostly CH and IEEE 488.2 common (*)).
Partly. 5 command headers are accepted by both, including :OUTPut, :SYSTem:ERRor?, and :MEASure:VOLTage?. 51 are not, for example :TRIGger:IN:ENABle on the DP821 and CH<CH>:VOLTage on the SPD3303X-E, so a script that uses those needs a separate branch for each instrument.
The DP821: 49 commands for the DP821 against 20 for the SPD3303X-E in TestFlow's library. Of those, 10 on the DP821 and 9 on the SPD3303X-E are queries that read a value or state, and the library splits them into 13 and 9 subsystems.
Neither library has an operation-complete command such as *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.