LEGO Engineering

| | | | | | | |
How do I use container.ctl?


23rd of April, 2010

(1 )
100% thumbs up 0% thumbs down

There is, of course, always the case where it is useful to use more than the standard three containers. In this case it is useful to define your own container using container.ctl.  All of the containers have their own designation, starting with red they number 0, 1, 2, ... and so on.  This is where container.ctl comes into play; it turns a general container into a specific user defined container.  Containers one through three designated c0-c2 are the red, blue and yellow containers.  The following is the same as filling the red container with the default value:

containers_ctl_pic_1.jpg

Spots three through twenty-two are all reserved for user defined containers which are defined the same way with a general container and a container.ctl wired in. The following code sets the container user3 equal to five:

containers_ctl_pic_2.jpg

Here is a table with example values:

container

  name

container value

container's container value

red

c0

1

2

blue

c1

2

3

yellow

c2

3

4

user1

c3

4

5

user2

c4

5

6

user3

c5

6

7

user4

c6

7

8

user5

c7

8

9

user6

c8

9

10

user7

c9

10

11

user8

c10

11

12

user9

c11

12

13

user10

c12

13

14

user11

c13

14

15

user12

c14

15

16

user13

c15

16

17

user14

c16

17

18

user15

c17

18

19

user16

c18

19

20

user17

c19

20

21

user18

c20

21

22

user19

c21

22

23

user20

c22

23

 

user21

c23

24

 

user22

c24

25

 






AG
ses

   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.