LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I select next state based on abort/completion of countdown timer

I use a simple countdown timer to delay and indicate when the next step will happen.  I would like to add an abort option to the timer. My problem comes in that if the user aborts the step, I would like the VI to jump to a specific step and not progress to the next step as would happen if hte timer ran to completion. Using hightlight exe, it looks like I can't use the stop button set to "switch until released" but I'm not sure how to fix the problem.  Is there a easy way to fix the problem?

 

Thank you for the help

Danny
0 Kudos
Message 1 of 5
(2,962 Views)

All you have to do is wire out your stop button instead of using a local variable.

 

20159i12534998E1C623F1

Tim
GHSP
0 Kudos
Message 2 of 5
(2,953 Views)

20161iF9DE15CE1CEA4B12

Tim
GHSP
0 Kudos
Message 3 of 5
(2,952 Views)

Thanks for the help aeastet.  That works great.  One question though about your solution, what are the reference functions for that you included in the VI and how would they work in this case?

 

Thanks again for the help.

Danny
0 Kudos
Message 4 of 5
(2,941 Views)

It must be something from the snippet. I am not sure what happend there. Ignore the reference.

Tim
GHSP
0 Kudos
Message 5 of 5
(2,937 Views)