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. 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")
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)
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file owon_psu-0.0.2.tar.gz
.
File metadata
- Download URL: owon_psu-0.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5e9687467384afe4d3c02d9529b167229ac4330dbff9ec38db9f563cb5ce66 |
|
MD5 | 3f249b39d0d0e2a427c50359f2049459 |
|
BLAKE2b-256 | 062a9e004ec0a007769ed47bffceb75cdf0f6d9e7eaf53b1b145eed46f0bea2d |
File details
Details for the file owon_psu-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: owon_psu-0.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d28a1718e41158ef0d4fa017fb16b374dfba7b3f206c0aa9b8f8005d9073fd0 |
|
MD5 | 370668f0ed0cff41e82c00ce6d827b65 |
|
BLAKE2b-256 | 94bfe77fbfe7f9c64efb2325298b50b924349c8ed1ccbc5b3864be8c41d32866 |