The Aim-TTi CPX200D, CPX400D, CPX400S, CPX400SA, and PLH120 power supply is controlled remotely with SCPI commands. TestFlow's instrument library holds 34 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 CPX200D on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi CPX200D, CPX400D, CPX400S, CPX400SA, or PLH120 and writes the report from the measured results.
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 CPX200D's VISA address
# Paste the address of your Aim-TTi CPX200D (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()Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi CPX200D, CPX400D, CPX400S, CPX400SA, or PLH120 and writes the report from the measured results.
Describe the test in a sentence, for example “turn on ch1 on the CPX200D, 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.
34 commands in 11 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The CPX200D, CPX400D, CPX400S, CPX400SA, and PLH120 share this command set in TestFlow's library.
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| TRIPRST1 | Clear Trip Ch1. Clears any trip condition on channel 1 (OVP or OCP) and resets the output | None |
| TRIPRST2 | Clear Trip Ch2. Clears any trip condition on channel 2 (OVP or OCP) and resets the output | None |
| 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 |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| 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 |
This reference is generated from TestFlow's instrument library, which is drafted from Aim-TTi's programming documentation for the CPX200D, CPX400D, CPX400S, CPX400SA, and PLH120 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 3, 2026.
Yes. The Aim-TTi CPX200D accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 34 SCPI commands for it: 16 queries that read values or state, and 18 settings and actions.
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?.
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.
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 CPX200D through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.