Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Keep Script Running

hi

am looking for to let a script keep running whithout stopping.
cant find it

anyone thank you


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

AI Support Bot
Related Content
Synthiam
PRO
Synthiam
#3  
Or in blocky, use the LOOP command titled LOOP FOREVER
User-inserted image



It generates this code...


User-inserted image
PRO
Belgium
#4  
dj

is that only in the begin ? loop forever or is there at the end also a command.
#5  
The above code loops forever... If you want to stop the script use the command below or to just exit the loop but stay in the script you can use a different "Goto/Label" command to put you outside the loop...

Code:

 Halt() #stops a script

$x=0
:top
# do something
if($x=1)
goto(exit) #exit the loop only
endif

goto(top)

:exit
Print("finished")
PRO
Synthiam
#7  
This demonstrates both ways to exit the loop or script in blockly.

Use Blockly to learn how to program


User-inserted image