Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66744

Break out of Timer at Stop event

$
0
0

Hello,

 

I have a producer/consumer architecture. In the consumer loop I have a elapse timer which runs within a while loop as shown in the attachment. My quesiton is how to break the elapse timer when stop button is pressed? The way I have done is by using a global for stop and then have the Elapse Time loop stop if stop is pressed. Are there any other way to perform this and avoid globals? I have looked into events but the timer needs to be in consumer loop within the state machine.

Are there any drawbacks of using Elapsed Time express VI for example overhead, momory usage, polling etc?

 

Thanks.


Viewing all articles
Browse latest Browse all 66744

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>