Wait Fors

Icons & HintsExamples
Wait for 1 second Hints: Use this icon if you want to wait for 1 second before moving on to the next command. Useful to choose duration of motor and lamp activity.

This piece of code would turn on motor A for 1 second, and then turn it off.

Wait for 2 seconds Hints: Use this icon if you want to wait for 2 seconds before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor A in the reverse direction for 2 seconds, and then turn it off.
Wait for 4 seconds Hints: Use this icon if you want to wait for 4 seconds before moving on to the next command. Useful to choose duration of motor and lamp activity This piece of code would turn on motor B for 4 seconds, and then turn it off.
Wait for 6 seconds Hints: Use this icon if you want to wait for 6 seconds before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor C at power level four for 6 seconds, and then turn it off.
Wait for 8 seconds Hints: Use this icon if you want to wait for 8 seconds before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor B in the reverse direction for 8 seconds, and then turn it off.
Wait for 10 seconds Hints: Use this icon if you want to wait for 10 seconds before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor C in the reverse direction for 10 seconds, and then turn it off.
Wait for time Hints: Use this icon if you want to specify the number of seconds to wait before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor A for the number of seconds specified on the control panel and then turn it off.
Wait for random time Hints: Use this if you want to wait a random amount of time before moving on to the next command. Use modifier to change the max random time from 5 seconds. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor A for a random amount of time between 0 and 5 seconds and then turn it off.
Wait for n hundredths of a second Hints: Use this if you want to wait a certain number of hundredths of seconds before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor A for a the number of hundredths of seconds specified on the control panel and then turn it off.
Wait for n thousandths of a second Hints: Use this if you want to wait a certain number of thousandths of seconds before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on Motor A nada C forward for 250 thousandths of a second, as specified by the constant. Motor A would then continue going forward and Motor C backward until a touch sensor was pressed, in which case both motors would stop.
Wait for time (min) Hints: Use this if you want to wait a certain number of minutes before moving on to the next command. Useful to choose duration of motor and lamp activity. This piece of code would turn on motor A for the number of minutes specified on the control panel and then turn it off.
Wait for 10 points Hints: Most useful in Investigator. Use this icon when you want to collect 10 data points before moving on to the next command. This piece of code would take 10 data points from the touch sensor.
Wait for 100 points Hints: Most useful in Investigator. Use this icon when you want to collect 100 data points before moving on to the next command. This piece of code would take 100 data points from the clock.
Wait for 500 points Hints: Most useful in Investigator. Use this icon when you want to collect 500 data points before moving on to the next command. This piece of code clears the data memory, then logs 500 points of rotation sensor data.
Wait for n points Hints: Most useful in Investigator. Use this icon when you want to collect a certain number of data points before moving on to the next command. This piece of code would take 50 data points from the mailbox.
Wait for push Hints: Use this icon to wait for something to push in the touch sensor before moving on to the next command. If an IP number was strung onto the begin icon, this piece of code would be sent over the Internet. It would turn on motor A until a touch sensor was pressed, and then shut it off.
Wait for let go Hints: Use this icon to wait for something to release the touch sensor before moving on to the next command. If the touch sensor is not pressed to begin with, the touch sensor must be pressed then released. If an IP number was strung onto the begin direct icon, this piece of code would control an RCX in direct mode over the Internet. It would turn on motor A on the remote RCX until a touch sensor was released and then turn it off.
Wait for light Hints: Use this icon to wait for the light reading to become greater than a certain value before moving on to the next command. This piece of code turns on motor A, then waits for the light sensor to read a value greater than 55 (the default). Then, it turns off the motor.
Wait for dark Hints: Use this icon to wait for the light reading to become less than a certain value before moving on to the next command. This piece of code turns on motor A, then waits for the light sensor to read a value less than 55 (the default). Then, it turns off the motor.
Wait for brighter Hints: Use this icon to wait for the light reading to increase by a certain value before moving to the next command. This piece of code turns on motor A, then waits for the light reading to increase by 5 (the default). Then, it turns off the motor.
Wait for darker Hints: Use this icon to wait for the light reading to decrease by a certain value before moving to the next command. This piece of code turns on motor A, then waits for the light reading to decrease by 5 (the default). Then, it turns off the motor.
Wait for rotation w/o reset Hints: Use this icon to wait for a number of rotations (or a fraction of a rotation) to be completed but do NOT want to reset the rotation sensor to 0. (The general wait for rotation sensor resets to 0 and then waits for the cutoff rotation.) The angle sensor value is measured in sixteenths, so a reading of 16 is one rotation. This piece of code turns on lamp A, waits for 1 rotation (a reading of 16, the default) from the sensor, then turns lamp A off.
Wait for angle Hints: Use this icon to wait for the angle sensor value to be greater than the cutoff value before moving on to the next command. The rotation can be either forward or backward. The default is 180 degrees, or half a rotation. This piece of code turns on lamp A. Once the angle sensor reads a value of greater than 180 degrees (the default), lamp A turns off.
Wait for rotation Hints: Use this icon to wait for the angle sensor value to be greater than the value specified before moving on to the next command. The angle sensor value is measured in sixteenths, so a reading of 16 is one rotation. This piece of code turns on lamp A. Once the angle sensor value reaches 16 (or one rotation, the default), lamp A turns off.
NXT Wait for Push Hints: Use this icon to wait for something to push in the touch sensor before moving on to the next command. This piece of code waits until the NXT touch sensor on Port 1 is pressed, in which case Motors A and C go forward until the touch sensor is pressed again. When it is pressed, Motor A will continue forward and Motor C will go backward for 2 seconds, then both motors will stop.
NXT Wait For Let Go Hints: Use this icon to wait for something to release the new NXT touch sensor before moving on to the next command. If the touch sensor is not pressed to begin with, the touch sensor must be pressed then released. This piece of code waits until the NXT touch sensor on Port 1 is pressed. While it is pressed, Motors A and C go forward until the touch sensor is released. When it is released, Motor A will continue forward and Motor C will go backward for 2 seconds, then both motors will stop.
NXT Wait for Light Hints: Use this icon to wait for the light reading to become greater than a certain value before moving on to the next command. This piece of code turns on Motor A, then waits for the light sensor on Port 1 to read a value greater than 36. Then, it turns off the motor.
NXT Wait for Dark Hints: Use this icon to wait for the light reading to become less than a certain value before moving on to the next command. This piece of code turns on motor A, then waits for the light sensor to read a value less than 30. Then, it turns off the motor.
NXT Wait for Brighter Hints: Use this icon to wait for the light reading to increase by a certain value before moving to the next command. This piece of code turns on motor A, then waits for the light reading to increase by 10. Then, it turns off the motor.
NXT Wait for Darker Hints: Use this icon to wait for the light reading to decrease by a certain value before moving to the next command. This piece of code turns on motor A, then waits for the light reading to decrease by 10. Then, it turns off the motor.
NXT Forward Distance X Hints: Use this icon to wait for the distance sensor to read a distance (in cm) that is greater than the number specified before moving onto the next command. This piece of code turns on Motor A, then waits for the distance sensor to have a value of greater than 10, in which case it stops. It then waits for the distance sensor to read a value less than 10. Next, it jumps back to the beginning of the program and starts again.
NXT Reverse Distance X Hints: Use this icon to wait for the distance sensor to read a distance (in cm) that is less than the number specified before moving onto the next command. This piece of code turns on Motor A, then waits for the distance sensor to have a value of greater than 10, in which case it stops. It then waits for the distance sensor to read a value less than 10. Next, it jumps back to the beginning of the program and starts again.
NXT Wait for Loud Hints: Use this icon to wait for the sound sensor to notice a volume greater than the specified cutoff before moving onto the next command. This piece of code turns on Motors A and C, then waits for the sound sensor to notice a volume greater than 70, in which case Motors A and C reverse. It then waits for the sound sensor to read a value less than 35. Next, it jumps back to the beginning of the program and starts again.
NXT Wait for Quiet Hints: Use this icon to wait for the sound sensor to notice a volume less than the specified cutoff before moving onto the next command. This piece of code turns on Motors A and C, then waits for the sound sensor to notice a volume greater than 70, in which case Motors A and C reverse. It then waits for the sound sensor to read a value less than 35. Next, it jumps back to the beginning of the program and starts again.
NXT Louder Hints: Use this icon to wait for the volume to increase by the cutoff value before moving onto the next command. This piece of code turns on Motors A and C, then waits for the volume to increase by 15, in which case Motors A and C reverse. It then waits for the volume to decrease by 20. Next, it jumps back to the beginning of the program and starts again.
NXT Quieter Hints: Use this icon to wait for the volume to decrease by the cutoff value, before moving onto the next command. This piece of code turns on Motors A and C, then waits for the volume to increase by 15, in which case Motors A and C reverse. It then waits for the volume to decrease by 20. Next, it jumps back to the beginning of the program and starts again.
NXT Wait for Rotation Hints: Use this icon to wait for the NXT angle sensor value to be greater than the value specified before moving on to the next command. This piece of code turns on Lamp A. Once the angle sensor, on Port B, value reaches 180 degrees (one half a rotation), the default), Lamp A turns off.
NXT Wait for Angle Hints: Use this icon to wait for the angle sensor value to be greater than the cutoff value before moving on to the next command. The rotation can be either forward or backward. This piece of code turns on lamp A. Once the angle sensor, on Port B, reads a value of greater than 720 degrees (two rotations), lamp A turns off.
NXT Wait for Rotation w/o Reset Hints: Use this icon to wait for a number of degrees to be completed but do NOT want to reset the rotation sensor to 0. (The general wait for rotation sensor resets to 0 and then waits for the cutoff degree.) This piece of code turns on Lamp A, waits for 720 degrees from the sensor, then turns Lamp A off.
Wait for decreasing Temp (C) Hints: Use this icon to wait for the temperature sensor to read a value less than the cutoff temperature specified before moving on to the next command. This piece of code turns on lamp A, then waits for the temperature sensor to read below 30 degrees Celsius (the default). After that it plays a sound and turns off the lamp.
Wait for increasing Temp (C) Hints: Use this icon to wait for the temperature sensor to read a value greater than the cutoff temperature specified before moving on to the next command. This piece of code turns on lamp A, then waits for the temperature sensor to read above 30 degrees Celsius (the default). After that it plays a sound and turns off the lamp.
Wait for decreasing Temp (F) Hints: Use this icon to wait for the temperature sensor to read a value less than the cutoff temperature specified before moving on to the next command. This piece of code turns on lamp A, then waits for the temperature sensor to read below 80 degrees Fahrenheit (the default). After that it plays a sound and turns off the lamp.
Wait for increasing Temp (F) Hints: Use this icon to wait for the temperature sensor to read a value greater than the cutoff temperature specified before moving on to the next command. This piece of code turns on lamp A, then waits for the temperature sensor to read above 80 degrees Fahrenheit (the default). After that it plays a sound and turns off the lamp.
Wait for container Hints: Use this icon to wait for the value of a container is equal to some number before moving on to the next command. This piece of code empties the red (default) container. Then it turns on motor A. It waits for the container value to equal 1 (the default), and when it does, it turns off motor A and stops all tasks. At the same time, a second task is filling the container with the value of the touch sensor. In essence, this program waits for the touch sensor to be pressed, and then turns off the motor.
Wait for mail Hints: Use this icon to wait for mail before moving on to the next command. This piece of code turns on motor A and waits to receive mail. Once the mail is received, it turns off motor A.
Wait for clock Hints: Use this icon to wait for the clock on the RCX to reach a certain time value in minutes before moving on to the next command. Useful if you do not want the RCX to stay on too long to conserve batteries. This piece of code turns on lamp A and waits for the RCX clock to reach 1 minute (the default), then turns off the lamp.
Wait for timer Hints: Use this icon to wait until the TIMER reaches a certain time (measured in tenths of seconds) before moving on to the next command. Always use a zero timer command prior to this command. This program zeros the red timer and turns on motor A. Then it waits for the red timer to reach 1 second (the default), after which it stops motor A.
Wait for timer Hints: Use this icon to wait until the timer (read in hundredths of seconds) reaches a certain time before moving on to the next command. Always use a zero timer command prior to this command. This program zeros the red timer then it waits for the red timer to reach 600 hundredths of seconds, after which it beeps.
Wait for increase in camera sensor Hints: Use this icon to wait until the camera sensor reads a value higher than the compare to number before moving on to the next command. This piece of code would turn on motor A. When the camera sensor reads a value of greater than 55 (the default), The motor would turn off and the RCX would play a sound.
Wait for decrease in camera sensor Hints: Use this icon to wait until the camera sensor reads a value lower than the compare to number before moving on to the next command. This piece of code would turn on motor A. When the camera sensor reads a value of less than 55 (the default), The motor would turn off and the RCX would play a sound.
Wait for decrease in voltage (generic) Hints: Use this icon to wait until the sensor reads a voltage of less than the cutoff voltage specified before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 2 Volts (the default), motor A would turn off.
Wait for increase in voltage (generic) Hints: Use this icon to wait until the sensor reads a voltage of greater than the cutoff voltage specified before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 2 Volts (the default), motor A would turn off.
Wait for decreasing humidity Hints: Use this icon to wait until the sensor reads a value of less than the cutoff humidity percentage before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 50% humidity (the default), motor A would be shut off.
Wait for increasing humidity Hints: Use this icon to wait until the sensor reads a value of greater than the cutoff humidity percentage before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 50% humidity (the default), motor A would be shut off.
Wait for decreasing pH Hints: Use this icon to wait until the sensor reads a value of less than the cutoff pH before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 7 (the default), motor A would be shut off.
Hints: Use this icon to wait until the sensor reads a value of greater than the cutoff pH before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 7 (the default), motor A would be shut off.
Wait for position decrease Hints: Use this icon to wait until the sensor reads a value of less than the cutoff position before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 180 degrees (the default), the motor would be shut off.
Wait for position increase Hints: Use this icon to wait until the sensor reads a value of greater than the cutoff position before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 180 degrees (the default), the motor would be shut off.
Wait for decreasing pressure Hints: Use this icon to wait until the sensor reads a value of less than the cutoff pressure before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 100 kPa (the default), the motor would be shut off.
Wait for increasing pressure Hints: Use this icon to wait until the sensor reads a value of greater than the cutoff pressure before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 100 kPa (the default), the motor would be shut off.
Wait for decreasing sound level Hints: Use this icon to wait until the sensor reads a value of less than the cutoff sound level before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 60 decibels (the default), the motor would be shut off.
Wait for increasing sound level Hints: Use this icon to wait until the sensor reads a value of greater than the cutoff sound level before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 60 decibels (the default), the motor would be shut off.
Wait for decreasing Temperature (C) Hints: Use this icon to wait until the sensor reads a value of less than the cut off temperature before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 30 degrees Celsius (the default), the motor would be shut off.
Wait for increasing Temperature (C) Hints: Use this icon to wait until the sensor reads a value of greater than the cut off temperature before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 30 degrees Celsius (the default), the motor would be shut off.
Wait for decrease in Voltage Hints: Use this icon to wait until the sensor reads a value of less than the cutoff voltage before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of less than 2V (the default), the motor would be shut off.
Wait for increase in Voltage Hints: Use this icon to wait until the sensor reads a value of greater than the cutoff voltage before moving on to the next command. This piece of code would turn on motor A. When the sensor reads a value of greater than 2V(the default), the motor would be shut off.
here