Processing data while acquiring

1 view (last 30 days)
Erik S.
Erik S. on 1 Nov 2014
Commented: Harry on 1 Nov 2014
I am exploring the possibility to use Data Acquisition Toolbox for a project where I have to do a non-linear regression of the acquired data. I expect the time of processing would be longer than the time between consecutive samples
1a) When acquiring data in the background is it possible to process it while collecting the data?
1b) In the documentation there is an example of plotting live data, should I replace the function handle when creating the listener with a call to my processing function?
2) If the processing is slower than the data sampling rate will I start to loose data or is the data stored in some buffer which my processing function can retrieve the data from?
Thank you for any help Erik
  1 Comment
Harry
Harry on 1 Nov 2014
In response to 2, you can choose. Either you can save all the data and process it 'offline' (afterwards)... or you can process in real-time and discard any data that you don't have time to process.

Sign in to comment.

Answers (0)

Categories

Find more on Data Acquisition Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!