Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Common stop for 2 for loops

I am designing an environment monitoring station. I have two for loops running simultaneously. One for the measurements, calculations, etc. The other loop is for date and time stamp. I have the date and time running in another loop because I have the option of introducing time delay in my first loop. So if I place the date and time stamp in the first loop it will display time on the basis of delay. I want time to be displayed continuously and a common stop to exit both the loops simultaneously. How do I go about it??
0 Kudos
Message 1 of 2
(2,773 Views)
Based on your description, I am not sure if this is exactly what you need but I created an example of using a single stop button and a local variable in order to stop 2 while loops simultaneously. In one loop I am just getting the current time and in the other I am generating a simulated signal and displaying it. Is this what you are looking for?

(I will include the VI in LV 7.1 as well as a screenshot in case you have an older version of LV)
-scraggs99
0 Kudos
Message 2 of 2
(2,744 Views)