Hi,
I am trying to do same thing as shown in your example but it did not work, I tried several different ways including occurrences, still it did not work. I think my major loop is data acquisition and writing to file, where as minor loop is sound acquisition and writing to a separate sound file and CPU is consumed 100% so pressing STOP may take very long time to communicate between the loops.
As per your example, it works but same thing did not work with lots of CPU overhead. Any suggestions are welcomed.
My aim is to store data file and sound file separately and simultaneously, using separate while loop, and I need a common STOP button.
Thanks in advance,
Kishor