DocumentsDate added
This is the sub VI associated with the "Using a Sub VI" example. Please download both parts in order for the code to work.
This example shows a possible implementation of a sub VI. Sub VI's are essentially consolidations of other code into one icon.
NOTE: please download the sub VI associated with this example, or the code will not work!
This example demonstrates how to use multiple NXTs. After specifying which NXTs to use, the program uses motors on both NXTs.

This example demonstrates the use of multiple NXT flags. A robot is programmed to constantly check if the light sensor is on a dark surface, the touch sensor is pressed, and if the ultrasonic sensor is more than 10 cm away from an object. If any of these conditions are met, a corresponding flag is set to true and the parallel while loop reacts accordingly.

This example shows a very basic use of the NXT flag function. A flag is created and set to true only when the touch sensor is pressed. The flag is then used as a stop condition for a while loop.
