Power Supply · SCPI command reference

Aim-TTi CPX400SP, PLH120-P, PLH250-P, QL355P, QL564P, and QPX1200SP SCPI commands

The Aim-TTi CPX400SP, PLH120-P, PLH250-P, QL355P, QL564P, and QPX1200SP power supply is controlled remotely with SCPI commands. TestFlow's instrument library holds 20 commands for it, 9 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 CPX400SP on a real bench.

Commands
20
Queries
9
Subsystems
11
Models covered
6

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi CPX400SP, PLH120-P, PLH250-P, QL355P, QL564P, or QPX1200SP and writes the report from the measured results.

Get started

Control the Aim-TTi CPX400SP 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 CPX400SP's VISA address

# Paste the address of your Aim-TTi CPX400SP (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 this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi CPX400SP, PLH120-P, PLH250-P, QL355P, QL564P, or QPX1200SP and writes the report from the measured results.

Get started

Run a CPX400SP test without writing code

Describe the test in a sentence, for example “turn on ch1 on the CPX400SP, 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

20 commands in 11 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The CPX400SP, PLH120-P, PLH250-P, QL355P, QL564P, and QPX1200SP share this command set in TestFlow's library.

OP subsystem (3)

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

V subsystem (3)

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

I subsystem (3)

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

OVP subsystem (2)

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
OVP1?Read OVP Ch1. Returns the set OVP level of channel 1 in VoltsNone

OCP subsystem (2)

CommandWhat it doesArguments
OCP1 <Amp>Set OCP Ch1. Sets the over-current protection trip level on channel 1 in Amps (resolution 10mA)Number
OCP1?Read OCP Ch1. Returns the set OCP level of channel 1 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 CPX400SP, PLH120-P, PLH250-P, QL355P, QL564P, and QPX1200SP 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 CPX400SP support SCPI remote control?

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

How do I control the Aim-TTi CPX400SP 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 CPX400SP?

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