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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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