Im working on a VI where im collecting data using a DAQ assistant and a trigger-task. Another VI has to "detect" when new data is collected. Is it possible to set a flag (shared variable) at the start of an while-loop, then collect the data, and then reset the variable at the end of the while loop...
I want the data-collecting VI to ping each time new data is recorded like so: ________||_________
Look at the synchronization functions. Notifiers or semaphores may be what you are looking for. Or if you send the data from the DAQ VI via a queue and read the data in the analysis VI by dequeuing with a timeout, you will get the new data as soon as it is available. If timed out? is true, then no new data was available within the timeout period.
It's fairly easy to do this by just checking the value every quarter-second or so, but I'm still not clear on how to do this while the loop isn't firing (i.e. while an event structure is waiting for an event to fire).
The latter method is what you want, right? I'm still working on that myself, unfortunately.