Power Supply · SCPI command comparison

Rohde & Schwarz HMP2030 vs Siglent SPD3303X-E: SCPI commands and remote control compared

In TestFlow's instrument library, the Rohde & Schwarz HMP2030 takes 26 SCPI commands, 9 of them queries, and the Siglent SPD3303X-E takes 20 SCPI commands, 9 of them queries. That is 6 more on the HMP2030. Counting distinct command headers (the command path without its arguments), 2 are accepted by both, 8 exist only on the HMP2030, and 14 only on the SPD3303X-E. 20% of the HMP2030's command headers also exist on the SPD3303X-E.

Both libraries have commands under INSTrument and SYSTem. Only the SPD3303X-E has CH, OUTPut, and MEASure.

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

TestFlow's library gives the HMP4030 the same command set as the HMP2030, so the HMP2030 column applies to it too.

HMP2030 commands
26
SPD3303X-E commands
20
Shared headers
2
Unique headers
22

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Rohde & Schwarz HMP2030 or Siglent SPD3303X-E and writes the report from the measured results.

Get started

HMP2030 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.

Rohde & Schwarz HMP2030Siglent SPD3303X-E
Commands in TestFlow's library2620
Queries (read a value or state)99
Settings and actions1711
Subsystems69
Distinct command headers1016
Headers the other lacks814
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setHMP2030, HMP4030SPD3303X-E

Commands both accept

2 command headers are in both libraries.

CommandWhat it does
SYSTem:ERRor?Read Error. Reads the first message from the error queue.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).

Only on the Rohde & Schwarz HMP2030

8 command headers in the HMP2030 library have no match in the SPD3303X-E library. Below are 5 of them from the 2 largest subsystems; the full list is in the Rohde & Schwarz HMP2030 command reference.

IEEE 488.2 common (*) (7 only on the HMP2030)

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.
*RSTReset. Resets the instrument to its default state.
*CLSClear Status. Clears all event registers and the error queue.

INSTrument (1 only on the HMP2030)

CommandWhat it does
INSTrument:NSELect 1 ; ...Turn On CH1. Enables the output of channel 1.

Only on the Siglent SPD3303X-E

14 command headers in the SPD3303X-E library have no match in the HMP2030 library. Below are 14 of them from the 6 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.

MEASure (2 only on the SPD3303X-E)

CommandWhat it does
MEASure:VOLTage? CH<CH>Measure Voltage.
MEASure:CURRent? CH<CH>Measure Current.

OUTPut (2 only on the SPD3303X-E)

CommandWhat it does
OUTPut CH<CH>,ONOutput On.
OUTPut:TRACK <Mode>Set Track Mode.

SYSTem (2 only on the SPD3303X-E)

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

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, the two libraries have no common command with a worked example on both, so each instrument uses its own: OUTPut CH1,ON on the SPD3303X-E. 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_HMP2030_ADDRESS")  # Rohde & Schwarz HMP2030
b = rm.open_resource("PASTE_SPD3303X_E_ADDRESS")  # Siglent SPD3303X-E
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# No shared setting with an example on both, so each uses its own command
b.write("OUTPut CH1,ON")  # Output On

# The same reading on both: Read Error
print(a.query("SYSTem:ERRor?"))
print(b.query("SYSTem:ERRor?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Rohde & Schwarz HMP2030 or Siglent SPD3303X-E and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Rohde & Schwarz HMP2030 and the Siglent SPD3303X-E for remote control?

In TestFlow's library the HMP2030 has 26 SCPI commands and the SPD3303X-E has 20 SCPI commands. 2 command headers are common to both, 8 are only on the HMP2030 (mostly IEEE 488.2 common (*) and INSTrument), and 14 are only on the SPD3303X-E (mostly CH and IEEE 488.2 common (*)).

Can I use the same SCPI code for the Rohde & Schwarz HMP2030 and the Siglent SPD3303X-E?

Partly. 2 command headers are accepted by both, including SYSTem:ERRor?. 22 are not, for example *SAV on the HMP2030 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 HMP2030 or the SPD3303X-E?

The HMP2030: 26 commands for the HMP2030 against 20 for the SPD3303X-E in TestFlow's library. Of those, 9 on the HMP2030 and 9 on the SPD3303X-E are queries that read a value or state, and the library splits them into 6 and 9 subsystems.

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

Only the HMP2030 library has an operation-complete command (*OPC?); the SPD3303X-E 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.