Skip to main content

SOMANET Test Suite - Controller for EA PSUs

Linux

Move 99-ea-psu.rules to /etc/udev/rules.d/ and restart udev with sudo service udev restart. This rule will create devices, that look like ea-ps-20xx-xx-0 or ea-ps-23xx-xx-0 with an increasing counter for every connected device.

Before start

To use ttyACMx devices without sudo, add your user to the group dialout:

sudo adduser your_user dialout

Windows

When connecting the power supply, Windows will install automatically the correct drivers.

Installing module

pip3 install ea_psu_controller

Import module

import ea_psu_controller

Create object

To connect to a particular PSU, you can call

Linux: psu = PsuEA(comport='ttyACM0')

Windows: psu = PsuEA(comport='COM1') or as com port description: psu = PsuEA(comport='PS 2000 B')

If you added the device rule and you connected only one PSU, there is no need to provide a device name:

psu = PsuEA()

Also possible is:

psu = PsuEA(comport='ea-ps-20xx-xx-0')

| If there is more then one PSU connected to the host, the script will connect to the first device found. | It is also possible to take the S/N written on the back of the PSU and call (dev rule on Linux needed):

psu = PsuEA(sn='0123456789')

or to use the device designator (dev rule on Linux needed):

psu = PsuEA(desi='PS 2142-10B')

Dis/connect to power supply for controlling

psu.remote_on()

psu.remote_off()

For multi output devices most functions provide a additional output argument:

psu.remote_on(output_num=0) or psu.remote_on(output_num=1)

| It's only necessary to call remote_on(), when you want to control the PSU. | If you just want to read device information, you don't need to.

Power on and off output

psu.output_on()

psu.output_off()

or

psu.output_on(output_num=1)

psu.output_off(output_num=1)

Set parameters

Arguments can be int or float.

psu.set_voltage(24)

psu.set_current(0.5)

psu.set_ovp(30)

psu.set_ocp(8)

The script will always set the maximum possible values in dependency of the nominal power.

| For example: | Nominal power = 160 W | If you set now the voltage to 40 V, it's not possible to set a higher current than 4 A (=160W/40V). | If you want to set a higher current, you need to decrease first the voltage.

Get parameters

Return argument: float.

psu.get_voltage()

psu.get_current()

Maximum sampling rate is ~10 Hz.

Get status

Return argument: dictionary

psu.get_status()

Dict contains following keys:

  • 'remote on'
  • 'output on'
  • 'controller state' (CV=0, CC=2)
  • 'tracking active'
  • 'OVP activ'
  • 'OCP activ'
  • 'OPP activ'
  • 'OTP activ'

Get device description

Return argument: tuple (name, SN)

psu.get_device_description()

Close connection

To close the connection, call:

psu.close(remote=False, output=False)

Set both arguments to True to turn off the output and remote control

Metadata

Release files for ea-psu-controller 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ea-psu-controller 1.1.0
File Size Uploaded Provenance Actions
ea-psu-controller-1.1.0.tar.gz 7.4 kB Without provenance Details for ea-psu-controller-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ea-psu-controller 1.1.0
File Interpreter ABI Platform Actions
ea_psu_controller-1.1.0-py3-none-any.whl Python 3 none any Details for ea_psu_controller-1.1.0-py3-none-any.whl

Total release size: 15.6 kB

Release files / ea-psu-controller-1.1.0.tar.gz

Download URL ea-psu-controller-1.1.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
69dd13fe03b72abb3d638a2ab2cb01db09edf829b139fdf57ec949caf6b323d3
BLAKE2b-256 checksum
How to use checksums
1c1246cea67f35fd5b849ebefda792b43cbd2804e4db6f2e140456e42d9ef127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2

Release files / ea_psu_controller-1.1.0-py3-none-any.whl

Download URL ea_psu_controller-1.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26ffe8f9e743e609b054c544c0f12d258ead1f4b736d769fafc0db5139dc7691
BLAKE2b-256 checksum
How to use checksums
b70f76f34069442cb00167374c2fc9ebcc03f3403a9cabf879cd0b7629a6fd41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2

Security for ea-psu-controller 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page