Power Supply · SCPI command comparison

Keysight E36311A vs Rigol DP821: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight E36311A takes 26 SCPI commands, 9 of them queries, and the Rigol DP821 takes 49 SCPI commands, 10 of them queries. That is 23 more on the DP821. Counting distinct command headers (the command path without its arguments), 12 are accepted by both, 6 exist only on the E36311A, and 33 only on the DP821. 67% of the E36311A's command headers also exist on the DP821.

Both libraries have commands under OUTPut, SOURce, MEASure, and SYSTem. Only the DP821 has TRIGger, TIMEr, DELAY, INST, and APPLy.

Only the E36311A library has an operation-complete command (*OPC?); the DP821 library has none. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the E36312A the same command set as the E36311A, so the E36311A column applies to it too. TestFlow's library gives the DP832 and DP832A the same command set as the DP821, so the DP821 column applies to them too.

E36311A commands
26
DP821 commands
49
Shared headers
12
Unique headers
39

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight E36311A or Rigol DP821 and writes the report from the measured results.

Get started

E36311A vs DP821 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.

Keysight E36311ARigol DP821
Commands in TestFlow's library2649
Queries (read a value or state)910
Settings and actions1739
Subsystems813
Distinct command headers1845
Headers the other lacks633
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setE36311A, E36312ADP821, DP832, DP832A

Commands both accept

12 command headers are in both libraries. Where the DP821 library writes the command differently, its form is shown under the E36311A's.

CommandWhat it does
OUTPut ON,(@1)DP821: :OUTPut ONTurn On CH1. Enables the output of channel 1.
SOURce:VOLTage <Volt>,(@<Channel>)DP821: :SOURce:VOLTage <Voltage>Set Voltage. Sets the output voltage of the selected channel in volts.
MEASure:VOLTage? (@<Channel>)DP821: :MEASure:VOLTage?Measure Voltage. Measures the output voltage of the selected channel in volts.
SYSTem:ERRor?Read Error. Reads the first message from the error queue.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
OUTPut? (@<Channel>)DP821: :OUTPut?Read Output State. Reads whether the selected channel output is ON or OFF.
SOURce:VOLTage? (@<Channel>)DP821: :SOURce:VOLTage?Read Voltage Setting. Reads the set output voltage of the selected channel.
MEASure:CURRent? (@<Channel>)DP821: :MEASure:CURRent?Measure Current. Measures the output current of the selected channel in amps.
*RSTReset. Resets the instrument to its default state.
SOURce:CURRent <Amp>,(@<Channel>)DP821: :SOURce:CURRent <Current>Set Current. Sets the output current limit of the selected channel in amps.
*CLSClear Status. Clears all event registers and the error queue.
SOURce:CURRent? (@<Channel>)DP821: :SOURce:CURRent?Read Current Setting. Reads the set output current limit of the selected channel.

Only on the Keysight E36311A

6 command headers in the E36311A library have no match in the DP821 library. Below are 5 of them from the 2 largest subsystems; the full list is in the Keysight E36311A command reference.

IEEE 488.2 common (*) (5 only on the E36311A)

CommandWhat it does
*SAV <Slot>Save State. Saves the current instrument state to the specified storage slot.
*RCL <Slot>Recall State. Recalls an instrument state from the specified storage slot.
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.

SOURce (1 only on the E36311A)

CommandWhat it does
SOURce:VOLTage:PROTection:LEVel <Volt>,(@<Channel>)Set OVP. Sets the over-voltage protection level of the selected channel.

Only on the Rigol DP821

33 command headers in the DP821 library have no match in the E36311A library. Below are 18 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 (7 only on the DP821)

CommandWhat it does
: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
:OUTPut:OCP:VALue <Current>Set OCP Level. Sets over-current protection level

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

APPLy (1 only on the DP821)

CommandWhat it does
:APPLy <Voltage>,<Current>Apply VI. Sets voltage and current in one command

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 ch1); the DP821 library writes it as :OUTPut ON. For the reading, both libraries hold MEASure:VOLTage? (measure voltage); the DP821 library writes it as :MEASure:VOLTage?. 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_E36311A_ADDRESS")  # Keysight E36311A
b = rm.open_resource("PASTE_DP821_ADDRESS")  # Rigol DP821
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Turn On CH1
a.write("OUTPut ON,(@1)")
b.write(":OUTPut ON")

# The same reading on both: Measure Voltage
print(a.query("MEASure:VOLTage? (@1)"))
print(b.query(":MEASure:VOLTage?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight E36311A or Rigol DP821 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight E36311A and the Rigol DP821 for remote control?

In TestFlow's library the E36311A has 26 SCPI commands and the DP821 has 49 SCPI commands. 12 command headers are common to both, 6 are only on the E36311A (mostly IEEE 488.2 common (*) and SOURce), and 33 are only on the DP821 (mostly TRIGger and OUTPut).

Can I use the same SCPI code for the Keysight E36311A and the Rigol DP821?

Partly. 12 command headers are accepted by both, including OUTPut, SOURce:VOLTage, and MEASure:VOLTage?. 39 are not, for example *SAV on the E36311A and :TRIGger:IN:ENABle on the DP821, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the E36311A or the DP821?

The DP821: 26 commands for the E36311A against 49 for the DP821 in TestFlow's library. Of those, 9 on the E36311A and 10 on the DP821 are queries that read a value or state, and the library splits them into 8 and 13 subsystems.

How do the E36311A and DP821 signal operation complete and report errors?

Only the E36311A library has an operation-complete command (*OPC?); the DP821 library has none. 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.