Power Supply · SCPI command comparison

Rigol DP821 vs Siglent SPD3303X-E: SCPI commands and remote control compared

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.

DP821 commands
49
SPD3303X-E commands
20
Shared headers
5
Unique headers
51

Run this on your bench

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.

Get started

DP821 vs SPD3303X-E 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.

Rigol DP821Siglent SPD3303X-E
Commands in TestFlow's library4920
Queries (read a value or state)109
Settings and actions3911
Subsystems139
Distinct command headers4516
Headers the other lacks4011
Command languageSCPISCPI
Operation completeNot in libraryNot in library
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setDP821, DP832, DP832ASPD3303X-E

Commands both accept

5 command headers are in both libraries. Where the SPD3303X-E library writes the command differently, its form is shown under the DP821's.

CommandWhat it does
:OUTPut ONSPD3303X-E: OUTPut CH<CH>,ONTurn 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

Only on the Rigol DP821

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.

TRIGger (14 only on the DP821)

CommandWhat it does
:TRIGger:IN:ENABle <State>Trigger Input Enable. Enables trigger input
:TRIGger:IN:SOURce <Channel>Trigger Input Source. Selects trigger source
:TRIGger:IN:IMMEdiateTrigger Immediate. Issues immediate trigger
:TRIGger:IN:TYPE <Type>Set Trigger Input Type. Sets trigger condition type

OUTPut (8 only on the DP821)

CommandWhat 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:CLEARClear OVP. Clears OVP fault

SOURce (4 only on the DP821)

CommandWhat 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

DELAY (3 only on the DP821)

CommandWhat 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

SYSTem (3 only on the DP821)

CommandWhat it does
:SYSTem:BEEPer <State>Beeper Control. Enables or disables system beeper
:SYSTem:LOCalGo Local. Returns instrument to local control
:SYSTem:REMoteGo Remote. Forces remote control mode

TIMEr (3 only on the DP821)

CommandWhat 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

Only on the Siglent SPD3303X-E

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.

CH (4 only on the SPD3303X-E)

CommandWhat it does
CH<CH>:VOLTage <Volt>Set Voltage.
CH<CH>:VOLTage?Read Voltage.
CH<CH>:CURRent <Amp>Set Current.
CH<CH>:CURRent?Read Current.

IEEE 488.2 common (*) (2 only on the SPD3303X-E)

CommandWhat it does
*LOCKLock Keys.
*UNLOCKUnlock Keys.

INSTrument (2 only on the SPD3303X-E)

CommandWhat it does
INSTrument CH<CH>Select Channel.
INSTrument?Read Selected Channel.

SYSTem (2 only on the SPD3303X-E)

CommandWhat it does
SYSTem:VERSion?Read Version.
SYSTem:STATus?Read Status.

OUTPut (1 only on the SPD3303X-E)

CommandWhat it does
OUTPut:TRACK <Mode>Set Track Mode.

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, 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()

Run this on your bench

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.

Get started

Frequently asked questions

What is the difference between the Rigol DP821 and the Siglent SPD3303X-E for remote control?

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 (*)).

Can I use the same SCPI code for the Rigol DP821 and the Siglent SPD3303X-E?

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.

Which has more remote commands, the DP821 or the SPD3303X-E?

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.

How do the DP821 and SPD3303X-E signal operation complete and report errors?

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.

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.