01-08-2008 04:59 PM - edited 01-08-2008 05:00 PM
01-08-2008 05:06 PM
Don't put the timed while loop and the event structure in the same overall while loop. What happens is that when you execute the OK, the event structure fires and basically ends. The timed loop is still running up top. You won't get around to the event structure for it to sit and wait for any more events until the overall while loop stops, and that won't happen until the timed loop stops.
So you have a catch 22, you need the stop button to stop the top loop, but the stop button won't do anything until the top loop ends and the overall loop comes back around to the event structure again.
01-08-2008 05:07 PM
Try this. I suspect you were killing the other thread before the abort command could be sent.
01-08-2008 06:27 PM - edited 01-08-2008 06:29 PM
Matt,
Your solution doesn't work either. It looks like you wait statement in the one event. The problem is still what I stated in reply #2. (But I see you posted your reply at almost the same time as I posted mine.):smileywink:
The attached works.
01-08-2008 07:36 PM
01-09-2008 08:16 AM