Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

the record/play block

The Record/Play block (shown in Figure 4-43) lets you record the movements of one or more motors and later play them back, reproducing the movements you recorded.

The Record/Play block

Figure 4-43. The Record/Play block

Using this block is a two-step process. First, you write a program with the block’s Action item set to Record. While running the program, manually move the robot through the actions you want it to perform. The block will save a file on the NXT containing the information needed to replay the movements.

The second step is to use a block with the Action item set to Play in another program to replay the motions you recorded.

configuration ...

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.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata