bk-precision-1900-1.0.1


توضیحات

Control the BK Precision 1900 series power supplies
ویژگی مقدار
سیستم عامل -
نام فایل bk-precision-1900-1.0.1
نام bk-precision-1900
نسخه کتابخانه 1.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Carlos Asmat
ایمیل نویسنده casmat@dephy.com
آدرس صفحه اصلی https://github.com/DephyInc/bk_precision_1900
آدرس اینترنتی https://pypi.org/project/bk-precision-1900/
مجوز MIT
# BK Precision 1900 ## Description This project implements the BK Precision 1902B control as a Python context manager. It allows users to easily access and manipulate the BK Precision 1902B control through a Python interface. It is only tested with the BK 1902B Power supply but should work with all of any supply for the 1900 series. ## Installation ### Via pip To install the package from PyPI using pip, run the following command: pip install bk_precision_1900 ### From the repository To install the package from the repository, clone the repository and install it using poetry: ```bash git clone https://github.com/DephyInc/bk_precision_1900 cd bk_precision_1900 poetry install ``` ## Running the Demo Code To run the demo code from the repo, use the following command: ```bash poetry shell poetry run python bk_demo.py [SERIAL_PORT] ``` This will execute the `bk_demo.py` script, which sets a series of voltages in the BK Precision 1902B and prints out the display readouts. Note that you will need to have poetry installed on your system in order to use the poetry run command. You can install poetry by following the instructions at https://python-poetry.org/docs/. ## Usage Sample code snippey to control a BK Precision 1902B at port `/dev/ttyUSB0` ```python from bk_precision_1900.bk1902b import BK1902B with BK1902B("/dev/ttyUSB0") as psu: psu.set_current(0.1) psu.set_voltage(1) psu.set_output_on() time.sleep(10) psu.set_output_off() ``` ## To Do * Implement all commands * cleanup repo structure * Read max voltage and current instead of hard-coding * Add tests * Automate release


نیازمندی

مقدار نام
>=3.5,<4.0 pyserial


زبان مورد نیاز

مقدار نام
>=3.10,<4.0 Python


نحوه نصب


نصب پکیج whl bk-precision-1900-1.0.1:

    pip install bk-precision-1900-1.0.1.whl


نصب پکیج tar.gz bk-precision-1900-1.0.1:

    pip install bk-precision-1900-1.0.1.tar.gz