Update: This example applies to the 2010 FTC competition software and may not be compatiblw with current competiton software. - Motor functions have changed.

In this example we have two motors with encoders (Left Front Drive and Right Front Drive) and two motors that do not (Rear Left and Read Right). In the outer while loop I simple tell the motors with encoders to move1000 encoder ticks. In the inner loop I tell my other two motors to move and poll the encoders attached to Left Front Drive and Right Front Drive to see if they are still moving. If they have stopped the output Move in Progress? from the Motor Status VI outputs a false. I use this value to end my inner while loop and then immediately set the motor speed for Rear Left an Rear Right to 0, stopping the motors.