You are on page 1of 9

Parallel Programming

Creating a Multiple Sequence Beam Program


 This is the starting point for all programs.

Starting
Point
 The sequence beam controls the flow of your
program.

 It indicates the sequence in which


Sequence programming blocks will run.
Beam
 Blocks connected to the sequence beam can
be downloaded to the NXT.
 Other blocks in the work area that are not
connected to the sequence beam will not be
Sequence downloaded.
Beam
 You can use the starting point to create
additional sequence beams that will allow
your program to run simultaneous tasks.
Creating a
Parallel
Sequence
Beam
 Create a parallel sequence beam by moving
the mouse pointer over the starting point (or
over the wire stub), and pressing and holding
Creating a your mouse button while you move the mouse
upwards or downwards.
Parallel
Sequence
Beam
 You can also start a new sequence beam later
in your program (i.e., not from the starting
point).
Creating a  Do this by holding down the Shift key and
Parallel moving your mouse pointer straight up or
down from a position on the main sequence
Sequence beam.
Beam
Produce a program that will make
the robot move forward and
Activity
produce a sound when a touch
sensor is pressed.
Form a program that makes
motors B & C move infinitely
Activity
while displaying an image and
producing a sound in a loop.

You might also like