Skip to main content

Simple Python library for controlling Owon SPE6103 and SPE3103 power supplies

Project description

Owon SPEx103 PSU python control library

This library works with the Owon SPE6103 and SPE3103 power supplies.

Example Usage with context manager

from owon_psu import OwonPSU

with OwonPSU("/dev/ttyUSB0") as opsu:
  print("Identity:", opsu.read_identity())
  print("Voltage:", opsu.measure_voltage())
  print("Current:", opsu.measure_current())

  opsu.set_voltage(20)
  opsu.set_current(2)
  opsu.set_voltage_limit(30)
  opsu.set_current_limit(3)
  print("Output enabled:", opsu.get_output())
  opsu.set_output(True)

Example Usage without context manager

from owon_psu import OwonPSU

opsu = OwonPSU("/dev/ttyUSB0")
print("Identity:", opsu.read_identity())
print("Voltage:", opsu.measure_voltage())
print("Current:", opsu.measure_current())
opsu.set_voltage(20)
opsu.set_current(2)
opsu.set_voltage_limit(30)
opsu.set_current_limit(3)
print("Output enabled:", opsu.get_output())
opsu.set_output(True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

owon_psu-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

owon_psu-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file owon_psu-0.0.1.tar.gz.

File metadata

  • Download URL: owon_psu-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for owon_psu-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e6968833d7aabdccbfd076fac8e0059055c074e562fd3cd814bcab14934ff004
MD5 0078061e09e69f8aae4eb5a0de27f9dd
BLAKE2b-256 de8f9fe2134413ceece1d4a05bd6751eb9540bc2f7977f3167f171869bbdef51

See more details on using hashes here.

File details

Details for the file owon_psu-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: owon_psu-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for owon_psu-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5a807d630b092500a2aaf6589dc164b289d2db34e29ec682d73077a28575f4b
MD5 d72dd778904f5f08ab36a1cf6c7f660e
BLAKE2b-256 aa5fa22e91b7741e84a21c9f558f6c4318a5357a8ce430d929fc3611536a25bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page