LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchron 2 moduls

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(3,072 Views)

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.

best regards
Alexander
0 Kudos
Message 2 of 4
(3,035 Views)
Solution
Accepted by topic author Lab_fänger

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

best regards
Alexander
Message 3 of 4
(3,020 Views)

Hi Duffy2007,

 i tried it like your proposition.

i can stop the VI now.

thank you

0 Kudos
Message 4 of 4
(3,012 Views)