Skip to main content
InstroPSU provides a unified interface for programmable power supplies. This class is initialized with a vendor-specific driver (BK9115, KeysightE36100, RigolDP800, …), and provides the vendor-agnostic API (set_voltage, get_voltage, output_enable, …).

Creating an InstroPSU

Supported Vendors

B&K Precision 9115

B&K Precision 9115

B&K Precision 914x

B&K Precision 914x

Keysight E36100

Keysight E36100

Rigol DP800

Rigol DP800

Siglent SPD3303

Siglent SPD3303

TDK Lambda Genesys

TDK Lambda Genesys
The following vendor is available as a community-contributed driver in instro-contrib (install with instro[contrib]; see Contrib drivers):
  • Matrix: WPS300S-series single-channel via SCPI/RS-232 (MatrixWPS300S)
If your vendor or model is not listed, see Custom Driver Development, or open a Driver Request issue on GitHub.

Example

More examples found in Examples

Details

The following presents details about the InstroPSU. Specific driver details can be found on their pages.

Driver Composition

An InstroPSU is built from a concrete driver:
  • The vendor driver (e.g. BK9115) owns the connection setup and vendor-specific command mapping.
  • InstroPSU owns the category-level workflow: measurements, commands, publishers, the background daemon.

Lifecycle

The typical InstroPSU workflow:
  1. Construct: instantiate the vendor driver and pass it to InstroPSU.
  2. open(): establishes the VISA connection.
  3. Configure and measure: set voltage/current limits, enable outputs, read measurements.
  4. start(): begins a periodic background daemon. (Optional)
  5. stop(): ends the background daemon (if started).
  6. close(): disconnects from hardware.

Init from a Config File

InstroPSU can also be constructed directly from a JSON config file, which removes the need to write any Python setup code:
Where bench_psu.json contains:
See Config Files for the full field reference.

Simulated Power Supply

For development and testing without physical hardware, Nominal Instrumentation includes a local SCPI power-supply simulator. See PSU simulator for the quickstart, usage notes, and supported command set.

Custom Driver Development

For more information on writing a custom driver, see Custom Driver Development.