serialdaq
This module defines classes for controlling Omega DPG-4000 pressure sensors and the GwInstek LCR-821 meters. This implementation features auto-connect to the device (by scanning available serial ports) and provides methods for finite- or indefinite-time data acquisition (and saving to file).
The classes for each device are subclasses of a SerialDevice class to allow expansion for use with other serial devices (simply inherit SerialDevice and define the get_reading() method, and the baud and data_columns properties).
Installation
To install serialdaq, use pip (or similar):
pip install serialdaq
Documentation
This package detects the device automatically if only one is connected; if not, specify port. Collects every 10s forever unless count is given. Data is saved to specified file (filename required).
LCR meter example
import serialdaq
lcr = serialdaq.LCRMeter()
lcr.start_collection('output_filename.csv')
Omega pressure sensor example
import serialdaq
omega = serialdaq.PressureSensor()
omega.start_collection('output_filename.csv')
Other ways of using this module
import serialdaq
serialdaq.serial_ports() # list all available serial ports
serialdaq.list_devices() # list all devices
omega = serialdaq.PressureSensor('COM5') # connect to a specific port
omega.get_reading() # get a single reading
omega.start_collection('output_filename.csv', # output filename (required)
dt=5, # sample interval (seconds)
count=20, # number of readings to get
label='50um') # single label for data
omega.start_collection('output_filename.csv', # output filename (required)
dt=10, # sample interval (seconds)
count=10, # number of readings to get
label=['50um', 'trial1']) # multiple labels for data
Metadata
Release files for serialdaq 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| serialdaq-0.1.3.tar.gz | 5.9 kB | Without provenance | Details for serialdaq-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serialdaq-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for serialdaq-0.1.3-py3-none-any.whl |
Total release size: 20.6 kB
Release files / serialdaq-0.1.3.tar.gz
| Download URL | serialdaq-0.1.3.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98139b186acd4cb61630eec33bc91c6da6683db649a7de83ec92b8ce210bfe5d
|
|
BLAKE2b-256 checksum How to use checksums |
6762bb765979809e60d6459724290eec22a2538a188fcf01956f7d7f6e1ef3ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.6.0 Windows/10
|
Release files / serialdaq-0.1.3-py3-none-any.whl
| Download URL | serialdaq-0.1.3-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b533aac532f4feb52acc15d9737fe897f436d058dc9bdfb9f44af8834737251d
|
|
BLAKE2b-256 checksum How to use checksums |
3697c4eb58ce0d4f67c16e67e62fe620531b56e93027d266bc15d2d2cb2241c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.6.0 Windows/10
|
Security for serialdaq 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.