09-21-2017 12:47 PM
I want to stop my program using a Boolean Control inside a While Loop inside an Event Structure. Why does this example program not work?
Thanks, Matt
Solved! Go to Solution.
09-21-2017 12:54 PM
Because the front panel is being locked when you press the button and therefore you cannot switch the button back to stop the loop.
In general, it is a bad practice to have loops inside of event structures. With your very basic example, I would just use a case structure around the code you want to execute only when the button is TRUE inside of your loop; no need for the Event Structure.
09-21-2017 01:04 PM
Thanks for you help... greatly appreciated!
09-21-2017 01:34 PM