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

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 ...

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