Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
Does NXT-G have anything similar to events? How can I write a program that runs a whole sequence of tasks while waiting for a certain sound level to bring everything to stop?
Unfortunately, NXT-G has no equivalent to the RoboLab event. The way to get around this is to use the beams to have multiple tasks executing at the same time. If you have more than 3 tasks, hold down the shift key while using the select tool to grow additional task beams off of the original three. Put one task on each beam and on the final beam put a 'wait for sound' followed by a 'stop', which will bring your program to an end.

The following program goes back and forth repeatedly while playing a song with intermittent bursts of random noise added  while waiting for a sound, which will stop the program.


Visitor Comments
No visitor comments posted. Post a comment
Related Questions
No related questions were found.
Attachments
No attachments were found.

Powered by ActiveKB Knowledgebase Software