Get data from DAQ background session

1 visualización (últimos 30 días)
Matthias
Matthias el 31 de Oct. de 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!

Respuestas (0)

Categorías

Más información sobre Simultaneous and Synchronized Operations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by