Live data acquisition for real-time signal processing in MATLAB

Stream signals to and from data acquisition hardware using simple for or while loops
2.8K Downloads
Updated 23 Sep 2014

View License

This code extends the Data Acquisition Toolbox by providing a simple interface to stream signals to and from data acquisition hardware within for or while loops, and to apply signal processing algorithms in MATLAB on live real-world data.
Use dspdemo.DAQRecorder to acquire live data, and dspdemo.DAQPlayer to generate live data. These system objects work with any of the hardware supported by Data Acquisition Toolbox for AnalogInput/AnalogOutput in continuous mode.

This new interface allows you to
- Get or push arrays of samples to/from data acquisition hardware, directly within for or while loops
- Discover installed and compatible hardware by inspecting the properties of a single object
- Connect with data acquisition devices via the same programming pattern used in a number of MATLAB Toolboxes for other hardware interfaces (e.g. for audio cards, video cameras, software defined radios, Ethernet sockets)

Cite As

Gabriele Bunkheila (2024). Live data acquisition for real-time signal processing in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/46685-live-data-acquisition-for-real-time-signal-processing-in-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

Updates to title, summary and description to make the submission text clearer and better searchable

1.3.0.0

Added basic AnalogInput and AnalogOutput examples and improved stability of measurement example.