02-25-2009 11:44 PM
hi,
I want to design a two timed loop, one is to display the time every 1 second, the other one is to display the number of from 0 to 5 every 0.5s. I used time event for the first part and a "for loop" for the second part. But it doesn't work well. Please tell me what's wrong with it.
Thanks
Jessie
02-26-2009 12:02 AM
Your For loop takes 3 seconds to run. The event structure runs with the 1 second timeout. The loop doesn't iterate until all code inside of it is done, meaning it will take 3 seconds.
Also, put a stop button control to stop the loop instead of having an infinite loop with the False constant on the Loop terminal.
02-26-2009 10:10 AM
I noticed the problem that only after the loop ends can time event take action . However, I have no idea how to realize two timed loop. Can you give me some suggestion ?I appreciate your words.
Jessie
02-26-2009 10:15 AM