Chapter 5
Moving Data
Many times, you will want your NXT-G program to remember various values and conditions. These values are stored as data in your NXT and can be shared within your programs among the different blocks. This data can be intimidating to transfer, but with some practice, you will find that it’s not as difficult as it may seem.
Data Wires
Data wires give you the ability to transfer data between program blocks programmatically. You have seen that most blocks have a set of parameters that you can set or modify in the Properties panel. With data wires, however, you can access and change these values while the program is running (based on factors such as sensor readings or calculations). Many new programmers find data wires intimidating ...
Get Winning LEGO MINDSTORMS 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.