daqx


Namedaqx JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryPython data acquisition toolbox - MCC
upload_time2025-02-09 00:17:02
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords acquisition mcc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![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.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "daqx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "acquisition, mcc",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/ea/d3/b854940f9d4e8dfb60dcedf3c4aaa0bc463e0569f8c183f1b601cbd3df39/daqx-0.0.3.tar.gz",
    "platform": null,
    "description": "![License](https://img.shields.io/badge/license-MIT-blue)\r\n# daqx\r\nPython 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.\r\n\r\nCurrently, it only supports boards from Measurement Computing. Support for National Instruments boards will be added in the future.\r\n\r\n## Table of Contents\r\n- [Installation](#installation)\r\n- [Supported Event Callback](#supported-event-callback)\r\n- [Usage](#usage)\r\n\r\n## Installation\r\n- `pip install daqx`\r\n\r\n## Supported Event Callback\r\n**Start callback -** AI, AO\r\n\r\n**Stop callback -** AI, AO\r\n\r\n**Trigger callback -** AI\r\n\r\n**Samples acquired callback -** AI\r\n\r\n## Usage\r\n```python\r\nfrom daqx.util import createDevice\r\n\r\ndaqid = 0\r\nstart_channel = 0                           # start scanning at channel 0\r\nend_channel = 1                             # end scanning at channel 1\r\ndaq = createDevice('mcc',daqid)             # only 'mcc', Measurement Computing is supported currently\r\ndaq.config_ai(start_channel,end_channel)    # set up analog input\r\n\r\ndaq.ai.sampleRate = 1000                    # Hz/channel\r\ndaq.ai.grounding = 'single-ended'           # Support 'single-ended','grounded','differential'\r\ndaq.ai.trigType = 'instant'                 # support 'instant','digital-positive-edge'\r\ndaq.ai.samplesPerTrig = 2000                # Samples/channel/trigger\r\ndaq.ai.aqMode = 'foreground'                # acquisition mode - 'foreground','background'\r\n\r\ndaq.ai.start()\r\n# after 2 seconds\r\naitime, aidata = daq.ai.getdata()\r\n\r\n```\r\nTutorial will be added in the future.\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python data acquisition toolbox - MCC",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/wtmtmw/daqx"
    },
    "split_keywords": [
        "acquisition",
        " mcc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "63df556e9e68cafe4b44fedfdacc64c4a18f939ea4984c3adf5fade2356d0111",
                "md5": "67e975c40b68b75f5670f9a5f8087d95",
                "sha256": "70d21141d8f54d9e4490b050c59ff3c89577f1b47cf308ce454b44309ab96be4"
            },
            "downloads": -1,
            "filename": "daqx-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "67e975c40b68b75f5670f9a5f8087d95",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 14399,
            "upload_time": "2025-02-09T00:17:00",
            "upload_time_iso_8601": "2025-02-09T00:17:00.067362Z",
            "url": "https://files.pythonhosted.org/packages/63/df/556e9e68cafe4b44fedfdacc64c4a18f939ea4984c3adf5fade2356d0111/daqx-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ead3b854940f9d4e8dfb60dcedf3c4aaa0bc463e0569f8c183f1b601cbd3df39",
                "md5": "b7ac38a01fe6a62adb4305807ff80605",
                "sha256": "afc712c49a24ce211ba8bc91dcac6ee52bae7b44b9a00c2a41c76d7ca26281a9"
            },
            "downloads": -1,
            "filename": "daqx-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b7ac38a01fe6a62adb4305807ff80605",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 14139,
            "upload_time": "2025-02-09T00:17:02",
            "upload_time_iso_8601": "2025-02-09T00:17:02.375133Z",
            "url": "https://files.pythonhosted.org/packages/ea/d3/b854940f9d4e8dfb60dcedf3c4aaa0bc463e0569f8c183f1b601cbd3df39/daqx-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-09 00:17:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wtmtmw",
    "github_project": "daqx",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "daqx"
}
        
Elapsed time: 0.89094s