Python module for controlling West Mountain Radio CBA devices.
Project description
wmr_cba
wmr_cba is a Python library for controlling a West Mountain Radio CBAIV.
libusb is used, tested in both Linux and Windows. A simple Linux udev rules file is provided, as well as a Windows libusb WinUSB driver. See the /drivers/ folders of the GitHub repo for these files. Windows users can also use the Windows drivers provided by West Mountain Radio, achieved by ctyping the West Mountain Radio driver DLLs.
This was developed by following the SDK of the CBAIV provided by West Mountain Radio.
How to use
The package can be installed using pip:
pip install wmr_cba
Some example code:
from wmr_cba import wmr_cba
cba = wmr_cba.CBA4()
cba.do_start(1.0)
time.sleep(5)
print("Measured voltage under 1 Amp load: "+str(cba.get_voltage()))
cba.do_stop()
cba.close()
License
wmr_cba is released under the MIT License. See LICENSE for more information.
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
Built Distribution
File details
Details for the file wmr_cba-1.1.0.tar.gz
.
File metadata
- Download URL: wmr_cba-1.1.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2f21333727c3e8261ebf4c14829f9e675554e41683265641784a93b051e150 |
|
MD5 | f1f55e3e4960d75f714e6f74a3b9e81e |
|
BLAKE2b-256 | 135650583f91ed49860d12dd340165d20d4bc045e77dd953474867da71f696ac |
File details
Details for the file wmr_cba-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: wmr_cba-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd6d8bba8802bc24677ea5050eb476a010b11bb7d0948be53dfdeabaaded1dd3 |
|
MD5 | 406b529fc6bc70639896fe7fdf63603f |
|
BLAKE2b-256 | c720647f9cab1b185a64f3dbbf56f9a1b19225a3a4c3d993a11f0acd690314ab |