dealing with broken wires

As you are writing your program, it’s possible to connect a data wire in such a way that it won’t work correctly. A data wire that is not connected properly is known as a broken wire. A broken wire is shown as a dashed, gray line (as shown in Figure 8-37) to let you know that the program has a problem.

A broken wire

Figure 8-37. A broken wire

A data wire can appear broken for the following reasons:

  • The data types of the two plugs do not match. For example, you can’t connect the Tone Frequency output plug from the Sound block (a number) to the Display block’s Text plug. Instead of connecting these two data plugs directly, you need to use ...

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.