This program changes the motor speed and direction of the NXT car depending on which touch sensor is pressed. If both touch sensors are pressed the motors will drive in the same direction, if one touch sensor is pressed the motors will drive in opposite directions, and if no touch sensors are pressed the motors will brake.
This program demonstrates how to display sensor information on the front panel and on the screen of the NXT brick. Using an indicator attached to the scaled value output of the "Read Light" VI you are able to see its value on the front panel. Using the Draw Number VI, you can display the out put from the light sensor to the screen of the NXT brick.
This programs takes the output of the light sensor and graphs it on the waveform chart on the front panel, until you press the stop button.
This example utilizes proportional control to keep an robotic arm at a constant distance above a surface using only a light sensor at the distal end of the arm to measure position.
This example uses the NXT ultrasonic sensor to estimate the velocity of an object. The ultrasonic sensor can only measure distance, but velocity can found by differentiating the object's position over time. You will notice that the resulting velocity values fluctuate a lot because the noise in the distance measurements becomes amplified when you take the derivative.
This program runs a motor until the touch sensor is pressed, then stops the motor.
The program records readings from a light sensor attached to the NXT brick until the STOP button on the front panel is pressed. All the readings are then displayed at once on the waveform graph on the front panel below.
This program takes the value output from a light sensor and uses it to control the power of a motor.