owon-psu


Nameowon-psu JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/robbederks/owon-psu-control
SummarySimple Python library for controlling Owon SPE6103 and SPE3103 power supplies
upload_time2025-03-10 22:17:00
maintainerNone
docs_urlNone
authorRobbe Derks
requires_pythonNone
licenseNone
keywords scpi owon spe6103 spe3103 simple
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://pypi.org/project/owon-psu/) using pip:
```
pip install owon-psu
```

## Example Usage with context manager
```python
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
```python
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/robbederks/owon-psu-control",
    "name": "owon-psu",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "scpi, owon, SPE6103, SPE3103, simple",
    "author": "Robbe Derks",
    "author_email": "robbe.derks@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/18/bc/b3d2c8e703482c3e916aa4d0bbf67f3a91d460919dd8cf202b2529555b4f/owon_psu-0.0.3.tar.gz",
    "platform": null,
    "description": "# Owon SPEx103 PSU python control library\nThis library works with the Owon SPE6103 and SPE3103 power supplies.\nKiprim devices \"DC310S\" and \"DC605S\" are also supported.\n\n## Installation\nThe easiest way to install is straight from [the pypi project](https://pypi.org/project/owon-psu/) using pip:\n```\npip install owon-psu\n```\n\n## Example Usage with context manager\n```python\nfrom owon_psu import OwonPSU\n\nwith OwonPSU(\"/dev/ttyUSB0\") as opsu:\n  print(\"Identity:\", opsu.read_identity())\n  print(\"Measured Voltage:\", opsu.measure_voltage())\n  print(\"Measured Current:\", opsu.measure_current())\n\n  print(\"Set Voltage:\", opsu.get_voltage())\n  print(\"Set Current:\", opsu.get_current())\n\n  print(\"Set Voltage Limit:\", opsu.get_voltage_limit())\n  print(\"Set Current Limit:\", opsu.get_current_limit())\n\n  opsu.set_voltage(20)\n  opsu.set_current(2)\n  opsu.set_voltage_limit(30)\n  opsu.set_current_limit(3)\n\n  print(\"Output enabled:\", opsu.get_output())\n  opsu.set_output(True)\n```\n\n## Example Usage without context manager\n```python\nfrom owon_psu import OwonPSU\n\nopsu = OwonPSU(\"/dev/ttyUSB0\")\nprint(\"Identity:\", opsu.read_identity())\nprint(\"Voltage:\", opsu.measure_voltage())\nprint(\"Current:\", opsu.measure_current())\n\nprint(\"Set Voltage:\", opsu.get_voltage())\nprint(\"Set Current:\", opsu.get_current())\n\nprint(\"Set Voltage Limit:\", opsu.get_voltage_limit())\nprint(\"Set Current Limit:\", opsu.get_current_limit())\n\nopsu.set_voltage(20)\nopsu.set_current(2)\nopsu.set_voltage_limit(30)\nopsu.set_current_limit(3)\nprint(\"Output enabled:\", opsu.get_output())\nopsu.set_output(True)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simple Python library for controlling Owon SPE6103 and SPE3103 power supplies",
    "version": "0.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/robbederks/owon-psu-control/issues",
        "Homepage": "https://github.com/robbederks/owon-psu-control",
        "Source Code": "https://github.com/robbederks/owon-psu-control"
    },
    "split_keywords": [
        "scpi",
        " owon",
        " spe6103",
        " spe3103",
        " simple"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "02268e1c43ef38886b1f23b7411e4365d6494fec62b66e696f450898f5c72220",
                "md5": "b6b9e46105498037d5c427a70af81485",
                "sha256": "432550f6a482ea42eb28ccce2ba907916cfac0a5876dc32905909159ddb4aeb8"
            },
            "downloads": -1,
            "filename": "owon_psu-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b6b9e46105498037d5c427a70af81485",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3795,
            "upload_time": "2025-03-10T22:17:00",
            "upload_time_iso_8601": "2025-03-10T22:17:00.110965Z",
            "url": "https://files.pythonhosted.org/packages/02/26/8e1c43ef38886b1f23b7411e4365d6494fec62b66e696f450898f5c72220/owon_psu-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "18bcb3d2c8e703482c3e916aa4d0bbf67f3a91d460919dd8cf202b2529555b4f",
                "md5": "27944df150145fff1534b2b578c58ed6",
                "sha256": "92e4d449dda08e428e44e1933ac735deab68e2f64a33e6fb11794b592fb65100"
            },
            "downloads": -1,
            "filename": "owon_psu-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "27944df150145fff1534b2b578c58ed6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3643,
            "upload_time": "2025-03-10T22:17:00",
            "upload_time_iso_8601": "2025-03-10T22:17:00.995197Z",
            "url": "https://files.pythonhosted.org/packages/18/bc/b3d2c8e703482c3e916aa4d0bbf67f3a91d460919dd8cf202b2529555b4f/owon_psu-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-10 22:17:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "robbederks",
    "github_project": "owon-psu-control",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "owon-psu"
}
        
Elapsed time: 0.41150s