LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change saving file after 20 seconds

Solved!
Go to solution

Hi everybody,

I'm trying to acquire data at a frequency of 50 Hz (random numbers for this test) and sending to a lower loop with a producer-consumer architecture. I would like to change my saving file after 20 seconds (or N seconds) automatically. 

I set a saving botton and a stop one but, if I press the Stop botton, my VI doesn't close.

I really don't know which could be the problem.

Thank you in advance!

 

 

Download All
0 Kudos
Message 1 of 3
(2,807 Views)
Solution
Accepted by topic author lorenzo26

Hi Lorenzo,

the "Dequeue Elelement" block doesn't have a defined timeout value. The default one is -1 which means it will wait indefinitely for the incoming elements from the upper loop. So if you stop the upper loop, the lower one will keep waiting until you press "Abort" 🙂

Message 2 of 3
(2,798 Views)

Thank you very much! 

0 Kudos
Message 3 of 3
(2,782 Views)