Icons & Hints | Examples |
Hints: Use this modifier to indicate your output device is connected to port A. | This piece of code would turn on motors connected to ports A and B in the forward direction. After 4 seconds, it would turn them off. |
Hints: Use this modifier to indicate your output device is connected to port B. | This piece of code would turn on motors connected to ports A and B in the forward direction. After 4 seconds, it would turn them off. |
Hints: Use this modifier to indicate your output device is connected to port C. | This piece of code would turn on lamps connected to ports A and C at power level 3. After 6 seconds, it would turn them off. |
Hints: Use this modifier to indicate your input device is connected to port 1. | This piece of code runs motor A forward at power level one until the touch sensor that is connected to Port one is pressed in. It then plays a sound and stops motor A. |
Hints: Use this modifier to indicate your input device is connected to port 2. | This piece of code runs motor A forward at power level one until the touch sensor that is connected to Port one is pressed in. It then plays a sound and stops motor A. |
Hints: Use this modifier to indicate your input device is connected to port 3. | This piece of code runs motor A forward at power level one until the touch sensor that is connected to Port one is pressed in. It then plays a sound and stops motor A. |
Hints: The numeric constant is used to modify many icons. Use the text tool to edit the number. | This piece of code runs motor A and motor C forward for 1.5 seconds, then the motors are turned off. |
Hints: Use this modifier to indicate that you are using values associated with the Red Container. | This piece of code fills the Red Container with the value of the touch sensor. A sound is played and the value of the red container is shown on the RCX. If the value of the touch sensor was 1 (meaning it was pressed in), the RCX would read 1. |
Hints: Use this modifier to indicate that you are using values associated with the Blue Container. | This piece of code fills the Blue Container with a value of 1. It then ADDs 2 to the blue container. The value of the Blue Container would then be displayed on the RCX as 3. |
Hints: Use this modifier to indicate that you are using values associated with the Yellow Container. | This piece of code fills the Yellow Container with the value of the light sensor. A sound is played and the value of the Yellow Container is shown on the RCX. If the value of the light sensor was 41, the RCX would read 41. |
Hints: Use this modifier to indicate that you are using values associated with the Generic Container. 0 corresponds with the Red Container, 1 with the Blue Container, and 2 with the Yellow Container. Containers 3-22 can be used as generic user-defined containers, and 23-47 correspond to task-specific containers. | This piece of code fills the Generic Container with the value of the Temperature sensor in Fahrenheit. A sound is played and the value of the Generic Container is shown on the RCX. If the value of the sensor was 75 deg, the RCX would read 75. |
Hints: This command takes the value in the container specified (Container #) and uses that to choose the container specified. This is the ROBOLAB equivalent of a C Pointer. | This piece of code zeroes both the generic container (3) and the Red Container. It then takes the value of the generic container (0) and uses that to determine what container should be filled with the value of 10. The 0 corresponds to the Red Container so the Red Container is filled with a value of 10 and that is then displayed on the the RCX. The program then waits 4 seconds and then shows the value of the Generic Container which is still 0. |
Hints: Use this icon to name a generic container. Use the pointer tool to choose a container name from the drop down menu. For example, container 3 can be used by selecting User3. | This piece of fills container 3 with a value of 5. It then displays the value of the container 3 (which was just set to 5). The display will then show 5 for eight seconds. |
Hints: Use this modifier to indicate that you are using values associated with the Red Timer. | This piece of code zeroes the Red Timer and then waits for 10 seconds. The value of the Red Timer is put into the Red Container and then displayed on the RCX. |
Hints: Use this modifier to indicate that you are using values associated with the Blue Timer. | This piece of code zeroes the Red Timer and then waits for 10 seconds. The value of the Red Timer is put into the Red Container and then displayed on the RCX. |
Hints: Use this modifier to indicate that you are using values associated with the Yellow Timer. | This piece of code zeroes the Red Timer and then waits for 10 seconds. The value of the Red Timer is put into the Red Container and then displayed on the RCX. |
Hints: Use this modifier to indicate that you are using values associated with the Red Data Set. You can wire in additional Data Sets. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier to indicate that you are using values associated with the Blue Data Set. You can wire in additional Data Sets. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier to indicate that you are using values associated with the Yellow Data Set. You can wire in additional Data Sets. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier in a data acquisition program to take a sample every one tenth (.1) of a second. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier in a data acquisition program to take a sample every second. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier in a data acquisition program to take a sample every ten seconds. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier in a data acquisition program to take a sample every minute. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier in a data acquisition program to take a sample every hour. | This piece of code will initialize the light sensor on port one, and will begin data logging on the Red Data Set for 10 points. This code captures data every second. |
Hints: Use this modifier in a data acquisition program to take a sample every time the touch sensor is pressed on port two. | First of all, this piece of code zeroes the touch sensor on Port 2. It then initializes the light sensor on port one and begins to take data points in the Red Data Set every time the touch sensor on port 2 is pressed. The program stops data logging when the user gets 10 points. |
Hints: String this modifier to a Start Data Logging subroutine to capture data points every time you write to the data set and marks the data with time. The time will rollover every 2^16 tenths of a second. | This piece of code initializes the NXT light sensor on port one, starts collecting data, and enters a 5 iteration loop in which every time the touch sensor on Port 2 is pressed time stamped data from the light sensor on Port 1 is recorded. Once 5 points of data have been collected, it leaves the loop. |
Hints: String this modifier to a Start Data Logging subroutine to capture data points every time you write to the data set. | This piece of code initializes the NXT light sensor on port one, starts collecting data, and enters a 5 iteration loop in which every time the touch sensor on Port 2 is pressed data from the light sensor on Port 1 is recorded. Once 5 points of data have been collected, it leaves the loop. |
Hints: Use this modifier to use the value of the clock since 00:00 in minutes. | This piece of code sets the clock to 0 hours and 0 minutes and then waits 12 minutes. A sound is played and the value of the clock is displayed on the RCX. |
Hints: Use this command when you want to see the value of the firmware in your RCX. | This piece of code fills the Red Container with the value of the firmware in your RCX and then displays it on your RCX screen. |
Hints: Use this command when you want to use or monitor the battery value in your program. (Battery Power is represented as 1000 times the battery power so 7.654 = 7654). | This piece of code fills the Red Container with the value of the battery and then displays the value on the RCX. |
Hints: String this modifier to a motor command to change the speed of the motor to 1. Speed 1 is the slowest, speed 5 is the fastest. | This piece of code runs motor A forward at power level one until the touch sensor that is connected to Port one is pressed in. It then plays a sound and stops motor A. |
Hints: String this modifier to a motor command to change the speed of the motor to 2. Speed 1 is the slowest, speed 5 is the fastest. | This piece of code runs motor A forward at power level one until the touch sensor that is connected to Port one is pressed in. It then plays a sound and stops motor A. |
Hints: String this modifier to a motor command to change the speed of the motor to 3. Speed 1 is the slowest, speed 5 is the fastest. | This piece of code runs the motor on Port A for 1 second at the default power 5. It then changes the speed of the motor to a power level of 3, waits for 10 seconds, and then stops the motor. |
Hints: String this modifier to a motor command to change the speed of the motor to 4. Speed 1 is the slowest, speed 5 is the fastest. | This piece of code runs motor C forward at a power level of 4, waits for 6 seconds and the stops the motor. |
Hints: String this modifier to a motor command to change the speed of the motor to 5. Speed 1 is the slowest, speed 5 is the fastest. | This piece of code runs motor C forward at a power level of 4, waits for 6 seconds and the stops the motor. |
Hints: Use this modifier to use the value of port 1. | This piece of code fills the Red Container with the value of the light sensor on Port 1. It then plays a sound and displays the value of the red container on the RCX. |
Hints: Use this modifier to use the value of port 2. | This piece of code fills the Red Container with the value of the light sensor on Port 1. It then plays a sound and displays the value of the red container on the RCX. |
Hints: Use this modifier to use the value of port 3. | This piece of code fills the Red Container with the value of the light sensor on Port 1. It then plays a sound and displays the value of the red container on the RCX. |
Hints: Use this modifier to use the value of the red container. | This piece of code fills the Red Container with the value of the touch sensor. A sound is played and the value of the red container is shown on the RCX. If the value of the touch sensor was 1(meaning it was pressed in), the RCX would read 1. |
Hints: Use this modifier to use the value of the blue container. | This piece of code fills the Blue Container with a value of 1. It then ADDs 2 to the blue container. The value of the Blue Container would then be displayed on the RCX as 3. |
Hints: Use this modifier to use the value of the yellow container. | This piece of code fills the Yellow Container with the value of the light sensor. A sound is played and the value of the Yellow Container is shown on the RCX. If the value of the light sensor was 41, the RCX would read 41. |
Hints: Use this modifier to generate a random number from 0-8. | This piece of code will fill the Red Container with a random number from 0-8. The RCX will then play a sound and display the value of the red container on its screen. |
Hints: The value in the container specified (Container #) is used to choose a container and the value in that container is passed out. | This piece of code fills the blue container (also known as container #1) with the value 10 and fills the User 4 container with the value 1. It then displays the value of the container specified in User 4. User 4 contains the value 1 (which indicates the Blue container) and the Blue container contains the value 10 -- hence 10 is displayed for 4 seconds. Then the value of User 4 (which is 1) is displayed for 4 second s. |
Hints: This modifier represents the value of the generic container. 0 corresponds with the Red Container, 1 with the Blue Container, and 2 with the Yellow Container. Containers 3-22 can be used as generic user-defined containers, and 23-47 correspond to task-specific containers. | This piece of code fills the Generic Container with the value of the temperature sensor in Fahrenheit. A sound is played and the value of the Generic Container is shown on the RCX. If the value of the sensor was 75 deg, the RCX would read 75. |
Hints: Use this modifier to use the value of the red timer. | This piece of code zeroes the Red Timer and then waits for ten seconds. The value of the Red Timer is put into the Red Container and then displayed on the RCX. |
Hints: Use this modifier to use the value of the blue timer. | This piece of code zeroes the Red Timer and then waits for ten seconds. The value of the Red Timer is put into the Red Container and then displayed on the RCX. |
Hints: Use this modifier to use the value of the yellow timer. | This piece of code zeroes the Red Timer and then waits for ten seconds. The value of the Red Timer is put into the Red Container and then displayed on the RCX. |
Hints: Use this modifier to use the value of the red timer in thousandths of a second. | This piece of code zeroes the Red Timer and then waits for the touch sensor to be pressed. The value of the Red Timer in thousandths of a second is put into the Blue Container and then displayed on the RCX to 3 decimal places. |
Hints: Use this modifier to use the value of the mail in the mailbox. | This piece of code will fill the Red Container with the value of the mailbox. The RCX will then play a sound and display the value of the red container on its screen. |
Hints: Use this modifier to use the value of the red data set. | This piece of code initializes the light sensor on Port 1, begins data logging in the Red Data Set for 10 points, and then fills the Blue Container with the last value taken in the Red Data Set. The value of the blue container is then displayed on the RCX. |
Hints: Use this modifier to use the value of the blue data set. | This piece of code initializes the light sensor on Port 1, begins data logging in the Red Data Set for 10 points, and then fills the Blue Container with the last value taken in the Red Data Set. The value of the blue container is then displayed on the RCX. |
Hints: Use this modifier to use the value of the yellow data set. | This piece of code initializes the light sensor on Port 1, begins data logging in the Red Data Set for 10 points, and then fills the Blue Container with the last value taken in the Red Data Set. The value of the blue container is then displayed on the RCX. |
Hints: String this modifier to an event definition or monitor command to select the Red Event. | This piece of code sets up a red event that is triggered when the touch sensor is pressed. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the touch sensor is pushed in. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: String this modifier to an event definition or monitor command to select the Blue Event. | This piece of code sets up a blue event that is triggered when the light value goes above the threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the light value goes above the threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: String this modifier to an event definition or monitor command to select the Yellow Event. | This piece of code sets up a yellow event that is triggered when the rotation value goes below the threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the rotation value goes below the threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: String this modifier to an event definition or monitor command to select the Generic Event. | This piece of code sets up a generic event that is triggered when the red container value goes below the threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the red container value goes below the threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: Use this modifier to represent the value of the Red Event. | This piece of code sets up a red event that is triggered when the touch sensor is pressed. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the touch sensor is pushed in. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: Use this modifier to represent the value of the Blue Event. | This piece of code sets up a blue event that is triggered when the light value goes above the threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the light value goes above the threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: Use this modifier to represent the value of the Yellow Event. | This piece of code sets up a yellow event that is triggered when the rotation value goes below the threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the rotation value goes below the threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: Use this modifier to represent the value of the Generic Event. | This piece of code sets up a generic event that is triggered when the red container value goes below the threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the red container value goes below the threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located. |
Hints: Use this modifier to represent the value of the upper threshold of the Red Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red upper threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the upper threshold of the Blue Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red upper threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the upper threshold of the Yellow Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red upper threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the upper threshold of the Generic Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red upper threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the lower threshold of the Red Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red lower threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the lower threshold of the Blue Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red lower threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the lower threshold of the Yellow Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red lower threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the lower threshold of the Generic Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red lower threshold on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the hysteresis of the Red Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red hysteresis on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the hysteresis of the Blue Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red hysteresis on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the hysteresis of the Yellow Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red hysteresis on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the hysteresis of the Generic Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red hysteresis on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the duration of the Red Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red duration on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the duration of the Blue Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red duration on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the duration of the Yellow Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red duration on the RCX LCD for 4 seconds. |
Hints: Use this modifier to represent the value of the duration of the Generic Event. | This piece of code sets the red event to be a normal event with an upper threshold of 60, a lower threshold of 40, duration of 10 seconds, and hysteresis of 2. The program will beep repeatedly until the sensor on channel 1 fulfills the event requirements. It will then display the value of the red duration on the RCX LCD for 4 seconds. |
Hints: The loop iteration is stored in a variable. Use this modifier, as you would use the Red Container, to set or manipulate the loop iteration value. | This piece of code sets a loop to run for 6 iterations. If the touch sensor is pressed the loop iteration is set to zero and therefore the loops stops running. |
Hints: The loop iteration is stored in a variable . Use this modifier, as you would use the Red Container Value, to view the loop iteration value. | This piece of code sets a loop to iterate 4 times. The value of the loop iteration is wired into the Play Sound icon (which plays different sounds depending which number is wired into it). As the loop iteration changes different sounds are played (Play Sound does not have a sound for the 0 state so the sound for the 1 state is played twice). |
Hints: This modifier allows you to access the container where a variable is stored. Type the variable name in the string constant. | This code zeros the NXT rotation sensor on Motor A, then turns motor A on, waits 4 seconds and turns it off. The value of the rotation sensor is placed in a variable container called rotations. This container is divided by 4 and its value displayed on the NXT followed by rot/sec. This will be displayed for 2 seconds before the program ends. |
Hints: This modifier allows you to access the value of a container where a variable is stored. Type the variable name in the string constant. | This code zeros the NXT rotation sensor on Motor A, then turns motor A on, waits 4 seconds and turns it off. The value of the rotation sensor is placed in a variable container called rotations. This container is divided by 4 and its value displayed on the NXT followed by rot/sec. This will be displayed for 2 seconds before the program ends. |