the stop block
All the programs presented so far have ended either because they reached the end of the Sequence Beam or because you pressed the Exit button on the NXT. The Stop block gives you a way to make a program end itself.
This block is very simple; it has no configuration items, and when it’s run, the program ends. You’ll find the Stop block on the Complete Palette in the Flow group, as shown in Figure 6-17. Figure 6-18 shows how it will look in your program.
Figure 6-17. The Stop block on the Complete Palette
Figure 6-18. The Stop block
BumperBot3 ...
Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.