08-29-2005 05:45 AM
08-29-2005 06:15 AM
You should not have multiple event structures in the same loop and inside cases. That's just a recipe for having your FP become locked and unresponsive and for all sorts of weird things.
Let's assume you want the code in the value change to execute only when the tab is in that page and only when that specific radio button was selected. In that case, what you should do is reverse the order - the event structure should be on the outside and the case structures should be inside the event structure. If the radio button can't change if the tab page isn't shown, you don't even need the case checking for the tab page.
Once you did this, you can simply add a value change event for the stop button and wire T out of that case into the stop terminal. Once you press the button, that event will execute and the loop will stop.
08-29-2005 07:06 AM
08-29-2005 07:27 AM
It's not the only way.
You could also, for example, add a timeout, so the loop iterates not only when there's an event.
My suggestion was based on my not liking having event structures inside case structures. This should definitely not be if you have event structures in your other cases, and that's even metioned in the help for the event structure. Without looking at your full code, it's hard to suggest a definitive answer.