Power Supply · SCPI command reference

Aim-TTi CPX400DP and QL355TP SCPI commands

The Aim-TTi CPX400DP and QL355TP power supply is controlled remotely with SCPI commands. TestFlow's instrument library holds 33 commands for it, 16 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the CPX400DP on a real bench.

Commands
33
Queries
16
Subsystems
11
Models covered
2

Control the Aim-TTi CPX400DP from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Aim-TTi CPX400DP's VISA address

# Paste the address of your Aim-TTi CPX400DP (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write("OP1 1")  # Turn On Ch1
print(inst.query("OP1?"))  # Read State Ch1

inst.close()

Run a CPX400DP test without writing code

Describe the test in a sentence, for example “turn on ch1 on the CPX400DP, then read state ch1 and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

33 commands in 11 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The CPX400DP and QL355TP share this command set in TestFlow's library.

OP subsystem (6)

CommandWhat it doesArguments
OP1 1Turn On Ch1. Turns on output channel 1None
OP1 0Turn Off Ch1. Turns off output channel 1None
OP2 1Turn On Ch2. Turns on output channel 2None
OP2 0Turn Off Ch2. Turns off output channel 2None
OP1?Read State Ch1. Returns the output state of channel 1 (1=ON 0=OFF)None
OP2?Read State Ch2. Returns the output state of channel 2 (1=ON 0=OFF)None

V subsystem (6)

CommandWhat it doesArguments
V1 <Volt>Set Voltage Ch1. Sets the voltage on channel 1 in Volts (0 to 60V, resolution 10mV)Number
V2 <Volt>Set Voltage Ch2. Sets the voltage on channel 2 in Volts (0 to 60V, resolution 10mV)Number
V1?Read Set Voltage Ch1. Returns the set voltage of channel 1 in VoltsNone
V2?Read Set Voltage Ch2. Returns the set voltage of channel 2 in VoltsNone
V1O?Measure Voltage Ch1. Measures the actual output voltage on channel 1 in VoltsNone
V2O?Measure Voltage Ch2. Measures the actual output voltage on channel 2 in VoltsNone

I subsystem (6)

CommandWhat it doesArguments
I1 <Amp>Set Current Ch1. Sets the current limit on channel 1 in Amps (0 to 20A, resolution 1mA)Number
I2 <Amp>Set Current Ch2. Sets the current limit on channel 2 in Amps (0 to 20A, resolution 1mA)Number
I1?Read Set Current Ch1. Returns the set current limit of channel 1 in AmpsNone
I2?Read Set Current Ch2. Returns the set current limit of channel 2 in AmpsNone
I1O?Measure Current Ch1. Measures the actual output current on channel 1 in AmpsNone
I2O?Measure Current Ch2. Measures the actual output current on channel 2 in AmpsNone

OVP subsystem (4)

CommandWhat it doesArguments
OVP1 <Volt>Set OVP Ch1. Sets the over-voltage protection trip level on channel 1 in Volts (1V to 66V, resolution 100mV)Number
OVP2 <Volt>Set OVP Ch2. Sets the over-voltage protection trip level on channel 2 in Volts (1V to 66V, resolution 100mV)Number
OVP1?Read OVP Ch1. Returns the set OVP level of channel 1 in VoltsNone
OVP2?Read OVP Ch2. Returns the set OVP level of channel 2 in VoltsNone

OCP subsystem (4)

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

TRIPRST subsystem (1)

CommandWhat it doesArguments
TRIPRSTClear Trip Ch1. Clears any trip condition on channel 1 (OVP or OCP) and resets the outputNone

LSR subsystem (1)

CommandWhat it doesArguments
LSR1?Read Trip Status. Returns the Limit Status Register for channel 1 (bit 0=CV bit 1=CC bit 4=OVP trip bit 5=OCP trip)None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (2)

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

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Aim-TTi's programming documentation for the CPX400DP and QL355TP and checked when the agent runs it. The library marks this instrument as supporting *OPC? for operation-complete synchronisation. Ranges, timing, and option-dependent commands are defined by Aim-TTi's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Aim-TTi CPX400DP support SCPI remote control?

Yes. The Aim-TTi CPX400DP accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 33 SCPI commands for it: 16 queries that read values or state, and 17 settings and actions.

How do I control the Aim-TTi CPX400DP from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, OP1 1 and OP1?.

Which command reads a value from the Aim-TTi CPX400DP?

OP1? (read state ch1). Returns the output state of channel 1 (1=ON 0=OFF) The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Aim-TTi CPX400DP without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Aim-TTi CPX400DP through the TestFlow desktop app, and writes the report from the measured results.

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.