In TestFlow's instrument library, the Rigol DP711 takes 25 SCPI commands, 9 of them queries, and the Siglent SPD1305X takes 21 SCPI commands, 9 of them queries. That is 4 more on the DP711. Counting distinct command headers (the command path without its arguments), 10 are accepted by both, 9 exist only on the DP711, and 7 only on the SPD1305X. 53% of the DP711's command headers also exist on the SPD1305X.
Both libraries have commands under OUTPut, MEASure, and SYSTem. Only the DP711 has SOURce. Only the SPD1305X has CH.
Only the SPD1305X library has an operation-complete command (*OPC?); the DP711 library has none. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the DP712 the same command set as the DP711, so the DP711 column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Rigol DP711 or Siglent SPD1305X 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.
| Rigol DP711 | Siglent SPD1305X | |
|---|---|---|
| Commands in TestFlow's library | 25 | 21 |
| Queries (read a value or state) | 9 | 9 |
| Settings and actions | 16 | 12 |
| Subsystems | 8 | 8 |
| Distinct command headers | 19 | 17 |
| Headers the other lacks | 9 | 7 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | DP711, DP712 | SPD1305X |
10 command headers are in both libraries. Where the SPD1305X library writes the command differently, its form is shown under the DP711's.
| Command | What it does |
|---|---|
| :OUTPut ONSPD1305X: OUTPut CH1,ON | Turn On. Enables the power supply output. |
| :MEASure:VOLTage?SPD1305X: MEASure:VOLTage? CH<Channel> | Measure Voltage. Measures the output voltage in volts. |
| SYSTem:ERRor? | Read Error. Reads the first message from the error queue. |
| *SAV <Slot> | Save State. Saves the current instrument state to the specified storage slot. |
| :MEASure:CURRent?SPD1305X: MEASure:CURRent? CH<Channel> | Measure Current. Measures the output current in amps. |
| *RCL <Slot> | Recall State. Recalls an instrument state from the specified storage slot. |
| :MEASure:POWer?SPD1305X: MEASure:POWer? CH<Channel> | Measure Power. Measures the output power in watts. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| *RST | Reset. Resets the instrument to its default state. |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
9 command headers in the DP711 library have no match in the SPD1305X library. Below are 5 of them from the 2 largest subsystems; the full list is in the Rigol DP711 command reference.
| Command | What it does |
|---|---|
| :SOURce:VOLTage <Volt> | Set Voltage. Sets the output voltage in volts. |
| :SOURce:VOLTage? | Read Voltage Setting. Reads the set output voltage. |
| :SOURce:CURRent <Amp> | Set Current. Sets the output current limit in amps. |
| :SOURce:CURRent? | Read Current Setting. Reads the set output current limit. |
| Command | What it does |
|---|---|
| :OUTPut:STATe? | Read Output State. Reads whether the output is ON or OFF. |
7 command headers in the SPD1305X library have no match in the DP711 library. Below are 7 of them from the 2 largest subsystems; the full list is in the Siglent SPD1305X command reference.
| Command | What it does |
|---|---|
| CH<Channel>:VOLTage <Volt> | Set Voltage. Sets the output voltage of the selected channel in volts. |
| CH<Channel>:VOLTage? | Read Voltage Setting. Reads the set output voltage of the selected channel. |
| CH<Channel>:CURRent <Amp> | Set Current. Sets the output current limit of the selected channel in amps. |
| CH<Channel>:CURRent? | Read Current Setting. Reads the set output current limit of the selected channel. |
| Command | What it does |
|---|---|
| *CLS | Clear Status. Clears all event registers and the error queue. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. |
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); the SPD1305X library writes it as OUTPut CH1,ON. For the reading, both libraries hold :MEASure:VOLTage? (measure voltage); the SPD1305X 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_DP711_ADDRESS") # Rigol DP711
b = rm.open_resource("PASTE_SPD1305X_ADDRESS") # Siglent SPD1305X
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 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 Rigol DP711 or Siglent SPD1305X and writes the report from the measured results.
In TestFlow's library the DP711 has 25 SCPI commands and the SPD1305X has 21 SCPI commands. 10 command headers are common to both, 9 are only on the DP711 (mostly SOURce and OUTPut), and 7 are only on the SPD1305X (mostly CH and IEEE 488.2 common (*)).
Partly. 10 command headers are accepted by both, including :OUTPut, :MEASure:VOLTage?, and SYSTem:ERRor?. 16 are not, for example :SOURce:VOLTage on the DP711 and CH<Channel>:VOLTage on the SPD1305X, so a script that uses those needs a separate branch for each instrument.
The DP711: 25 commands for the DP711 against 21 for the SPD1305X in TestFlow's library. Of those, 9 on the DP711 and 9 on the SPD1305X are queries that read a value or state, and the library splits them into 8 and 8 subsystems.
Only the SPD1305X library has an operation-complete command (*OPC?); the DP711 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.