Skip to main content

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

This version
History Node

1.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
wmr_cba-1.1.0-py3-none-any.whl (12.5 kB) Copy SHA256 hash SHA256 Wheel py3
wmr_cba-1.1.0.tar.gz (11.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page