Metadata-Version: 2.4 Name: LDAQ Version: 1.3.1 Summary: Data acquisition and generation with live visualization. Project-URL: homepage, https://github.com/ladisk/LDAQ Project-URL: documentation, https://ldaq.readthedocs.io/en/latest/ Project-URL: source, https://github.com/ladisk/LDAQ Author-email: "Tilen Košir, Klemen Zaletelj, Janko Slavič" Maintainer-email: "Tilen Košir, Klemen Zaletelj" License-Expression: MIT Keywords: data acquisition,data generation,live visualization Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 3.10 Classifier: Topic :: Scientific/Engineering Requires-Python: >=3.10 Requires-Dist: beautifultable>=1.1.0 Requires-Dist: dill Requires-Dist: flask Requires-Dist: flask-socketio Requires-Dist: keyboard Requires-Dist: matplotlib Requires-Dist: msgpack Requires-Dist: nidaqwrapper>=0.1.0 Requires-Dist: numpy>=1.11.0 Requires-Dist: openpyxl Requires-Dist: pandas>=2.0.0 Requires-Dist: psutil Requires-Dist: pyqtgraph Requires-Dist: pyserial Requires-Dist: pytrigger Requires-Dist: scipy>=1.2.0 Requires-Dist: sphinx-copybutton Requires-Dist: tqdm Provides-Extra: bluetooth Requires-Dist: bleak; extra == 'bluetooth' Provides-Extra: dev Requires-Dist: jupyter; extra == 'dev' Requires-Dist: nbsphinx; extra == 'dev' Requires-Dist: pytest; extra == 'dev' Requires-Dist: sphinx; extra == 'dev' Requires-Dist: sphinx-book-theme; extra == 'dev' Requires-Dist: sphinx-rtd-theme; extra == 'dev' Requires-Dist: tomli; extra == 'dev' Requires-Dist: tomli-w; extra == 'dev' Requires-Dist: twine; extra == 'dev' Requires-Dist: wheel; extra == 'dev' Provides-Extra: ni Requires-Dist: nidaqmx>=0.8.0; extra == 'ni' Requires-Dist: nidaqwrapper>=0.1.0; extra == 'ni' Provides-Extra: qt Requires-Dist: pyqt6; extra == 'qt' Provides-Extra: telops Requires-Dist: pytelops>=0.2.2; extra == 'telops' Description-Content-Type: text/x-rst LDAQ - Streamlined Data Acquisition and Generation ================================================== What is LDAQ? ------------- LDAQ stands for **L**\ ightweight **D**\ ata **A**\ c\ **Q**\ uisition, a Python-based toolkit designed to make data collection seamless and efficient. Whether you're a researcher, engineer, or hobbyist, LDAQ offers a powerful yet user-friendly platform to gather data from a wide range of hardware sources. .. image:: /docs/source/images/FRF_visualization.gif :alt: frf_visualization Key Features: ------------- - 🐍 **Python-Powered**: Built on the robust and versatile Python language, LDAQ harnesses its power to offer a streamlined data collection process. It's compatible with all Python environments, ensuring ease of integration into your existing workflows. - 📟 **Diverse Hardware Compatibility**: LDAQ supports a variety of hardware sources, including: - National Instruments - Digilent - Serial communication devices (i.e. Arduino, ESP) - FLIR Cameras - Telops Cameras - Simulated hardware - 📊 **Advanced Data Visualization & Analysis**: LDAQ doesn’t just collect data; it helps you understand it. With built-in features like real-time signal visualization and Fast Fourier Transform (FFT) analysis, you can dive deep into your data for more insightful discoveries. - ⚙️ **Customization & Flexibility**: Tailor LDAQ to your specific needs. Whether you're dealing with high-speed data streams or complex signal processing, LDAQ's customizable framework allows you to optimize and accelerate your data acquisition processes. Getting started =============== Dive into the world of efficient data acquisition with LDAQ. Our `documentation `_ will guide you through installation, setup, and basic usage to get you up and running in no time. .. image:: /docs/source/images/getting_started.gif :alt: demo_gif Installation ------------ The package can be installed from PyPI using pip: .. code-block:: pip install LDAQ Create the acquisition object ----------------------------- The first step to starting the measurement is to create an acquisition object. Depending on your measurement hardware, you can select the appropriate acquisition class. In this example, we use the ``LDAQ.national_instruments.NIAcquisition`` class, which is a wrapper for the National Instruments DAQmx driver. The class accepts the name of the input task as an argument: .. code-block:: python acq = LDAQ.national_instruments.NIAcquisition(input_task_name, acquisition_name='DataSource') If the ``acquisition_name`` argument is not specified, the name of the acquisition object will be set to the value of ``input_task_name``. The ``acquisition_name`` argument is important when using multiple acquisition objects in the same measurement, and when specifying the layout of the live `visualization `_. Create the ``Core`` object -------------------------- The ``acq`` object can now be added to the ``LDAQ.Core`` class: .. code-block:: python ldaq = LDAQ.Core(acq) .. note:: To add live visualization of the measurement, the visualization object can be added to the ``LDAQ.Core`` object: .. code-block:: python ldaq = LDAQ.Core(acq, visualization=vis) Read how to prepare the ``vis`` object in the `visualization `_ section. Set the trigger --------------- Often the measurement is started when one of the signal excedes a certain level. This can be achieved by setting the trigger on one of the data sources by calling the ``set_trigger`` method: .. code-block:: python ldaq.set_trigger( source='DataSource', level=100, channel=0, duration=11, presamples=10 ) Where: - ``source``: the name of the acquisition object on which the trigger is set. - ``level``: the trigger level. - ``channel``: the channel on which the trigger is set. - ``duration``: the duration of the trigger in seconds. - ``presamples``: the number of samples to be acquired before the trigger is detected. .. note:: The ``LDAQ.Core`` may seem unnecessary when using a single acquisition source. However, it enables the simultaneous usage of signal `generation `_, live `visualization `_ and `multiple acquisition/generation `_ sources. Run the measurement ------------------- The measurement can now be started by calling the ``run`` method: .. code-block:: python ldaq.run() Save the measurement -------------------- After the measurement is completed, the data can be saved by calling: .. code-block:: python ldaq.save_measurement( name='my_measurement', root=path_to_save_folder, timestamp=True, comment='my comment' ) Where: - ``name``: required, the name of the measurement, without extension (``.pkl`` is added automatically). - ``root``: optional, the path to the folder where the measurement will be saved. If it is not given, the measurement will be saved in the current working directory. - ``timestamp``: optional, add a timestamp at the beginning of the file name. - ``comment``: optional, a comment to be saved with the measurement. What else can I do with LDAQ? ----------------------------- - Add generation to the ``LDAQ.Core`` object (see `generation `_). - Apply virtual channels to acquisition objects, to perform calculations on the acquired data (see `virtual channels `_). - Add visualization to the ``LDAQ.Core`` object (see `visualization `_). - Apply functions to measured data in real-time visualization (see `visualization `_). - Add multiple acquisition and signal generation objects to ``LDAQ.Core`` (see `multiple sources `_). - Define a NI Task in your program and use it with ``LDAQ`` (see `NI Task `_). - Currently the package supports a limited set of devices from National Instruments, Digilent, FLIR, Basler, Telops and devices using serial communication (see `supported devices `_). - Create your own acquisition class by overriding just few methods (see `custom acquisition `_).