08-22-2012 10:51 AM
HI,all
my for loop execute one has cost about 550 seconds
i want to every 600 seconds to execute For loop
how can i do?
thanks~
08-22-2012 10:55 AM - edited 08-22-2012 11:00 AM
Do you mean that you want to iterate the loop every 600 seconds or execute the whole loop every 600 seconds? More details will help us give you a better answer.
You can use the time funtions (e.g. "Get Date/Time in Seconds") to find out how much time has elapsed and allow the loop to iterate once you hit 600 seconds.
08-22-2012 10:58 AM
yes,
I mean that i want to iterate the loop every 600 seconds.
08-22-2012 11:04 AM - edited 08-22-2012 11:13 AM
Like this?
08-22-2012 11:05 AM - edited 08-22-2012 11:05 AM
You want to iterate every 10 minutes? That's an extremely long time. But here you go.
08-22-2012 11:11 AM
sorry,i express some error.
i want to wait 45 seconds then do this for loop at first
then every 600 seconds iterate this loop
how can i do?
08-22-2012 11:12 AM
Common guys please post in 2009 version please. I have attached a sample program if you use a time delay of 600 seconds then you have to abort the code to stop execution inbetween if you wantso better don't go for that.
08-22-2012 11:15 AM - edited 08-22-2012 11:16 AM
OK, like this? By the way, this is pretty basic stuff.
08-22-2012 11:18 AM
You really don't want to use a FOR loop for all that. The program needs to be interruptable at all times.
I suggest an event structure in a while loop. As an example, see also my links posted in my comment to a related idea.
08-22-2012 12:05 PM