Get data from DAQ background session

1 Ansicht (letzte 30 Tage)
Matthias
Matthias am 31 Okt. 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!

Antworten (0)

Kategorien

Mehr zu Data Acquisition Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by