SCPI driver for the Bloomy Controls Advanced Battery Simulator
Project description
Python library for SCPI control of the Bloomy Controls ABS.
Features
TCP, UDP, RS-485, and UDP multicast
Supports Windows and Linux
Implements all SCPI commands and queries supported by the ABS
Automatic device discovery over UDP multicast and RS-485
Implemented as a wrapper around the C/C++ library for a consistent interface regardless of the language
Installation
See docs/installation.rst for installation instructions.
Example usage
# import the library
import absscpi
from time import sleep
with ScpiClient() as client:
# open a UDP socket
client.open_udp("192.168.1.100")
# get general device information
id = client.get_device_id()
ident = client.get_device_info()
print(f"Device ID: {id}")
print(f"Part numer: {ident.get_part_number()}")
print(f"Serial number: {ident.get_serial_number()}")
print(f"FW version: {ident.get_version()}")
# command cell 1 to 1.4V
client.set_cell_voltage(0, 1.4)
client.set_cell_sourcing(0, 5.0)
client.set_cell_sinking(0, 5.0)
client.enable_cell(0, True)
sleep(0.05)
# measure cell 1's voltage
v = client.measure_cell_voltage(0)
print(f"Cell 1 voltage: {v}")
client.enable_cell(0, False)
Discussion
If you find any bugs, you can report them on the GitHub issue tracker.
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 absscpi-0.3.0.tar.gz
.
File metadata
- Download URL: absscpi-0.3.0.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5dbae53a5244297de5767a5c7e2e5c075365f95ad2f9ab222dc6b9218e0aea4 |
|
MD5 | 1d3feca6ddae69e97545b3215b52d538 |
|
BLAKE2b-256 | c77281a8962b20ab0c0550df30c8129d82672e9ba275570b150c6bb1e288347a |
Provenance
The following attestation bundles were made for absscpi-0.3.0.tar.gz
:
Publisher:
pypi-publish.yml
on BloomyControls/abs-scpi-driver-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
absscpi-0.3.0.tar.gz
- Subject digest:
e5dbae53a5244297de5767a5c7e2e5c075365f95ad2f9ab222dc6b9218e0aea4
- Sigstore transparency entry: 149576077
- Sigstore integration time:
- Predicate type:
File details
Details for the file absscpi-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: absscpi-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e36818f88130b47ee429f0222a90ef9516ad19fdd52effe237dad5dd0f6b23b |
|
MD5 | 5d7f8a12738b9db053f9b455855fc761 |
|
BLAKE2b-256 | 4c1a48efd1da2c4909e16f3b28a2ec3f1d2d6be33452b6e0d3caf44c84e971a9 |
Provenance
The following attestation bundles were made for absscpi-0.3.0-py3-none-any.whl
:
Publisher:
pypi-publish.yml
on BloomyControls/abs-scpi-driver-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
absscpi-0.3.0-py3-none-any.whl
- Subject digest:
4e36818f88130b47ee429f0222a90ef9516ad19fdd52effe237dad5dd0f6b23b
- Sigstore transparency entry: 149576081
- Sigstore integration time:
- Predicate type: