In TestFlow's instrument library, the Rohde & Schwarz HMC8043 takes 70 SCPI commands, 28 of them queries, and the Siglent SPD3303X-E takes 20 SCPI commands, 9 of them queries. That is 50 more on the HMC8043. Counting distinct command headers (the command path without its arguments), 6 are accepted by both, 57 exist only on the HMC8043, and 10 only on the SPD3303X-E. 10% of the HMC8043's command headers also exist on the SPD3303X-E.
Both libraries have commands under OUTPut, SYSTem, MEASure, and INSTrument. Only the HMC8043 has VOLTage, FUSE, CURRent, POWer, DISPlay, and APPLy. Only the SPD3303X-E has CH.
Only the HMC8043 library has an operation-complete command (*OPC?); the SPD3303X-E library has none. Both libraries read errors with SYSTem:ERRor?.
Describe the test; TestFlow's agent uses these command sets to drive your Rohde & Schwarz HMC8043 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 HMC8043 | Siglent SPD3303X-E | |
|---|---|---|
| Commands in TestFlow's library | 70 | 20 |
| Queries (read a value or state) | 28 | 9 |
| Settings and actions | 42 | 11 |
| Subsystems | 11 | 9 |
| Distinct command headers | 63 | 16 |
| Headers the other lacks | 57 | 10 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | HMC8043 | SPD3303X-E |
6 command headers are in both libraries. Where the SPD3303X-E library writes the command differently, its form is shown under the HMC8043's.
| Command | What it does |
|---|---|
| OUTPut ONSPD3303X-E: OUTPut CH<CH>,ON | Output On. Turn the selected channel's output on together with the master output (manual p.30). |
| SYSTem:ERRor? | Read Error. Read and remove the oldest error, e.g. 0,"No error" or -102,"Syntax error" (manual p.23). |
| MEASure:VOLTage?SPD3303X-E: MEASure:VOLTage? CH<CH> | Measure Voltage. Return the voltage measured at the selected channel's output in V (manual p.38). |
| *IDN? | Identify. Return maker, model, serial number and firmware version (manual p.20). |
| SYSTem:VERSion? | Read Version. Return the firmware version and the SCPI version (manual p.23). |
| MEASure:CURRent?SPD3303X-E: MEASure:CURRent? CH<CH> | Measure Current. Return the current measured at the selected channel's output in A (manual p.38). |
57 command headers in the HMC8043 library have no match in the SPD3303X-E library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz HMC8043 command reference.
| Command | What 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). |
| Command | What 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). |
| Command | What it does |
|---|---|
| *RST | Reset. Reset the instrument to its defaults; every output turns off (manual p.20). |
| *CLS | Clear Status. Clear the status registers and the error queue (manual p.19). |
| *OPC? | Operation Complete. Return 1 once every previous command has finished (manual p.20). |
| *WAI | Wait. Hold further commands until every previous one has been executed (manual p.21). |
| Command | What 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). |
| Command | What it does |
|---|---|
| OUTPut? | Read Output. Return 1 when the selected channel's output is on, else 0 (manual p.30). |
| OUTPut:CHANnel ON | Channel 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 ON | Master Output On. Turn on every armed channel at once (manual p.31). |
| Command | What it does |
|---|---|
| SYSTem:REMote | Remote. Switch to remote control (manual p.23). |
| SYSTem:LOCal | Local. Return to front-panel control; also the only way to unlock after Remote_Lock (manual p.23). |
| SYSTem:RWLock | Remote Lock. Remote control with the front panel locked until Local is sent (manual p.23). |
| SYSTem:BEEPer | Beep. Sound one beep (manual p.22). |
10 command headers in the SPD3303X-E library have no match in the HMC8043 library. Below are 10 of them from the 5 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 |
|---|---|
| OUTPut:TRACK <Mode> | Set Track Mode. |
| Command | What it does |
|---|---|
| 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, both libraries hold OUTPut (output 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_HMC8043_ADDRESS") # Rohde & Schwarz HMC8043
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: Output 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()Describe the test; TestFlow's agent uses these command sets to drive your Rohde & Schwarz HMC8043 or Siglent SPD3303X-E and writes the report from the measured results.
In TestFlow's library the HMC8043 has 70 SCPI commands and the SPD3303X-E has 20 SCPI commands. 6 command headers are common to both, 57 are only on the HMC8043 (mostly VOLTage and FUSE), and 10 are only on the SPD3303X-E (mostly CH and IEEE 488.2 common (*)).
Partly. 6 command headers are accepted by both, including OUTPut, SYSTem:ERRor?, and MEASure:VOLTage?. 67 are not, for example VOLTage on the HMC8043 and CH<CH>:VOLTage on the SPD3303X-E, so a script that uses those needs a separate branch for each instrument.
The HMC8043: 70 commands for the HMC8043 against 20 for the SPD3303X-E in TestFlow's library. Of those, 28 on the HMC8043 and 9 on the SPD3303X-E are queries that read a value or state, and the library splits them into 11 and 9 subsystems.
Only the HMC8043 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.