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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file owon_psu-0.0.5.tar.gz.
File metadata
- Download URL: owon_psu-0.0.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6897a6350b2469217d9890def77462d7bbe0a1d28011765c468fbe89951c082
|
|
| MD5 |
78bceeb2602b661ab8b6f4d53842a758
|
|
| BLAKE2b-256 |
776a37bb60a1f7b89cd0a377926d816741742a42ed6bcd7e514292da15878d48
|
File details
Details for the file owon_psu-0.0.5-py3-none-any.whl.
File metadata
- Download URL: owon_psu-0.0.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc4b055980d4dabe7452441d83c3369d1adab056177f4ea7c7fde3a4b527f987
|
|
| MD5 |
d6d8544b883b374870a85e1aa45acad1
|
|
| BLAKE2b-256 |
cf31a0dd3b0b16f1f39c2d368b2c1c92e06745088657e19a5f6d6696e89b35d2
|