I'd like to acquire a mixture of streaming and command/response data in matlab from a single u3. Ideally I'd like to have the streaming acquisition running in the background so I don't need to interrupt execution of the main function to pull data off the DAQ. Something like this:
- DAQ is initialised with 2 counters, 2 timers and some analogue + digital inputs
- Streaming starts
- Acquisition goes on for 1-2 hrs during which the counters are polled with command response occasionally when online data is needed in the function
- Streaming stops (and stream is saved)
It seems from this post that it's possible to do command/response while streaming https://forums.labja...?showtopic=7046although I'd like to know if this might disrupt the continuity of the stream, and if it's possible to verify the continuity of the stream somehow.
As for acquiring in the background, previously I've done this using NI DAQs in matlab where I was able to attach a callback to take data from the DAQ in the background everytime for example 1000 scans are available. I'm trying to figure out if something similar is possible with the U3 and so far found LJ_swSLEEP which waits for a set number of scans to be available but disrupts execution so doesn't quite fit what I need.
Any help much appreciated.