Name That
Block!
1.
2.
3.
4.
5.
Variable
Variable Block
It is used to store data for later use and
calls the data when needed.
A variable block can also be read by
other programming block using data
wires.
It can also change the data inside it.
Practice 1: Creating Variables
1. On Lego Mindstorms NXT 2.0, click Edit then click Define
Variable
2. Modify the properties of variable created.
3. Drag and drop a variable Block from Data palette to Work
Area
4. Decide if the variable is going to store or deliver information
by choosing either Read or Write options.
5. If you need to modify the variable created, simply click Edit
then click Define Variable.
Answer the following.
2. What are the types of Action that can be used on a Variable
Block?
a. Read and Write
b. Read
c. True
d. True and False
Answer the following.
3. What is the symbol for the data type Text on a Variable
Block Data Hub?
a. #
b. T
c. Txt
d. @
Answer the following.
4. Can a Variable Block transfer Data to another Block?
a. Yes, by modifying its properties
b. Yes, by connecting it through data hub
c. Yes, by placing it on sequence beam
d. No
Answer the following.
5. Which of the following is the sensor used to count the
Rotation of the Motor?
a. Revolution Sensor
b. Degree Sensor
c. Rotation Sensor
d. Motor Rotation