Stop program block in EV3-G Pro Preview

Probably you've noticed that in the dark-blue section with blocks there is one block, that looks like a complete opposite to the block for starting the program. What is this block doing? How should we use it?

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #1259
  • 08 May 2019

The block is quite simple in what it does. It stops the program. These block has no settings. 

When and how could we use this block? The main purpose of this block is make the program stop when it can not stop on its own. For example, it could be used in an endless loop that should stop when a condition occurs. The same applies for all the other blocks that could block the program. Further more if the robot makes a mistake and goes in a wrong direction, we could use this block to stop the whole program. 

As the block is used to stop the program, there could be nothing after the block. Because of this there is a peculiarity when the stop block is used with a loop or a Switch Block - we should put a parallel thread and connect it with the block. 

content picture

 

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Level D2. "Seafaring". Robotics with LEGO
  • 24
  • 2:49
  • 107
Image for Lesson 4 - Yacht
  • 4
  • 5
  • 8
  • 3d_rotation 1
Image for Robotics with LEGO - Level 2.5 - Maritime Journey
  • 42
  • 3:52
  • 133