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.
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.
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 DP821 | Rohde & Schwarz HMC8043 | |
|---|---|---|
| Commands in TestFlow's library | 49 | 70 |
| Queries (read a value or state) | 10 | 28 |
| Settings and actions | 39 | 42 |
| Subsystems | 13 | 11 |
| Distinct command headers | 45 | 63 |
| Headers the other lacks | 31 | 49 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | DP821, DP832, DP832A | HMC8043 |
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.
| Command | What it does |
|---|---|
| :OUTPut ON | Turn 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:BEEPer | Beeper Control. Enables or disables system beeper |
| :MEASure:CURRent? | Measure Current. Measures actual output current |
| *RST | Reset. Resets instrument to default state |
| :SYSTem:LOCal | Go Local. Returns instrument to local control |
| :MEASure:POWer? | Measure Power. Measures output power |
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.
| Command | What it does |
|---|---|
| :TRIGger:IN:ENABle <State> | Trigger Input Enable. Enables trigger input |
| :TRIGger:IN:SOURce <Channel> | Trigger Input Source. Selects trigger source |
| :TRIGger:IN:IMMEdiate | Trigger Immediate. Issues immediate trigger |
| :TRIGger:IN:TYPE <Type> | Set Trigger Input Type. Sets trigger condition type |
| Command | What 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:CLEAR | Clear OVP. Clears OVP fault |
| :OUTPut:OCP:VALue <Current> | Set OCP Level. Sets over-current protection level |
| Command | What 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 |
| Command | What 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 |
| Command | What 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 |
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.
| 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 |
|---|---|
| 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 |
|---|---|
| *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). |
| *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). |
| Command | What 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). |
| Command | What it does |
|---|---|
| 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). |
| OUTPut:MASTer? | Read Master Output. Return 1 when the master output is on, else 0 (manual p.31). |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.