common problems

If you follow the programming instructions for changing the RedOrBlueCount program exactly as given in this chapter, you shouldn’t run into any problems. Of course, when writing your own programs, everything won’t always work perfectly the first time through, so you’ll need to do some debugging. To make finding and fixing bugs go a little faster, here’s a list of some of the most common problems that you may encounter when using files:

  • Using the wrong filename. It’s easy to make a mistake when entering a filename. To minimize this problem, copy an existing File Access block instead of adding a new one, or select the filename from the File list in the Configuration Panel.

  • Running out of memory. File Access blocks that write data will ...

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.