Python Interface for the DATAQ DI-2008 DAQ
Project description
DI2008-Python
About
Interface for the DI-2008 in Python.
Modified from original interface in Python by DATAQ Instruments under MIT License
Maintainer: Clark Hensley ch3136@msstate.edu
Getting Started
Install via pip from PyPI:
pip install di2008-python
Instantiate DI2008 Object with Dictionary of Parameters:
from di2008_python import DI2008, DI2008Channels, DI2008Layout, DI2008TCType
# Enable the DI-2008 with a K-Type thermocopule in Analog Channel 1, an N-Type Thermocouple in Analog Channel 3, and the Digital Channel active
di2008 = DI2008({
<DI-2008 SERIAL NUMBER>: {
DI2008Channels.CH1: (DI2008Layout.TC, DI2008TCType.K),
DI2008Channels.CH3: (DI2008Layout.TC, DI2008TCType.N),
DI2008UseDigital: True,
}
},
)
This interface uses named enumerations to ensure that what settings are being used is clear and concise
A path to a .toml or .json file can also be passed in, formatted with the same names:
[<DI-2008 SERIAL NUMBER>]
"DI2008Channels.CH1" = ["DI2008Layout.TC", "DI2008TCType.K"]
"DI2008Channels.CH3" = ["DI2008Layout.TC", "DI2008TCType.N"]
"DI2008UseDigital" = true
(Note that toml format will treat the dotted names like DI2008Channels.CH1 as dictionaries, so they must be in quotes. The parser does handle variations in capitalization, spacing, or use of hyphens and underscores)
Current Features:
- Thermocouples
- ADC Reading
- Digital Reading
- Changing Scan Rate, Decimation, and Filtering Mode
- Automatic ChannelStretch Synchronized Initialization
- Reading configuration from .json/.toml files as well as raw Python dictionaries
- Enforce cleanup on stopping
Planned Features:
- Changing Packet Rate Size
- Interface with the
infooperator - CJCDelta
- Rate Measurement
- LED Color
- Specify Digital Input as well as Output
Further information about the DI-2008 can be found on DATAQ's website and via the DI-2008 Protocol.
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 di2008_python-1.1.3.tar.gz.
File metadata
- Download URL: di2008_python-1.1.3.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
262fe7d9a17f458d027123f1f1108a5a50b1a6f3f1196f51c5ab21e4aa8d9fbb
|
|
| MD5 |
dbc1bca27cf2dd6be97e3c69dca6dce8
|
|
| BLAKE2b-256 |
35604dd0225eae1f34d67917b6d36c704d10c3622faf60fedc57100b7e02d512
|
File details
Details for the file di2008_python-1.1.3-py3-none-any.whl.
File metadata
- Download URL: di2008_python-1.1.3-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a46958b5377d78c39eff3d07184517c8af8fab197014b593527331bb58d27616
|
|
| MD5 |
2d4f4e0c334793916eb6524c3052f9dc
|
|
| BLAKE2b-256 |
55303ef7532de486834af22205cf26be3033224bc865aa42dd95a96e8927676d
|