Power Supply · SCPI command comparison

ITECH IT6302 vs Rigol DP821: SCPI commands and remote control compared

In TestFlow's instrument library, the ITECH IT6302 takes 27 SCPI commands, 10 of them queries, and the Rigol DP821 takes 49 SCPI commands, 10 of them queries. That is 22 more on the DP821. Counting distinct command headers (the command path without its arguments), 11 are accepted by both, 7 exist only on the IT6302, and 34 only on the DP821. 61% of the IT6302's command headers also exist on the DP821.

Both libraries have commands under INSTrument, SOURce, MEASure, and SYSTem. Only the DP821 has TRIGger, OUTPut, TIMEr, DELAY, and APPLy.

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

TestFlow's library gives the IT6322B and IT6332B the same command set as the IT6302, so the IT6302 column applies to them too. TestFlow's library gives the DP832 and DP832A the same command set as the DP821, so the DP821 column applies to them too.

IT6302 commands
27
DP821 commands
49
Shared headers
11
Unique headers
41

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your ITECH IT6302 or Rigol DP821 and writes the report from the measured results.

Get started

IT6302 vs DP821 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.

ITECH IT6302Rigol DP821
Commands in TestFlow's library2749
Queries (read a value or state)1010
Settings and actions1739
Subsystems813
Distinct command headers1845
Headers the other lacks734
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setIT6302, IT6322B, IT6332BDP821, DP832, DP832A

Commands both accept

11 command headers are in both libraries. Where the DP821 library writes the command differently, its form is shown under the IT6302's.

CommandWhat it does
SOURce:VOLTage <Volt>DP821: :SOURce:VOLTage <Voltage>Set Voltage. Sets the output voltage of the selected channel in volts.
MEASure:VOLTage?Measure Voltage. Measures the output voltage of the selected channel in volts.
SYSTem:ERRor?Read Error. Reads the first message from the error queue.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
SOURce:VOLTage?Read Voltage Setting. Reads the set output voltage of the selected channel.
MEASure:CURRent?Measure Current. Measures the output current of the selected channel in amps.
*RSTReset. Resets the instrument to its default state.
SOURce:CURRent <Amp>DP821: :SOURce:CURRent <Current>Set Current. Sets the output current limit of the selected channel in amps.
MEASure:POWer?Measure Power. Measures the output power of the selected channel in watts.
*CLSClear Status. Clears all event registers and the error queue.
SOURce:CURRent?Read Current Setting. Reads the set output current limit of the selected channel.

Only on the ITECH IT6302

7 command headers in the IT6302 library have no match in the DP821 library. Below are 6 of them from the 2 largest subsystems; the full list is in the ITECH IT6302 command reference.

IEEE 488.2 common (*) (5 only on the IT6302)

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.
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.

INSTrument (2 only on the IT6302)

CommandWhat it does
INSTrument:SELect <Channel>Select Channel. Selects the active channel for subsequent commands.
INSTrument:SELect?Read Selected Channel. Reads which channel is currently selected.

Only on the Rigol DP821

34 command headers in the DP821 library have no match in the IT6302 library. Below are 18 of them from the 6 largest subsystems; the full list is in the Rigol DP821 command reference.

TRIGger (14 only on the DP821)

CommandWhat it does
:TRIGger:IN:ENABle <State>Trigger Input Enable. Enables trigger input
:TRIGger:IN:SOURce <Channel>Trigger Input Source. Selects trigger source
:TRIGger:IN:IMMEdiateTrigger Immediate. Issues immediate trigger
:TRIGger:IN:TYPE <Type>Set Trigger Input Type. Sets trigger condition type

OUTPut (9 only on the DP821)

CommandWhat it does
:OUTPut ONTurn On. Turns output ON
:OUTPut?Read Output State. Reads output ON/OFF state
:OUTPut:OVP:VALue <Voltage>Set OVP Level. Sets over-voltage protection level
:OUTPut:OVP:STATe <State>Enable OVP. Enables/disables OVP

DELAY (3 only on the DP821)

CommandWhat 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

SYSTem (3 only on the DP821)

CommandWhat it does
:SYSTem:BEEPer <State>Beeper Control. Enables or disables system beeper
:SYSTem:LOCalGo Local. Returns instrument to local control
:SYSTem:REMoteGo Remote. Forces remote control mode

TIMEr (3 only on the DP821)

CommandWhat 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

APPLy (1 only on the DP821)

CommandWhat it does
:APPLy <Voltage>,<Current>Apply VI. Sets voltage and current in one command

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: INSTrument:SELect CH1 on the IT6302 and :OUTPut ON on the DP821. 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_IT6302_ADDRESS")  # ITECH IT6302
b = rm.open_resource("PASTE_DP821_ADDRESS")  # Rigol DP821
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
a.write("INSTrument:SELect CH1")  # Select Channel
b.write(":OUTPut ON")  # Turn On

# The same reading on both: Measure Voltage
print(a.query("MEASure:VOLTage?"))
print(b.query(":MEASure:VOLTage?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your ITECH IT6302 or Rigol DP821 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the ITECH IT6302 and the Rigol DP821 for remote control?

In TestFlow's library the IT6302 has 27 SCPI commands and the DP821 has 49 SCPI commands. 11 command headers are common to both, 7 are only on the IT6302 (mostly IEEE 488.2 common (*) and INSTrument), and 34 are only on the DP821 (mostly TRIGger and OUTPut).

Can I use the same SCPI code for the ITECH IT6302 and the Rigol DP821?

Partly. 11 command headers are accepted by both, including SOURce:VOLTage, MEASure:VOLTage?, and SYSTem:ERRor?. 41 are not, for example *SAV on the IT6302 and :TRIGger:IN:ENABle on the DP821, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the IT6302 or the DP821?

The DP821: 27 commands for the IT6302 against 49 for the DP821 in TestFlow's library. Of those, 10 on the IT6302 and 10 on the DP821 are queries that read a value or state, and the library splits them into 8 and 13 subsystems.

How do the IT6302 and DP821 signal operation complete and report errors?

Only the IT6302 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.

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.