Power Supply · SCPI command comparison

Rigol DP821 vs Rohde & Schwarz HMC8043: SCPI commands and remote control compared

In TestFlow's instrument library, the Rigol DP821 takes 49 SCPI commands, 10 of them queries, and the Rohde & Schwarz HMC8043 takes 70 SCPI commands, 28 of them queries. That is 21 more on the HMC8043. Counting distinct command headers (the command path without its arguments), 14 are accepted by both, 31 exist only on the DP821, and 49 only on the HMC8043. 31% of the DP821's command headers also exist on the HMC8043.

Both libraries have commands under OUTPut, SYSTem, MEASure, INST, and APPLy. Only the DP821 has TRIGger, SOURce, TIMEr, and DELAY. Only the HMC8043 has VOLTage, FUSE, CURRent, POWer, and DISPlay.

Only the HMC8043 library has an operation-complete command (*OPC?); the DP821 library has none. 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
HMC8043 commands
70
Shared headers
14
Unique headers
80

Run this on your bench

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

Get started

DP821 vs HMC8043 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 DP821Rohde & Schwarz HMC8043
Commands in TestFlow's library4970
Queries (read a value or state)1028
Settings and actions3942
Subsystems1311
Distinct command headers4563
Headers the other lacks3149
Command languageSCPISCPI
Operation completeNot in library*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setDP821, DP832, DP832AHMC8043

Commands both accept

14 command headers are in both libraries. Here are 12, taken across subsystems. Where the HMC8043 library writes the command differently, its form is shown under the DP821's.

CommandWhat it does
:OUTPut ONTurn On. Turns output ON
:SYSTem:ERRor?Read Error. Reads system error queue
:MEASure:VOLTage?Measure Voltage. Measures actual output voltage
:INST:NSEL <Channel>HMC8043: INSTrument:NSELect <Channel>Select channel. Selects the channel (always use first)
:APPLy <Voltage>,<Current>HMC8043: APPLy <Voltage>,<Current>,<Channel>Apply VI. Sets voltage and current in one command
*IDN?Identify. Reads instrument identification string
:OUTPut?Read Output State. Reads output ON/OFF state
:SYSTem:BEEPer <State>HMC8043: SYSTem:BEEPerBeeper Control. Enables or disables system beeper
:MEASure:CURRent?Measure Current. Measures actual output current
*RSTReset. Resets instrument to default state
:SYSTem:LOCalGo Local. Returns instrument to local control
:MEASure:POWer?Measure Power. Measures output power

Only on the Rigol DP821

31 command headers in the DP821 library have no match in the HMC8043 library. Below are 18 of them from the 5 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

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

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 Rohde & Schwarz HMC8043

49 command headers in the HMC8043 library have no match in the DP821 library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz HMC8043 command reference.

VOLTage (11 only on the HMC8043)

CommandWhat it does
VOLTage <Voltage>Set Voltage. Voltage setpoint of the selected channel (manual p.26).
VOLTage?Read Voltage Setpoint. Return the selected channel's voltage setpoint in V (manual p.26).
VOLTage:STEP <Step>Set Voltage Step. Step size of Voltage_Up and Voltage_Down (manual p.27).
VOLTage:PROTection <State>Set OVP. Turn the selected channel's over-voltage protection on or off (manual p.34).

FUSE (8 only on the HMC8043)

CommandWhat it does
FUSE <State>Set Fuse. Turn the selected channel's electronic fuse on or off (manual p.32).
FUSE?Read Fuse. Return 1 when the selected channel's fuse is on, else 0 (manual p.32).
FUSE:DELay <Delay>Set Fuse Delay. Delay before the selected channel's fuse trips (manual p.32).
FUSE:DELay?Read Fuse Delay. Return the selected channel's fuse delay in s (manual p.33).

POWer (6 only on the HMC8043)

CommandWhat it does
POWer:PROTection <State>Set OPP. Turn the selected channel's over-power protection on or off (manual p.36).
POWer:PROTection?Read OPP. Return 1 when the selected channel's OPP is on, else 0 (manual p.37).
POWer:PROTection:LEVel <Power>Set OPP Level. Over-power protection level of the selected channel (manual p.37).
POWer:PROTection:LEVel?Read OPP Level. Return the selected channel's OPP level in W (manual p.37).

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

CommandWhat it does
*OPC?Operation Complete. Return 1 once every previous command has finished (manual p.20).
*WAIWait. Hold further commands until every previous one has been executed (manual p.21).
*TST?Self Test. Run the self-test and return its result, 0 when it passed (manual p.21).
*SAV <Slot>Save State. Store the instrument settings in a memory location, overwriting it (manual p.54).

CURRent (4 only on the HMC8043)

CommandWhat it does
CURRent <Current>Set Current. Current limit of the selected channel; 0.1 mA steps below 1 A, 1 mA above (manual p.28).
CURRent?Read Current Setpoint. Return the selected channel's current setpoint in A (manual p.28).
CURRent:STEP <Step>Set Current Step. Step size of Current_Up and Current_Down (manual p.28).
CURRent:STEP?Read Current Step. Return the current step size in A (manual p.29).

OUTPut (4 only on the HMC8043)

CommandWhat it does
OUTPut:CHANnel ONChannel Output On. Arm the selected channel; it outputs once the master output is on (manual p.30).
OUTPut:CHANnel?Read Channel Output. Return 1 when the selected channel is armed, else 0 (manual p.31).
OUTPut:MASTer ONMaster Output On. Turn on every armed channel at once (manual p.31).
OUTPut:MASTer?Read Master Output. Return 1 when the master output is on, else 0 (manual p.31).

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), and the same line runs on each. For the reading, both libraries hold :MEASure:VOLTage? (measure voltage), 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_DP821_ADDRESS")  # Rigol DP821
b = rm.open_resource("PASTE_HMC8043_ADDRESS")  # Rohde & Schwarz HMC8043
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 ON")

# The same reading on both: Measure Voltage
print(a.query(":MEASure:VOLTage?"))
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 Rigol DP821 or Rohde & Schwarz HMC8043 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Rigol DP821 and the Rohde & Schwarz HMC8043 for remote control?

In TestFlow's library the DP821 has 49 SCPI commands and the HMC8043 has 70 SCPI commands. 14 command headers are common to both, 31 are only on the DP821 (mostly TRIGger and OUTPut), and 49 are only on the HMC8043 (mostly VOLTage and FUSE).

Can I use the same SCPI code for the Rigol DP821 and the Rohde & Schwarz HMC8043?

Partly. 14 command headers are accepted by both, including :OUTPut, :SYSTem:ERRor?, and :MEASure:VOLTage?. 80 are not, for example :TRIGger:IN:ENABle on the DP821 and VOLTage on the HMC8043, so a script that uses those needs a separate branch for each instrument.

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

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

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

Only the HMC8043 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.