Skip to main content

Simple Python library for controlling Owon SPE6103 and SPE3103 power supplies

Project description

Owon SPE and P4000 series PSU python control library

This library works with the Owon SPE6103, SPE3103, and P4000 series (P4603 and P4305) power supplies. Kiprim devices "DC310S" and "DC605S" are also supported.

Installation

The easiest way to install is straight from the pypi project using pip:

pip install owon-psu

Example Usage with context manager

from owon_psu import OwonPSU

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

  print("Set Voltage:", opsu.get_voltage())
  print("Set Current:", opsu.get_current())

  print("Set Voltage Limit:", opsu.get_voltage_limit())
  print("Set Current Limit:", opsu.get_current_limit())

  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")
opsu.open()
print("Identity:", opsu.read_identity())
print("Voltage:", opsu.measure_voltage())
print("Current:", opsu.measure_current())

print("Set Voltage:", opsu.get_voltage())
print("Set Current:", opsu.get_current())

print("Set Voltage Limit:", opsu.get_voltage_limit())
print("Set Current Limit:", opsu.get_current_limit())

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)
opsu.close()

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.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

owon_psu-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: owon_psu-0.0.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for owon_psu-0.0.4.tar.gz
Algorithm Hash digest
SHA256 497b7c70997d030ee9d8d8916f613b1be346da575a4d42c5b28da19e0f37cb33
MD5 f4647174fc8e16178aa547e4f8956629
BLAKE2b-256 d69e9df23811de0c818efd7a93ff0286be9fe598ad511eeac58fb470abe3eb70

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for owon_psu-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dad74a87b998634a7a5bf95c8f395e156aa4521e949ca62bf90e9f7ffbbec194
MD5 22f66ea8be59e56e48482b3b6e3a8ba4
BLAKE2b-256 3eba51a0836e9b9a412ccbe8e792cd29524f716bfff2823e2d991b21a79f04c7

See more details on using hashes here.

Supported by

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