From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Allow state machine while loop to end only in 1 of the states?

The one problem with Jim's code is that the Stop button will probably be read before the wait. This will result in one extra iteration of the loop before the  VI stops.

 

In the VI I have attached I changed the boolean indicators to a cluster carried on a shift register. This will make it easier if you want to turn off the indicators after leaving a state.

 

Lynn

Message 11 of 12
(182 Views)

That is exactly what I want, thanks johnsold! 

 

Thank you everyone for your help!

0 Kudos
Message 12 of 12
(178 Views)