10-31-2013 02:30 PM
Ok. I don't know what I'm doing wrong.
But when I press Start, I can't move the control slide anymore.
Any Obvious errors here?
Solved! Go to Solution.
10-31-2013 02:38 PM
Yes. Your control will not be seen as the "start Program" event case will trigger when the button is pressed and if it is a momentary action button, when it is released. You need to create cases for the slider and the stop button for them to be seen.
10-31-2013 02:46 PM - edited 10-31-2013 02:47 PM
Bob123456 wrote:But when I press Start, I can't move the control slide anymore.
Your event is set to lock the front panel until the event completes. This means you are deadlocked, because the event cannot complete until the stop button is pressed, which cannot happen because the FP is locked.
The quick "bandaid fix" would be to uncheck that option in the event configuration. Not recommended!!
You should never place interactive code inside event structures. Restructure your code accordingly. Look at state machines, for example.
10-31-2013 03:06 PM - edited 10-31-2013 03:07 PM
Here's a very quick rewrite that seems to retain your intended (slightly weird!) functionality. You can use the outer loop for everything if done right.