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
(184 Views)

That is exactly what I want, thanks johnsold! 

 

Thank you everyone for your help!

0 Kudos
Message 12 of 12
(180 Views)