Skip to main content

Add your description here

Project description

DI-2008-Driver

About

Driver for interfacing with the DI-2008 in Python.

Modified from original driver 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),
        }
    },
    use_digital=True)

This driver uses named enumerations to ensure that what settings are being used is clear and concise

Current Features:

  • Thermocouples
  • ADC Reading
  • Digital Reading
  • Changing Scan Rate, Decimation, and Filtering Mode
  • Automatic ChannelStretch Synchronized Initialization

Planned Features:

  • Changing Packet Rate Size
  • Interface with the info operator
  • Enforce cleanup on stopping
  • CJCDelta
  • Rate Measurement
  • LED Color
  • Specify Digital Input as well as Output
  • Reading configuration from .json/.toml files as well as raw Python dictionaries

Further information about the DI-2008 can be found on DATAQ's website and via the DI-2008 Protocol.

Project details


Download files

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

Source Distribution

di2008_python-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

di2008_python-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file di2008_python-0.1.0.tar.gz.

File metadata

  • Download URL: di2008_python-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for di2008_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aca1d27cb3022576cdef0ec14cb5649f30590f0309794b7e4827f1c1b1da6e09
MD5 88330b42fc603033a7ae94bf1b72bd2d
BLAKE2b-256 d785a7f433c9d8f4bf9d72ad89d3d195724348bd2c77bba42860ea871d119807

See more details on using hashes here.

File details

Details for the file di2008_python-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for di2008_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8759dc1f01a28eeddfa5b4ab2e196ed7ac46e61e0005b04041fb705a772587d
MD5 d219b67a53f68d66cebfdf1fcf873e43
BLAKE2b-256 082eb3cbf8ac76c543dc580d829c52891bed13c7036b827b066cda77125bb46b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page