10-13-2015 10:51 AM
Hi, I have built a VI that data of 2 DAQ modules scans and then summarizing the data collected in an Excel sheet. I have used 2 loops for sampling and 1 Additional loop which should save the data in Excel, using queue functions when a Boolean is true.
My problem now is that when I press the Stop button to stop the scan of data and the VI, the Scan of data stop correctly, but the VI continues working. I used notification function as well as local variable attempts to stop the iteration loops, but I do not succeed. using probes I could locate where the problem was. the problem is that the stop condition of the storage loop does not get the value true.
Can someone please give me a tip on how I can solve the problem?
Thanks in advance.
Solved! Go to Solution.
10-14-2015 01:43 AM - edited 10-14-2015 01:43 AM
Hello Lab_fänger,
the loop waits for an element of the queue, so if no element is written the notifier can not read the stop.
I will modify it, but this take some little time but you will hear from me.
10-14-2015 03:43 AM
Hello Lab_fänger,
now it stops but it takes some time, becasue the TC loop is very slow.
The queues where destroyed without checking, if there are empty
To get it to run you must reconfigure the DAQ assitant.
Hope it helps
10-14-2015 04:07 AM