Power Supply · SCPI command comparison

Aim-TTi CPX400DP vs Rigol DP821: SCPI commands and remote control compared

In TestFlow's instrument library, the Aim-TTi CPX400DP takes 33 SCPI commands, 16 of them queries, and the Rigol DP821 takes 49 SCPI commands, 10 of them queries. That is 16 more on the DP821. Counting distinct command headers (the command path without its arguments), 2 are accepted by both, 26 exist only on the CPX400DP, and 43 only on the DP821. 7% of the CPX400DP's command headers also exist on the DP821.

Only the CPX400DP has OP1, OP2, V1, V2, V1O, and V2O and 10 more. Only the DP821 has TRIGger, OUTPut, SOURce, SYSTem, MEASure, and TIMEr and 3 more.

Only the CPX400DP library has an operation-complete command (*OPC?); the DP821 library has none. Only the DP821 library has an error-queue read (SYSTem:ERRor?); the CPX400DP library has none.

TestFlow's library gives the MX100QP, MX100TP, MX103QP, MX180TP, PL303QMDP, PL303QMTP, QL355TP, QL564TP, and QPX600DP the same command set as the CPX400DP, so the CPX400DP 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.

CPX400DP commands
33
DP821 commands
49
Shared headers
2
Unique headers
69

Run this on your bench

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

Get started

CPX400DP 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.

Aim-TTi CPX400DPRigol DP821
Commands in TestFlow's library3349
Queries (read a value or state)1610
Settings and actions1739
Subsystems1113
Distinct command headers2845
Headers the other lacks2643
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueNot in librarySYSTem:ERRor?
Models on this command setCPX400DP, MX100QP, MX100TP, MX103QP, MX180TP, PL303QMDP, PL303QMTP, QL355TP, QL564TP, QPX600DPDP821, DP832, DP832A

Commands both accept

2 command headers are in both libraries.

CommandWhat it does
*IDN?Identify. Returns instrument identification string (manufacturer model serial firmware)
*RSTReset. Resets the instrument to factory default settings

Only on the Aim-TTi CPX400DP

26 command headers in the CPX400DP library have no match in the DP821 library. Below are 12 of them from the 6 largest subsystems; the full list is in the Aim-TTi CPX400DP command reference.

I1 (2 only on the CPX400DP)

CommandWhat it does
I1 <Amp>Set Current Ch1. Sets the current limit on channel 1 in Amps (0 to 20A, resolution 1mA)
I1?Read Set Current Ch1. Returns the set current limit of channel 1 in Amps

I2 (2 only on the CPX400DP)

CommandWhat it does
I2 <Amp>Set Current Ch2. Sets the current limit on channel 2 in Amps (0 to 20A, resolution 1mA)
I2?Read Set Current Ch2. Returns the set current limit of channel 2 in Amps

OCP1 (2 only on the CPX400DP)

CommandWhat it does
OCP1 <Amp>Set OCP Ch1. Sets the over-current protection trip level on channel 1 in Amps (resolution 10mA)
OCP1?Read OCP Ch1. Returns the set OCP level of channel 1 in Amps

OCP2 (2 only on the CPX400DP)

CommandWhat it does
OCP2 <Amp>Set OCP Ch2. Sets the over-current protection trip level on channel 2 in Amps (resolution 10mA)
OCP2?Read OCP Ch2. Returns the set OCP level of channel 2 in Amps

OP1 (2 only on the CPX400DP)

CommandWhat it does
OP1 1Turn On Ch1. Turns on output channel 1
OP1?Read State Ch1. Returns the output state of channel 1 (1=ON 0=OFF)

OP2 (2 only on the CPX400DP)

CommandWhat it does
OP2 1Turn On Ch2. Turns on output channel 2
OP2?Read State Ch2. Returns the output state of channel 2 (1=ON 0=OFF)

Only on the Rigol DP821

43 command headers in the DP821 library have no match in the CPX400DP library. Below are 22 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

SOURce (4 only on the DP821)

CommandWhat 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

SYSTem (4 only on the DP821)

CommandWhat it does
:SYSTem:ERRor?Read Error. Reads system error queue
: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

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

MEASure (3 only on the DP821)

CommandWhat it does
:MEASure:VOLTage?Measure Voltage. Measures actual output voltage
:MEASure:CURRent?Measure Current. Measures actual output current
:MEASure:POWer?Measure Power. Measures output power

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: OP1 1 on the CPX400DP and :OUTPut ON on the DP821. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: OP1? on the CPX400DP and :MEASure:VOLTage? on the DP821. 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_CPX400DP_ADDRESS")  # Aim-TTi CPX400DP
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("OP1 1")  # Turn On Ch1
b.write(":OUTPut ON")  # Turn On

# No shared reading with an example on both, so each uses its own command
print(a.query("OP1?"))  # Read State Ch1
print(b.query(":MEASure:VOLTage?"))  # Measure Voltage

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Aim-TTi CPX400DP and the Rigol DP821 for remote control?

In TestFlow's library the CPX400DP has 33 SCPI commands and the DP821 has 49 SCPI commands. 2 command headers are common to both, 26 are only on the CPX400DP (mostly I1 and I2), and 43 are only on the DP821 (mostly TRIGger and OUTPut).

Can I use the same SCPI code for the Aim-TTi CPX400DP and the Rigol DP821?

Partly. 2 command headers are accepted by both. 69 are not, for example I1 on the CPX400DP 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 CPX400DP or the DP821?

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

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

Only the CPX400DP library has an operation-complete command (*OPC?); the DP821 library has none. Only the DP821 library has an error-queue read (SYSTem:ERRor?); the CPX400DP library has none. 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.