Reset

Icons & Hints Examples
Hints: Use this to reset the touch sensor. Helpful if taking touch sensor data. This piece of code resets the touch sensor then turns on motor A. When the touch sensor is pressed, motor A is shut off. This program could run without the reset, however, the reset works to ensure accurate touch sensor data.
Hints: Use this to reset the click count sensor. Helpful if taking clicks data. This piece of code zeros the clicks sensor and then starts a loop that would continuously play the note C and a rest until the number of clicks was 10 (the default).
Hints: Use this to reset the touch and release sensor. Helpful if taking touch and release data. This piece of code turns on motor A for 10 seconds, and then shuts it off. If after 10 seconds the touch sensor has been touched and released more than 10 times (the default), it plays a sound.
Hints: Use this to reset the light sensor. Helpful if taking light sensor data. This piece of code resets the light sensor and then logs 10 data points.
Hints: Use this to reset the temperature sensor. Helpful if taking temperature data. This piece of code resets the temperature sensor and then logs 10 data points.
Hints: Use this to reset the temperature sensor. Helpful if taking temperature data. This piece of code resets the temperature sensor. Then it turns on motor A. When the temperature falls below 80 degrees Fahrenheit (the default), motor A is shut off.
Hints: Use this to reset the angle sensor. Helpful if taking angle or rotation data. This piece of code zeros the angle sensor then waits 10 seconds. If at that point the rotation sensor reads greater than 1 rotation (a reading of 16, the default), then the RCX plays a sound.
Hints: Use this to empty a container. Helpful whenever you are placing new values in a container. This piece of code would zero the container. Then it would start a loop that plays the note C and adds one to the container. The loop would end when the container reaches 5. In total, it will play the note C five times.
Hints: Use to reset timer. Helpful whenever you use the timers. This piece of code turns on lamp A for a random amount of time, and then turns it off. If the time is less than 3 seconds (the timer measures tenths of seconds, so the modifier 30 is equivalent to 3 seconds), the RCX plays a sound.
Hints: Use this to empty the mailbox. Helpful when you are planning to receive new mail or want to check for new mail. This piece of code would empty the mail box. After 10 seconds, it checks to see if it has received mail whose value is greater than 1 (the default). If it has, the RCX plays a sound.
Hints: Use this to reset the RCX clock. This piece of code resets the clock to zero and turns on motor A. When the clock gets to 1 minute (the default), motor A turns off.
Hints: Clears data logging memory. Helpful if you're taking lots of data or have a lengthy program. This piece of code clears the data memory, then logs 500 points of rotation sensor data.
Hints: Use this to reset the NXT touch sensor. Helpful if taking touch sensor data. This piece of code resets the NXT touch sensor on port 2 and then initiates touch sensor logging on the NXT touch sensor on port 2. It begins data collection, logging touch sensor data every 1 minute to the Blue Data Set until for 30 minutes.
Hints: Use this to reset the NXT click count sensor. Helpful if taking clicks data. This piece of code zeros the NXT clicks sensor. It then initiates click sensor logging on port 1. It begins data collection, logging clicks sensor data every 0.1 seconds. Motor A turns on and continues for 8 seconds. Then data collection and Motor A stop.
Hints: Use this to reset the NXT touch and release sensor. Helpful if taking clicks data. This piece of code zeros the NXT touch and release sensor. Then it logs touch and release sensor data every second for 45 seconds and stops.
Hints: Use this to reset the NXT light sensor. Helpful if taking light data. This piece of code resets the light sensor and initiates light sensor logging on the NXT light sensor on port 1. It begins data collection, logging light sensor data every 1 second to the Red Data Set until it has collected 50 data points.
Hints: Use this to reset the NXT distance sensor. Helpful if taking distance data. This piece of code resets the NXT distance sensor on port 1 and then initiates distance sensor logging on the NXT distance sensor on port 1. It begins data collection, logging distance sensor data every 0.1 seconds. Motors A and C turn on. After 4 seconds, data collection and the motors stop.
Hints: Use this to reset the NXT sound sensor. Helpful if taking sound data. This piece of code resets the NXT sound sensor on port 2, then initiates sound sensor logging on the NXT sound sensor on port 2. It begins data collection, logging sound sensor data every 0.1 seconds for 30 seconds.
Hints: Use this to reset the NXT angle sensor. This is useful at the beginning of any program using the encoders (rotation sensors) built in to the NXT motors. This piece of code resets the NXT angle sensor on motor A. Motors A and C turn on until the angle sensor reads 30. Then the motors turn off.
Hints: Allows you to programmatically configure the type, mode and slope of the Generic Sensor (settings of which are specified in 101Generic.sa sensor file) Calibrations must be altered in the actual sensor file. This piece of code sets up a sensor with as type 'None', mode 'Raw', with a slope of 2. It waits for the value to read below 3 and then beeps.
Hints: Allows you to reset the sensor ports so you can use two different sensors on the same port. Note: This should be used carefully by advanced users and can only be implemented with compatible sensors. This piece of code waits for the touch sensor to be pressed and the resets the sensor ports, waits for one second, and then beeps until the light value is greater than or equal to 50.