Sequence Beam
| Introduction | ||
| 1. The sequence beam controls the flow of your program. It indicates the
sequence in which programming blocks will run. 2. Blocks connected to the sequence beam can be downloaded to the NXT. 3. Other blocks in the work area that are not connected to the sequence beam will not be downloaded. |
![]() |
|
| Example Utilization | ||
| 1. You can use the starting point to create additional sequence
beams 2. This will allow your program to run simultaneous tasks. 3. For example, suppose you have an arm that sits on top of the robot. 4. You might have the main sequence beam in your program controlling the robot’s forward motion. 5. You can then have a second sequence beam controlling the arm on top of the robot. |
![]() |
|
| How to Create Example 1 | ||
| 1. Create a parallel sequence beam by moving the mouse pointer over the
starting point (or over the wire stub), and pressing and holding your mouse button while you move the mouse upwards or downwards. 2. This will draw out a sequence beam that can be connected to programming blocks. 3. When you download and run the program, the blocks on both sequence beams will run in parallel. 4. You can use data wires (covered later) to have the blocks on both sequence beams communicate with each other. |
![]() |
|
| How to Create Example 2 | ||
|
1. You can also start a new sequence beam later in your program (i.e., not from the starting point).
2. Do this by holding down the Shift key and moving your mouse pointer straight up or down from a position on the main sequence beam. |
![]() |
Rattle Snake Program
Note that the sequence beam portion on the left has been clipped
