LEGOテクニック

LEGO 【MINDSTORMS】EV3

Switch Block

Switch Block - Overview - 





The Switch block is a container that can contain two or more sequences of programming blocks. Each sequence is called a Case.
A test at the beginning of the Switch determines which Case will run. Only one Case will run each time the Switch is executed.
 
The Switch test shown here can decide which Case to run based on a sensor data value or a value from a Data Wire.
After one Case is selected and run, the program continues with any blocks after the Switch.
 
*A Switch does not wait for a sensor data value or data wire to reach a certain value. The test is run as soon as the Switch block starts, and one of the Cases is chosen and run immediately after the test.

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA