Stop at the Push of a Button

Touch Sensor

Touch Sensor

In this section, we will be learning about the importance of sensors. You will learn how to modify code to incorporate sensors.

The first sensor we will look at is the NXT Touch Sensor. In order to communicate with this sensor we will have to use the Touch_Pressed.vi. This is a NXT function that tells use whether a the button is being pressed or not. It outputs TRUE when pressed and FALSE when it’s not.

RamdomNumber.vi

RandomNumber.vi

In this section we will also be learning about another function. We will learn about the RandomNumber.vi, which generates a random number between 0 and a set max value.

Left Arrow Right Arrow