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.
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.
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 HMP2030 | Siglent SPD3303X-E | |
|---|---|---|
| Commands in TestFlow's library | 26 | 20 |
| Queries (read a value or state) | 9 | 9 |
| Settings and actions | 17 | 11 |
| Subsystems | 6 | 9 |
| Distinct command headers | 10 | 16 |
| Headers the other lacks | 8 | 14 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | HMP2030, HMP4030 | SPD3303X-E |
2 command headers are in both libraries.
| Command | What 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). |
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.
| Command | What 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. |
| *RST | Reset. Resets the instrument to its default state. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| Command | What it does |
|---|---|
| INSTrument:NSELect 1 ; ... | Turn On CH1. Enables the output of channel 1. |
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.
| 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 |
|---|---|
| MEASure:VOLTage? CH<CH> | Measure Voltage. |
| MEASure:CURRent? CH<CH> | Measure Current. |
| Command | What it does |
|---|---|
| OUTPut CH<CH>,ON | Output On. |
| OUTPut:TRACK <Mode> | Set Track Mode. |
| Command | What it does |
|---|---|
| SYSTem:VERSion? | Read Version. |
| SYSTem:STATus? | Read Status. |
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()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.
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 (*)).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.