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

controlling the amount of data

The VerifyLightPointer program is a little unusual in that it collects and records data as fast as possible, creating a large data file in a short amount of time. The program is written this way to match the design of the LightPointer program, but for most data-logging programs, you’ll want more control over how often the program records data. Because the amount of memory you have to work with is limited, you’ll usually need to record the data less often in order to avoid running out of memory.

Most data-logging programs will be structured like the VerifyLightPointer program. After some blocks perform the initial setup, a Loop block will contain the code to collect the data and write it to a file. You can control ...

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