Get data from DAQ background session

1 view (last 30 days)
Matthias
Matthias on 31 Oct 2013
Hi!
I am recording analog data using the session-based interface of the data acquisition toolbox as described in the documentation: http://www.mathworks.com/help/daq/ref/daq.session.startbackground.html
I use continuous acquisition, because I never know how long the acquisition will last. I know how to grab data with the DataAvailable event and a listener, but how do I get the very last batch of data that was collected between the last firing of the DataAvailable event and the call to stop() to end acquisition?
This might seem like a small problem. However, to conserve system resources, I want to set the interval between DataAvailable events to a long time (this is possible via the NotifyWhenDataAvailableExceeds property), so that the event would never actually be fired because the acquisition is stopped again before it fires for the first time...
Please let me know if my question is not clear.
Thanks!

Answers (0)

Categories

Find more on Data Acquisition Toolbox Supported Hardware 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!