Run Task Repeatedly Until Manually Stopped

Discuss RoboTask here
Post Reply
DEE
Posts: 4
Joined: Sun Jun 09, 2013 5:54 pm
Contact:

Run Task Repeatedly Until Manually Stopped

Post by DEE »

I need to run and rerun a task repeatedly until I manually stop it. Is this possible? Maybe I can have the task call itself?

Thanks for your help.
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Run Task Repeatedly Until Manually Stopped

Post by Oleg »

You can't call itself from the task. Each task can be started only once.

But there is While Loop. You easily can make infinite loop.
Like this:

Code: Select all

while true
   ....
   put you steps here 
   ....
end loop
Another way (recommended):
You can attach Cyclic trigger to the task. You can set 1 or 2 seconds period.
Oleg Yershov
DEE
Posts: 4
Joined: Sun Jun 09, 2013 5:54 pm
Contact:

Re: Run Task Repeatedly Until Manually Stopped

Post by DEE »

Thanks Oleg, the Cyclic trigger would be perfect, except that I never know how long this task needs to complete.

I'll try the loop.

Thanks!
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Run Task Repeatedly Until Manually Stopped

Post by Oleg »

DEE wrote:... except that I never know how long this task needs to complete.
This is not a problem. The task will be running only once. Cyclic trigger will start the task only when it will be possible.
Oleg Yershov
DEE
Posts: 4
Joined: Sun Jun 09, 2013 5:54 pm
Contact:

Re: Run Task Repeatedly Until Manually Stopped

Post by DEE »

Works great, thanks for the quick reply!
Post Reply