Power Supply · SCPI command reference

Sorensen XPL30-2 SCPI commands

The Sorensen XPL30-2 power supply is controlled remotely with SCPI commands. TestFlow's instrument library holds 28 commands for it, 11 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 XPL30-2 on a real bench.

Commands
28
Queries
11
Subsystems
13
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Sorensen XPL30-2 and writes the report from the measured results.

Get started

Control the Sorensen XPL30-2 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 Sorensen XPL30-2's VISA address

# Paste the address of your Sorensen XPL30-2 (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 Output State CH1

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Sorensen XPL30-2 and writes the report from the measured results.

Get started

Run a XPL30-2 test without writing code

Describe the test in a sentence, for example “turn on ch1 on the XPL30-2, then read output 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

28 commands in 13 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

V subsystem (4)

CommandWhat it doesArguments
V1 <Volt>Set Voltage CH1. Sets output 1 voltage in volts.Number
V1V <Volt>Set Voltage Verify CH1. Sets output 1 voltage in volts and waits until it is reached.Number
V1?Read Voltage Setting CH1. Reads the set voltage of output 1.None
V1O?Measure Voltage CH1. Reads back the actual output voltage of output 1.None

OP subsystem (3)

CommandWhat it doesArguments
OP1 1Turn On CH1. Enables output 1.None
OP1 0Turn Off CH1. Disables output 1.None
OP1?Read Output State CH1. Reads whether output 1 is ON (1) or OFF (0).None

I subsystem (3)

CommandWhat it doesArguments
I1 <Amp>Set Current CH1. Sets output 1 current limit in amps.Number
I1?Read Current Setting CH1. Reads the set current limit of output 1.None
I1O?Measure Current CH1. Reads back the actual output current of output 1.None

OVP subsystem (2)

CommandWhat it doesArguments
OVP1 <Volt>Set OVP CH1. Sets the over-voltage protection trip point of output 1 in volts.Number
OVP1?Read OVP CH1. Reads the over-voltage trip setting of output 1.None

OCP subsystem (2)

CommandWhat it doesArguments
OCP1 <Amp>Set OCP CH1. Sets the over-current protection trip point of output 1 in amps.Number
OCP1?Read OCP CH1. Reads the over-current trip setting of output 1.None

Save (SAVE) (1)

CommandWhat it doesArguments
SAV <Slot>Save State. Saves the current setup to the specified store.Number

RCL subsystem (1)

CommandWhat it doesArguments
RCL <Slot>Recall State. Recalls a setup from the specified store.Number

LOCAL subsystem (1)

CommandWhat it doesArguments
LOCALGo Local. Returns the instrument to local (front-panel) control.None

EER subsystem (1)

CommandWhat it doesArguments
EER?Read Error. Returns and clears the execution-error register value.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 (7)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears the status registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Generates a bus trigger.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Sorensen's programming documentation for the XPL30-2 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Sorensen's programming manual: check it before you rely on an edge case. Last updated June 30, 2026.

Frequently asked questions

Does the Sorensen XPL30-2 support SCPI remote control?

Yes. The Sorensen XPL30-2 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 28 SCPI commands for it: 11 queries that read values or state, and 17 settings and actions.

How do I control the Sorensen XPL30-2 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 Sorensen XPL30-2?

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

Can I automate the Sorensen XPL30-2 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 Sorensen XPL30-2 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.