LEGO Engineering

| | | | | | | |
How do I use wait for container / timer / clock?


22nd of April, 2010

(3 )
100% thumbs up 0% thumbs down

There are many different 'wait for' commands, all of which can be found in the 'wait for' menu. Timers pause the program until the time has changed by a specified value.  Likewise, the 'wait for' commands pause the program until a specified event occurs. For example, in the following piece of code, the program waits for the red container to equal 25 before continuing:

wait_for_pic_1.jpg

Any code after the 'wait for' icon will not execute until the condition the program is waiting for has been met. It is possible, however, to have other tasks running at the same time as a 'wait for; command. It is also possible to have an event set to jump past the 'wait for' command if necessary. When using 'wait for' commands you must wire in a constant unless you are content with the default value.





AG

ses
   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.