RCX Events

Icons and Hints Examples
Hints: Use this command to begin watching for an event. This command must be used in every event program. 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: This command stops the program from watching for events. This piece of code sets up a blue event that is triggered when the touch sensor is touched and released. 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 and released. This will force the program out of the jump sequence and make it land where the Event Landing is located. The program then stops monitoring for events because of the Stop Event Monitoring icon.
Hints: This command marks the place where your program will jump to when an event is triggered. Every event goes to the same land. If you are using more than one event, you will have to use the Event Register Container to determine what event was triggered. 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: This command sets up an event to occur when the touch sensor is pressed. The default waits for a touch sensor pressed connected to port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. 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: This command sets up an event to occur when the touch sensor is pressed and released. The default waits for a touch sensor pressed connected to port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the touch sensor is touched and released. 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 and released. This will force the program out of the jump sequence and make it land where the Event Landing is located.
Hints: This command sets up an event to occur when the value of the light sensor goes above the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a light reading higher than 55 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. 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: This command sets up an event to occur when the value of the light sensor goes below the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a light equal to or below 55 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the light 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 light 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: This command sets up an event to occur when the value of the temperature sensor goes above the threshold in Celsius. The threshold can be modified with an event modifier. The default is a red event that waits for a temperature reading above 30(C) from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the temperature value goes above the threshold in Celsius. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the temperature 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: This command sets up an event to occur when the value of the temperature sensor goes above the threshold in Fahrenheit. The threshold can be modified with an event modifier. The default is a red event that waits for a temperature reading above 80(F) from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the temperature value goes above the threshold in Fahrenheit. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the temperature 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: This command sets up an event to occur when the value of the temperature sensor goes below the threshold in Celsius. The threshold can be modified with an event modifier. The default is a red event that waits for a temperature reading below 30(C) from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the temperature value goes below the threshold in Celsius. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the temperature 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: This command sets up an event to occur when the value of the temperature sensor goes below the threshold in Fahrenheit. The threshold can be modified with an event modifier. The default is a red event that waits for a temperature reading below 80(F) from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the temperature value goes below the threshold in Fahrenheit. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the temperature 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: This command sets up an event to occur when the value of the mail equals 10. The default is a red event that waits for the mail to equal 10. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the mail value being sent to the RCX equals that of the value of the mailbox. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the value of the mailbox equals the mail the RCX is receiving. This will force the program out of the jump sequence and make it land where the Event Landing is located.
Hints: This command sets up an event to be triggered when the value of the Event Source goes below the lower threshold. This command should be followed by the Define Setting Command which is where you define your lower and upper thresholds. Event Sources can come from sensor values from ports 1,2 and 3, container values, mail values, and timer values. If using a sensor value, the sensor should be zeroed prior to setting up the event. This piece of code defines the thresholds for the Enter Low Event icon. It then sets up the red Enter Low Event and begins monitoring. The program will play a sound over and over again until the value of the mailbox goes below 5. This event will force the program to the place where the Event Landing icon is located. Make sure you define a lower, upper, or normal threshold event before you set them up.
Hints: This command sets up an event to be triggered when the value of the Event Source is between the lower and upper threshold. This command should be followed by the Define Setting Command which is where you define your lower and upper thresholds. Event Sources can come from sensor values from ports 1,2 and 3, container values, mail values, and timer values. If using a sensor value, the sensor should be zeroed prior to setting up the event. This piece of code defines the thresholds for the Enter Low Event icon. It then sets up the red Enter Low Event and begins monitoring. The program will play a sound over and over again until the value of the mailbox goes above 10 or below 5. This event will force the program to the place where the Event Landing icon is located. Make sure you define a lower, upper, or normal threshold event before you set them up.
Hints: This command sets up an event to be triggered when the value of the Event Source is above the upper threshold. This command should be followed by the Define Setting Command which is where you define your lower and upper thresholds. Event Sources can come from sensor values from ports 1,2 and 3, container values, mail values, and timer values. If using a sensor value, the sensor should be zeroed prior to setting up the event. This piece of code defines the thresholds for the Enter Low Event icon. It then sets up the red Enter Low Event and begins monitoring. The program will play a sound over and over again until the value of the mailbox goes above 10. This event will force the program to the place where the Event Landing icon is located. Make sure you define a lower, upper, or normal threshold event before you set them up.
Hints: This command resets monitoring for an event. The default is to reset the red event with the value of port 1. Event Sources can come from sensor values from ports 1,2,3, container values, mail values, and timer values. 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. The program then resets all events and begins monitoring for the red event to happen again. A different sound will keep playing until the touch sensor is pushed again.
Hints: This command forces an event to be triggered. It basically overrides the system in order to make an event occur. String in the yellow, blue, or red event modifier in order to force that particular event. This piece of code sets up a blue event that is triggered when the touch sensor is touched and released. The Monitor Event icon begins monitoring for such an event to occur. In this case, the Force Event icon will "trick" the program into thinking that the event has really happened(even thought the touch sensor was never pressed) and force it out of the jump loop.
Hints: This command sets up an event to occur when the number of clicks equals the clicks threshold. The default is a red event that waits for 10 clicks on port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the number of clicks equals the clicks threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the number of clicks equals the clicks threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located.
Hints: This command sets up an event to occur when the number of touch and releases equals the touch and release (TR) threshold. The default is a red event that waits for 10 touch and releases on port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the number of touch and releases of the touch sensor equals the clicks threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the number of touch and releases of the touch sensor equals the clicks threshold. This will force the program out of the jump sequence and make it land where the Event Landing is located.
Hints: This command sets up an event to occur when the value of the rotation sensor goes above the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a rotation reading of 16 (rotation sensor is in 16ths of a rotation) from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a blue event that is triggered when the rotation 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 rotation 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: This command sets up an event to occur when the value of the rotation sensor goes below the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a rotation reading equal to or below 16 (rotation sensor is in 16ths of a rotation) from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. 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: This command sets up an event to occur when the NXT touch sensor is pressed. The default waits for a touch sensor pressed connected to port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. 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: This command sets up an event to occur when the NXT touch sensor is pressed and released. The default waits for a touch sensor pressed connected to port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the touch sensor is touched and released. 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 and released. This will force the program out of the jump sequence and make it land where the Event Landing is located.
Hints: This command sets up an event to occur when the number of NXT clicks equals the clicks threshold. The default is a red event that waits for 10 clicks on port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the number of clicks equals the clicks threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the number of clicks equals the clicks threshold. This will force the program out of the jump sequence and make it land where the event landing is located. Motor A will then go forward for 2 seconds and then stop.
Hints: This command sets up an event to occur when the number of NXT touch and releases equals the touch and release (TR) threshold. The default is a red event that waits for 10 touch and releases on port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the number of touch and releases of the touch sensor equals the clicks threshold. The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the number of touch and releases of the touch sensor equals the clicks threshold. This will force the program out of the jump sequence and make it land where the event landing is located. Motor A will then go forward for 2 seconds and then stop.
Hints: This command sets up an event to occur when the value of the NXT light sensor goes above the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a light reading higher than 55 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the value of the light sensor goes above 55 (the light threshold). The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the value of the light sensor goes above 55. This will force the program out of the jump sequence and make it land where the event landing is located. Motor A will then go forward for 2 seconds and then stop.
Hints: This command sets up an event to occur when the value of the NXT light sensor goes below the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a light equal to or below 55 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the value of the light sensor goes below 10 (the light threshold). The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the value of the light sensor goes below 10. This will force the program out of the jump sequence and make it land where the event landing is located. Motor A will then go forward for 2 seconds and then stop.
Hints: This command sets up an event to occur when the value of the NXT sound sensor goes above the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a sound reading higher than 55 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the value of the volume sensor goes above 40 (the sound threshold). The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the value of the light sensor goes above 40. This will force the program out of the jump sequence and make it land where the Event Landing is located.
Hints: This command sets up an event to occur when the value of the NXT sound sensor goes below the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a sound equal to or below 55 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the value of the light sensor goes below 40 (the sound threshold). The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the value of the light sensor goes below 40. This will force the program out of the jump sequence and make it land where the event landing is located. Motor A will then go forward for 2 seconds and then stop.
Hints: This command sets up an event to occur when the value of the NXT distance sensor goes above the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a distance reading higher than 16 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the value of the distance sensor goes above 15 (the distance threshold). The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the value of the distance sensor goes above 15. This will force the program out of the jump sequence and make it land where the event landing is located. Motor A will then go forward for 2 seconds and then stop.
Hints: This command sets up an event to occur when the value of the NXT distance sensor goes below the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a distance equal to or below 16 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the value of the light sensor goes below 15 (the distance threshold). The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the value of the distance sensor goes below 15. This will force the program out of the jump sequence and make it land where the event landing is located. Motor A will then go forward for 2 seconds and then stop.
Hints: This command sets up an event to occur when the value of the container goes above the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a red container value greater than 1 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a generic event that is triggered when the red container 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 red container 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: This command sets up an event to occur when the value of the container goes below the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a red container value equal to or less than 1 from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. 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: This command sets up an event to occur when the value of the sensor goes above the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a sensor value greater than 2V from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a generic event that is triggered when the generic sensor 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 generic sensor 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: This command sets up an event to occur when the value of the sensor goes below the threshold. The threshold can be modified with an event modifier. The default is a red event that waits for a sensor value equal to or less than 2V from port one. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source (source of information), such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the generic sensor 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 generic sensor 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: This command sets up an event to occur when the value of the timer goes above the threshold. The default is a red event that waits for a timer value of one second. This command must appear before the Begin Monitoring command in your program. You can string in a yellow, blue, red, or generic modifier to have several events. You can also string in an event source, source of information, such as sensor values of ports 1, 2, and 3, container values, or mail values. This piece of code sets up a red event that is triggered when the value of the red timer goes above the threshold (100 tenths of seconds). The Monitor Event icon begins monitoring for such an event to occur. A sound will be played over and over again until the red timer 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: This command is used for defining the thresholds for the Enter Low, Normal, and High Events commands. If a certain specification is not being used, it will be ignored. For example, the upper threshold will be ignored if you only set up an Enter Low Event command. You can string in an event modifier to determine what event you are dealing with. Also, you can string in a duration modifier which sets a limit of the length of time a condition must be occurring to count as an event. This piece of code defines the thresholds for the Enter Low Event icon. It then sets up the red Enter Low Event and begins monitoring. The program will play a sound over and over again until the value of the mailbox goes above 10 or below 5. This event will force the program to the place where the Event Landing icon is located. Make sure you define a lower, upper, or normal threshold event before you set them up.
Hints: This command clears ALL events. Tasks that are actively monitoring or awaiting for events are not alerted to this fact. This piece of code empties the data buffer, zeros the mailbox, and clears all events currently configured on the RCX.