Skip to main content

License

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.

Metadata

Release files for daqx 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for daqx 0.0.3
File Size Uploaded
daqx-0.0.3.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for daqx 0.0.3
File Interpreter ABI Platform
daqx-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / daqx-0.0.3.tar.gz

Download URL daqx-0.0.3.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
afc712c49a24ce211ba8bc91dcac6ee52bae7b44b9a00c2a41c76d7ca26281a9
BLAKE2b-256 checksum
How to use checksums
ead3b854940f9d4e8dfb60dcedf3c4aaa0bc463e0569f8c183f1b601cbd3df39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / daqx-0.0.3-py3-none-any.whl

Download URL daqx-0.0.3-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70d21141d8f54d9e4490b050c59ff3c89577f1b47cf308ce454b44309ab96be4
BLAKE2b-256 checksum
How to use checksums
63df556e9e68cafe4b44fedfdacc64c4a18f939ea4984c3adf5fade2356d0111
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page