Python data acquisition toolbox - MCC
Project description
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
pip install daqx
Supported Event Callback
Start callback - AI, AO
Stop callback - AI, AO
Trigger callback - AI
Samples acquired callback - AI
Usage
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.
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 daqx-0.0.3.tar.gz.
File metadata
- Download URL: daqx-0.0.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afc712c49a24ce211ba8bc91dcac6ee52bae7b44b9a00c2a41c76d7ca26281a9
|
|
| MD5 |
b7ac38a01fe6a62adb4305807ff80605
|
|
| BLAKE2b-256 |
ead3b854940f9d4e8dfb60dcedf3c4aaa0bc463e0569f8c183f1b601cbd3df39
|
File details
Details for the file daqx-0.0.3-py3-none-any.whl.
File metadata
- Download URL: daqx-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70d21141d8f54d9e4490b050c59ff3c89577f1b47cf308ce454b44309ab96be4
|
|
| MD5 |
67e975c40b68b75f5670f9a5f8087d95
|
|
| BLAKE2b-256 |
63df556e9e68cafe4b44fedfdacc64c4a18f939ea4984c3adf5fade2356d0111
|