Python APIs for mass flow controllers used in the Matter Lab.
Project description
Matter Lab Mass Flow Controllers
matterlab_mfcs provides Python drivers for mass flow controllers used in Matter Lab automation workflows.
The first supported device family is Alicat instruments using the Modbus RTU manual bundled with this workspace.
Installation
Use the matterlab conda environment and install the package in editable mode during development:
pip install -e .[dev]
The package depends on matterlab_serial_device for serial communication.
Quick Start
from matterlab_mfcs import AlicatMFC
mfc = AlicatMFC(com_port="COM5", address=1)
print(mfc.firmware_version)
print(mfc.serial_number)
print(mfc.pressure)
print(mfc.temperature)
Testing
Unit tests are the default:
pytest
Real hardware validation is opt-in:
pytest tests/test_alicat_mfc_real.py --run-real --com-port COM5 --address 1
Notes
- Source code lives under
src/ - Pytest uses
srcas the import root - Real hardware tests are skipped unless explicitly enabled
- The Alicat Modbus CRC implementation matches the Modbus RTU framing validated against the local device on
COM5 - Multi-read snapshots should live in scripts or tests, not inside the driver
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matterlab_mfcs-0.1.0.tar.gz.
File metadata
- Download URL: matterlab_mfcs-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41f438976b135f706e91468942f7cc91af9db7e8f305d9a02f35a2a5d44fdb85
|
|
| MD5 |
a131a033fe9afcf0abfb3433bb24a2d9
|
|
| BLAKE2b-256 |
d33f2d501fa70bdd3c64b539df77dc1ae6b0ae88a346b871ef7030797b50ace4
|
File details
Details for the file matterlab_mfcs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: matterlab_mfcs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd167602f733773b54d90c1d77d36ff60456c897cf586469acc1e7361b08ca2d
|
|
| MD5 |
9148aee6d907ff8d010c8184b3469823
|
|
| BLAKE2b-256 |
813015d0b54ebb6c2afa97c9451bcb662e7808a60d511cf4c3bcd155cd7f5121
|