pydaq


Namepydaq JSON
Version 0.0.3.1 PyPI version JSON
download
home_page
SummaryData Acquisition and Experimental Analysis with Python
upload_time2023-03-20 13:39:53
maintainer
docs_urlNone
author
requires_python>=3.7
licenseBSD 3-Clause License Copyright (c) 2023, Samir Angelo Milani Martins All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords python data acquisition arduino nidaq
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img src="logo/pydaq-logo.png" alt= “PYDAQ” class=“center” width="50%" height="50%">
</p> 

[![PyPI version](https://img.shields.io/pypi/v/pydaq?color=a26969)](https://github.com/samirmartins/pydaq)
[![License](https://img.shields.io/pypi/l/pydaq?color=a26969)](https://opensource.org/licenses/BSD-3-Clause)
[![python](https://img.shields.io/pypi/pyversions/pydaq?color=a26969)](https://pypi.org/project/pydaq/)
[![status](https://img.shields.io/pypi/status/pydaq?color=a26969)](https://pypi.org/project/pydaq/)
[![contributors](https://img.shields.io/github/contributors/samirmartins/pydaq?color=a26969)](https://github.com/samirmartins/pydaq/graphs/contributors)
[![forks](https://img.shields.io/github/forks/samirmartins/pydaq?color=a26969&style=social)](https://github.com/samirmartins/pydaq/network/members)
[![stars](https://img.shields.io/github/stars/samirmartins/pydaq?color=a26969&style=social)](https://github.com/samirmartins/pydaq/stargazers)
<!--- 
[![openissues](https://img.shields.io/github/issues/samirmartins/pydaq?color=a26969)](https://github.com/samirmartins/pydaq/issues)
[![issuesclosed](https://img.shields.io/github/issues-closed-raw/samirmartins/pydaq?color=a26969)](https://github.com/samirmartins/pydaq/issues)
[![downloads](https://img.shields.io/github/downloads/samirmartins/pydaq/total?color=a26969)](https://pypi.org/project/pydaq/)
-->

# PYDAQ - Data Acquisition and Experimental Analysis with Python


----
Using Python for applications with experimental data (Arduino and NIDAQ boards)
----

This package was firstly designed to use experimental device for data 
acquisition and signal generator, when performing different experiment, 
such as a step-response test. 

Despite this, one can use PYDAQ to acquire and send a signal from 
any system, using different boards [(check jupyter notebook examples folder)](examples), 
through a Graphical User Interface or via command line. In this sense
the user is capable to generate a customized signal which can be easily
applied to a system. 

It is noteworthy that this application makes data acquisition and 
empirical experiments simpler, faster and easier. This is relevant
when the user needs empirical data to construct black box linear and
nonlinear models, commomly used in research projects in forecasting and 
model-based control schemes.
 
The code provided here allows user to save acquired data in .dat files in 
a path specified by the user (or at Desktop, if no path is provided), as well
as send a user-defined data, which can be any nonlinear input signal 
[(you are strongly advised to check the )](https://samirmartins.github.io/pydaq/)

In what follows you will find

- Installation and Requirements
- Quick view and Main features 
- Using Graphical User Interfaces
- Screenshots



---
Installation and Requirements
---

The fastest way to install PYDAQ is using pip:

```console
pip install pydaq
```

PYDAQ requires:

- Installed driver of the board used (Arduino or National Instruments NIDAQ)
- nidaqmx (>=0.6.5) for data acquisition from National Instruments Boards
- matplotlib (>=3.5.3) as a visualization tool
- numpy (>=1.22.3) to process data
- PySimpleGUI (>=4.60.3) as a Graphical User Interface
- PyQt5 as a backend for PySimpleGui
- pyserial (>=3.5) to manage data to/from Arduino


---
Quick view and Main features
---

| Feature                      |                                                                                                                                                                                                                                          Description |
|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| Send Data (NIDAQ)            |                                                                                                                                                   This feature allows the user to send data through any NIDAQ board using a graphical user interface |
| Send Data (Arduino)          |                                                                                                                                               This feature allows the user to send data through any Arduino board through a graphical user interface |
| Get Data (NIDAQ)             |                                        Here the user is able to get data from a NIDAQ board, using any terminal configuration (Diff, RSE, NRSE), sample time and other parameters. Acquired data can also be saved and plot for further applications |
| Get Data (Arduino)           |                                                                                                    Here the user is able to get data from an Arduino board, using several options. Acquired data can also be saved and plot for further applications |
| Step Response (NIDAQ) |   In this feature one can perform an automatic step response experiment using a NIDAQ board. Data genereted by the experiment can also be saved to be used in further applications, such as obtaining linear and nonlinear models from acquired data |
| Step Response (Arduino)      | In this feature one can perform an automatic step response experiment using an Arduino. Data genereted by the experiment can also be saved to be used in further applications, such as obtaining linear and nonlinear models from acquired data |
 

---
Using GUIs (more details in [documentation](https://samirmartins.github.io/pydaq/) and [jupyter notebook examples](examples)):
---

#### Data acquisition (NIDAQ):

```python
from pydaq.get_data import Get_data
g = Get_data()
g.get_data_nidaq_gui()
```

#### Data acquisition (Arduino):

```python
from pydaq.get_data import Get_data
g = Get_data()
g.get_data_arduino_gui()
```

#### Sending data (NIDAQ):

```python
from pydaq.send_data import Send_data
s = Send_data()
s.send_data_nidaq_gui()
```

#### Sending data (Arduino):

```python
from pydaq.send_data import Send_data
s = Send_data()
s.send_data_arduino_gui()
```

#### Step response (NIDAQ):

```python
from pydaq.step_response import Step_response
s = Step_response()
s.step_response_nidaq_gui()
```

#### Step response (Arduino):

```python
from pydaq.step_response import Step_response
s = Step_response()
s.step_response_arduino_gui()
```

---
Screnshots
---

### Graphical User Interfaces - NIDAQ

![](docs/img/get_data_nidaq.png)

![](docs/img/send_data_nidaq_gui.png)

![](docs/img/step_response_nidaq_gui.png)

### Graphical User Interfaces - Arduino

![](docs/img/get_data_arduino.png)

![](docs/img/send_data_arduino_gui.png)

![](docs/img/step_response_arduino_gui.png)

### Acquired/Sending data and step response - NIDAQ and Arduino

![](docs/img/step_response_arduino.png)

![](docs/img/step_response_nidaq.png)


![](docs/img/sending_data_nidaq.png)

![](docs/img/sending_data_arduino.png)

![](docs/img/acquired_data_nidaq.png)

![](docs/img/acquired_data_arduino.png)

### Data in .dat format

![](docs/img/data.png)

---
Contributing
---

You are more than welcome to make your contribution and submit a pull request. To contribute, [read this guide](/CONTRIBUTING.md).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pydaq",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Python,Data Acquisition,Arduino,NIDAQ",
    "author": "",
    "author_email": "Samir Angelo Milani Martins <milani.martins@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/86/7f/e7938a4d349c6c43dc5a9cf0ddae6042a3c07e5c733a0783a1309d0f1586/pydaq-0.0.3.1.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\r\n  <img src=\"logo/pydaq-logo.png\" alt= \u201cPYDAQ\u201d class=\u201ccenter\u201d width=\"50%\" height=\"50%\">\r\n</p> \r\n\r\n[![PyPI version](https://img.shields.io/pypi/v/pydaq?color=a26969)](https://github.com/samirmartins/pydaq)\r\n[![License](https://img.shields.io/pypi/l/pydaq?color=a26969)](https://opensource.org/licenses/BSD-3-Clause)\r\n[![python](https://img.shields.io/pypi/pyversions/pydaq?color=a26969)](https://pypi.org/project/pydaq/)\r\n[![status](https://img.shields.io/pypi/status/pydaq?color=a26969)](https://pypi.org/project/pydaq/)\r\n[![contributors](https://img.shields.io/github/contributors/samirmartins/pydaq?color=a26969)](https://github.com/samirmartins/pydaq/graphs/contributors)\r\n[![forks](https://img.shields.io/github/forks/samirmartins/pydaq?color=a26969&style=social)](https://github.com/samirmartins/pydaq/network/members)\r\n[![stars](https://img.shields.io/github/stars/samirmartins/pydaq?color=a26969&style=social)](https://github.com/samirmartins/pydaq/stargazers)\r\n<!--- \r\n[![openissues](https://img.shields.io/github/issues/samirmartins/pydaq?color=a26969)](https://github.com/samirmartins/pydaq/issues)\r\n[![issuesclosed](https://img.shields.io/github/issues-closed-raw/samirmartins/pydaq?color=a26969)](https://github.com/samirmartins/pydaq/issues)\r\n[![downloads](https://img.shields.io/github/downloads/samirmartins/pydaq/total?color=a26969)](https://pypi.org/project/pydaq/)\r\n-->\r\n\r\n# PYDAQ - Data Acquisition and Experimental Analysis with Python\r\n\r\n\r\n----\r\nUsing Python for applications with experimental data (Arduino and NIDAQ boards)\r\n----\r\n\r\nThis package was firstly designed to use experimental device for data \r\nacquisition and signal generator, when performing different experiment, \r\nsuch as a step-response test. \r\n\r\nDespite this, one can use PYDAQ to acquire and send a signal from \r\nany system, using different boards [(check jupyter notebook examples folder)](examples), \r\nthrough a Graphical User Interface or via command line. In this sense\r\nthe user is capable to generate a customized signal which can be easily\r\napplied to a system. \r\n\r\nIt is noteworthy that this application makes data acquisition and \r\nempirical experiments simpler, faster and easier. This is relevant\r\nwhen the user needs empirical data to construct black box linear and\r\nnonlinear models, commomly used in research projects in forecasting and \r\nmodel-based control schemes.\r\n \r\nThe code provided here allows user to save acquired data in .dat files in \r\na path specified by the user (or at Desktop, if no path is provided), as well\r\nas send a user-defined data, which can be any nonlinear input signal \r\n[(you are strongly advised to check the )](https://samirmartins.github.io/pydaq/)\r\n\r\nIn what follows you will find\r\n\r\n- Installation and Requirements\r\n- Quick view and Main features \r\n- Using Graphical User Interfaces\r\n- Screenshots\r\n\r\n\r\n\r\n---\r\nInstallation and Requirements\r\n---\r\n\r\nThe fastest way to install PYDAQ is using pip:\r\n\r\n```console\r\npip install pydaq\r\n```\r\n\r\nPYDAQ requires:\r\n\r\n- Installed driver of the board used (Arduino or National Instruments NIDAQ)\r\n- nidaqmx (>=0.6.5) for data acquisition from National Instruments Boards\r\n- matplotlib (>=3.5.3) as a visualization tool\r\n- numpy (>=1.22.3) to process data\r\n- PySimpleGUI (>=4.60.3) as a Graphical User Interface\r\n- PyQt5 as a backend for PySimpleGui\r\n- pyserial (>=3.5) to manage data to/from Arduino\r\n\r\n\r\n---\r\nQuick view and Main features\r\n---\r\n\r\n| Feature                      |                                                                                                                                                                                                                                          Description |\r\n|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|\r\n| Send Data (NIDAQ)            |                                                                                                                                                   This feature allows the user to send data through any NIDAQ board using a graphical user interface |\r\n| Send Data (Arduino)          |                                                                                                                                               This feature allows the user to send data through any Arduino board through a graphical user interface |\r\n| Get Data (NIDAQ)             |                                        Here the user is able to get data from a NIDAQ board, using any terminal configuration (Diff, RSE, NRSE), sample time and other parameters. Acquired data can also be saved and plot for further applications |\r\n| Get Data (Arduino)           |                                                                                                    Here the user is able to get data from an Arduino board, using several options. Acquired data can also be saved and plot for further applications |\r\n| Step Response (NIDAQ) |   In this feature one can perform an automatic step response experiment using a NIDAQ board. Data genereted by the experiment can also be saved to be used in further applications, such as obtaining linear and nonlinear models from acquired data |\r\n| Step Response (Arduino)      | In this feature one can perform an automatic step response experiment using an Arduino. Data genereted by the experiment can also be saved to be used in further applications, such as obtaining linear and nonlinear models from acquired data |\r\n \r\n\r\n---\r\nUsing GUIs (more details in [documentation](https://samirmartins.github.io/pydaq/) and [jupyter notebook examples](examples)):\r\n---\r\n\r\n#### Data acquisition (NIDAQ):\r\n\r\n```python\r\nfrom pydaq.get_data import Get_data\r\ng = Get_data()\r\ng.get_data_nidaq_gui()\r\n```\r\n\r\n#### Data acquisition (Arduino):\r\n\r\n```python\r\nfrom pydaq.get_data import Get_data\r\ng = Get_data()\r\ng.get_data_arduino_gui()\r\n```\r\n\r\n#### Sending data (NIDAQ):\r\n\r\n```python\r\nfrom pydaq.send_data import Send_data\r\ns = Send_data()\r\ns.send_data_nidaq_gui()\r\n```\r\n\r\n#### Sending data (Arduino):\r\n\r\n```python\r\nfrom pydaq.send_data import Send_data\r\ns = Send_data()\r\ns.send_data_arduino_gui()\r\n```\r\n\r\n#### Step response (NIDAQ):\r\n\r\n```python\r\nfrom pydaq.step_response import Step_response\r\ns = Step_response()\r\ns.step_response_nidaq_gui()\r\n```\r\n\r\n#### Step response (Arduino):\r\n\r\n```python\r\nfrom pydaq.step_response import Step_response\r\ns = Step_response()\r\ns.step_response_arduino_gui()\r\n```\r\n\r\n---\r\nScrenshots\r\n---\r\n\r\n### Graphical User Interfaces - NIDAQ\r\n\r\n![](docs/img/get_data_nidaq.png)\r\n\r\n![](docs/img/send_data_nidaq_gui.png)\r\n\r\n![](docs/img/step_response_nidaq_gui.png)\r\n\r\n### Graphical User Interfaces - Arduino\r\n\r\n![](docs/img/get_data_arduino.png)\r\n\r\n![](docs/img/send_data_arduino_gui.png)\r\n\r\n![](docs/img/step_response_arduino_gui.png)\r\n\r\n### Acquired/Sending data and step response - NIDAQ and Arduino\r\n\r\n![](docs/img/step_response_arduino.png)\r\n\r\n![](docs/img/step_response_nidaq.png)\r\n\r\n\r\n![](docs/img/sending_data_nidaq.png)\r\n\r\n![](docs/img/sending_data_arduino.png)\r\n\r\n![](docs/img/acquired_data_nidaq.png)\r\n\r\n![](docs/img/acquired_data_arduino.png)\r\n\r\n### Data in .dat format\r\n\r\n![](docs/img/data.png)\r\n\r\n---\r\nContributing\r\n---\r\n\r\nYou are more than welcome to make your contribution and submit a pull request. To contribute, [read this guide](/CONTRIBUTING.md).\r\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2023, Samir Angelo Milani Martins All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "Data Acquisition and Experimental Analysis with Python",
    "version": "0.0.3.1",
    "split_keywords": [
        "python",
        "data acquisition",
        "arduino",
        "nidaq"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "43bb6c16ad21450fcf976dd2c8879c9c531a7bd2c2311163df550378bb48b75a",
                "md5": "9c47ea89104ec444e82eb990ea410c2a",
                "sha256": "f7a575e160c42fa86cd76c33fc336ed8a43ad67ac4f4db9722647b185023507c"
            },
            "downloads": -1,
            "filename": "pydaq-0.0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9c47ea89104ec444e82eb990ea410c2a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 19897,
            "upload_time": "2023-03-20T13:39:50",
            "upload_time_iso_8601": "2023-03-20T13:39:50.814320Z",
            "url": "https://files.pythonhosted.org/packages/43/bb/6c16ad21450fcf976dd2c8879c9c531a7bd2c2311163df550378bb48b75a/pydaq-0.0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "867fe7938a4d349c6c43dc5a9cf0ddae6042a3c07e5c733a0783a1309d0f1586",
                "md5": "0072d7666800318d362f45bbb55a5978",
                "sha256": "4d4d24566ca4ec4fdca7a7cfd132fe9809e5d920dd374bc544e95f5407149fef"
            },
            "downloads": -1,
            "filename": "pydaq-0.0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0072d7666800318d362f45bbb55a5978",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 1003684,
            "upload_time": "2023-03-20T13:39:53",
            "upload_time_iso_8601": "2023-03-20T13:39:53.489258Z",
            "url": "https://files.pythonhosted.org/packages/86/7f/e7938a4d349c6c43dc5a9cf0ddae6042a3c07e5c733a0783a1309d0f1586/pydaq-0.0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-20 13:39:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pydaq"
}
        
Elapsed time: 0.04867s