Power Supply · SCPI command comparison

Aim-TTi CPX400DP vs Rohde & Schwarz HMC8043: 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 Rohde & Schwarz HMC8043 takes 70 SCPI commands, 28 of them queries. That is 37 more on the HMC8043. Counting distinct command headers (the command path without its arguments), 2 are accepted by both, 26 exist only on the CPX400DP, and 61 only on the HMC8043. 7% of the CPX400DP's command headers also exist on the HMC8043.

Only the CPX400DP has OP1, OP2, V1, V2, V1O, and V2O and 10 more. Only the HMC8043 has VOLTage, OUTPut, FUSE, SYSTem, CURRent, and POWer and 4 more.

Both libraries synchronise with *OPC?. Only the HMC8043 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.

CPX400DP commands
33
HMC8043 commands
70
Shared headers
2
Unique headers
87

Run this on your bench

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

Get started

CPX400DP vs HMC8043 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 CPX400DPRohde & Schwarz HMC8043
Commands in TestFlow's library3370
Queries (read a value or state)1628
Settings and actions1742
Subsystems1111
Distinct command headers2863
Headers the other lacks2661
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueNot in librarySYSTem:ERRor?
Models on this command setCPX400DP, MX100QP, MX100TP, MX103QP, MX180TP, PL303QMDP, PL303QMTP, QL355TP, QL564TP, QPX600DPHMC8043

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 HMC8043 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 Rohde & Schwarz HMC8043

61 command headers in the HMC8043 library have no match in the CPX400DP library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz HMC8043 command reference.

VOLTage (11 only on the HMC8043)

CommandWhat 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).

FUSE (8 only on the HMC8043)

CommandWhat 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).

SYSTem (7 only on the HMC8043)

CommandWhat it does
SYSTem:ERRor?Read Error. Read and remove the oldest error, e.g. 0,"No error" or -102,"Syntax error" (manual p.23).
SYSTem:VERSion?Read Version. Return the firmware version and the SCPI version (manual p.23).
SYSTem:REMoteRemote. Switch to remote control (manual p.23).
SYSTem:LOCalLocal. Return to front-panel control; also the only way to unlock after Remote_Lock (manual p.23).

IEEE 488.2 common (*) (6 only on the HMC8043)

CommandWhat it does
*CLSClear 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).
*WAIWait. 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).

MEASure (6 only on the HMC8043)

CommandWhat it does
MEASure:VOLTage?Measure Voltage. Return the voltage measured at the selected channel's output in V (manual p.38).
MEASure:CURRent?Measure Current. Return the current measured at the selected channel's output in A (manual p.38).
MEASure:POWer?Measure Power. Return the power measured at the selected channel's output in W (manual p.38).
MEASure:ENERgy:STATe <State>Set Energy Meter. Turn the selected channel's energy meter on or off (manual p.38).

OUTPut (6 only on the HMC8043)

CommandWhat it does
OUTPut ONOutput On. Turn the selected channel's output on together with the master output (manual p.30).
OUTPut?Read Output. Return 1 when the selected channel's output is on, else 0 (manual p.30).
OUTPut:CHANnel ONChannel 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).

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 VOLTage UP on the HMC8043. 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 HMC8043. 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_HMC8043_ADDRESS")  # Rohde & Schwarz HMC8043
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("VOLTage UP")  # Voltage Up

# 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 Rohde & Schwarz HMC8043 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Aim-TTi CPX400DP and the Rohde & Schwarz HMC8043 for remote control?

In TestFlow's library the CPX400DP has 33 SCPI commands and the HMC8043 has 70 SCPI commands. 2 command headers are common to both, 26 are only on the CPX400DP (mostly I1 and I2), and 61 are only on the HMC8043 (mostly VOLTage and FUSE).

Can I use the same SCPI code for the Aim-TTi CPX400DP and the Rohde & Schwarz HMC8043?

Partly. 2 command headers are accepted by both. 87 are not, for example I1 on the CPX400DP and VOLTage on the HMC8043, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the CPX400DP or the HMC8043?

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

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

Both libraries synchronise with *OPC?. Only the HMC8043 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.