How to capture data and monitor them at the same time?

1 view (last 30 days)
This is about my final year project. I need to capture the temperature and pressure information of a device continuously. And for safety issue, I also need to keep checking the temperature data all the time. When the temperature is too low, the it should be able to generate a signal the turn off the device automatically. So I hope to find a method that I can use to capture and monitor the data at the same time. But I cannot find any example online.

Accepted Answer

Walter Roberson
Walter Roberson on 10 Aug 2015
Using the Session Based Interface, create callback functions that collect chunks of data and process it, and start a Background acquisition. You could also use a timer function to periodically check the latest values, or you could set your trigger repeat count to collect a block of data for a time and check the block contents before continuing. (Checking a sample at a time is inefficient.)
  1 Comment
Ray Huang
Ray Huang on 10 Aug 2015
The DAQ that I use is with legacy interface. Do you mean that the automatic capture function "start(ai)" is a background function and I can use function "getdata" to check immediate temperature? Thank you for your reply.

Sign in to comment.

More Answers (0)

Categories

Find more on Simultaneous and Synchronized Operations 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!