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.
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)
Command
What it does
Arguments
OP1 1
Turn On Ch1. Turns on output channel 1
None
OP1 0
Turn Off Ch1. Turns off output channel 1
None
OP2 1
Turn On Ch2. Turns on output channel 2
None
OP2 0
Turn Off Ch2. Turns off output channel 2
None
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)
Command
What it does
Arguments
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 Volts
None
V2?
Read Set Voltage Ch2. Returns the set voltage of channel 2 in Volts
None
V1O?
Measure Voltage Ch1. Measures the actual output voltage on channel 1 in Volts
None
V2O?
Measure Voltage Ch2. Measures the actual output voltage on channel 2 in Volts
None
I subsystem (6)
Command
What it does
Arguments
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 Amps
None
I2?
Read Set Current Ch2. Returns the set current limit of channel 2 in Amps
None
I1O?
Measure Current Ch1. Measures the actual output current on channel 1 in Amps
None
I2O?
Measure Current Ch2. Measures the actual output current on channel 2 in Amps
None
OVP subsystem (4)
Command
What it does
Arguments
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 Volts
None
OVP2?
Read OVP Ch2. Returns the set OVP level of channel 2 in Volts
None
OCP subsystem (4)
Command
What it does
Arguments
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 Amps
None
OCP2?
Read OCP Ch2. Returns the set OCP level of channel 2 in Amps
None
TRIPRST subsystem (1)
Command
What it does
Arguments
TRIPRST
Clear Trip Ch1. Clears any trip condition on channel 1 (OVP or OCP) and resets the output
None
LSR subsystem (1)
Command
What it does
Arguments
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)
Command
What it does
Arguments
<Output Variable>=<Equation>
Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)
Number; Text
WAIT subsystem (1)
Command
What it does
Arguments
wait(<ms>)
Wait. Waits for number of milliseconds
Number
SAVE subsystem (1)
Command
What it does
Arguments
save2var <Variable_name>
Save2Variable. Saves last measurement to a variable
Text
IEEE 488.2 common commands (2)
Command
What it does
Arguments
*IDN?
Identify. Returns instrument identification string (manufacturer model serial firmware)
None
*RST
Reset. Resets the instrument to factory default settings
None
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.