Metadata-Version: 2.2
Name: daqx
Version: 0.0.3
Summary: Python data acquisition toolbox - MCC
Project-URL: Homepage, https://github.com/wtmtmw/daqx
Keywords: acquisition,mcc
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcculw
Requires-Dist: numpy

![License](https://img.shields.io/badge/license-MIT-blue)
# daqx
Python data acquisition toolbox - Wrapper that provides high-level layers for controlling data acquisition boards. It also handles low-level memory management, data transfer, and provides various types of event callbacks.

Currently, it only supports boards from Measurement Computing. Support for National Instruments boards will be added in the future.

## Table of Contents
- [Installation](#installation)
- [Supported Event Callback](#supported-event-callback)
- [Usage](#usage)

## Installation
- `pip install daqx`

## Supported Event Callback
**Start callback -** AI, AO

**Stop callback -** AI, AO

**Trigger callback -** AI

**Samples acquired callback -** AI

## Usage
```python
from daqx.util import createDevice

daqid = 0
start_channel = 0                           # start scanning at channel 0
end_channel = 1                             # end scanning at channel 1
daq = createDevice('mcc',daqid)             # only 'mcc', Measurement Computing is supported currently
daq.config_ai(start_channel,end_channel)    # set up analog input

daq.ai.sampleRate = 1000                    # Hz/channel
daq.ai.grounding = 'single-ended'           # Support 'single-ended','grounded','differential'
daq.ai.trigType = 'instant'                 # support 'instant','digital-positive-edge'
daq.ai.samplesPerTrig = 2000                # Samples/channel/trigger
daq.ai.aqMode = 'foreground'                # acquisition mode - 'foreground','background'

daq.ai.start()
# after 2 seconds
aitime, aidata = daq.ai.getdata()

```
Tutorial will be added in the future.

