the keep alive block
The NXT has a built-in sleep setting that turns it off when it’s not in use. By default the sleep time is set to either 10 minutes or an hour, depending on the version of the firmware on your NXT. You can use the NXT’s Settings menu to set the sleep time or turn off this feature.
Having the NXT go to sleep is useful for saving your batteries; however, you may want to prevent the NXT from turning off while your program is running. That’s where the Keep Alive block comes in.
The Keep Alive block is in the Advanced group at the bottom of the Complete Palette (shown in Figure 6-14). The icon for this block may not be immediately obvious. It’s a pair of Zs (to indicate sleeping) crossed out using a red circle with a line through ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access