To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.robolabOpen lugnet.robotics.rcx.robolab in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / ROBOLAB / 334
333  |  335
Subject: 
Re: Understanding Event Register Container
Newsgroups: 
lugnet.robotics.rcx.robolab
Date: 
Fri, 27 Aug 2004 18:43:48 GMT
Viewed: 
8951 times
  
In lugnet.robotics.rcx.robolab, Edwin Pilobello wrote:
Below is text output of a Robolab 2.5 program using two concurrent events.  What
exactly does "Variable 0 = 0" mean?  It's right under the EventLand label.  This
line represent the default Red Container being assigned the Event Register
Container.

Begin of Task 0
Set sensor 0 to type Light
Set sensor 0 to mode Raw - slope: 4
Set sensor 2 to type Light
Set sensor 2 to mode Raw - slope: 4
Wait for Constant  100
sete 0,0,10
set 28,0,2,10
set 29,0,2,35
set 30,0,2,2
set 31,0,2,1
sete 2,2,10
set 28,2,2,10
set 29,2,2,35
set 30,2,2,2
set 31,2,2,1
Label0:
Set power of motors A to Constant  7
Set direction to A Forward
Turn motors A On
Set power of motors C to Constant  7
Set direction to C Forward
Turn motors C On
monel 2,5,EventLand
Jump Label2

EventLand:
Variable 0 =  0
If Constant  3 = Variable  0  then Label1002
Set power of motors A to Constant  7
Set direction to A Backward
Turn motors A On
Wait for Constant  15
Jump Label1005
Label1002:
If Constant  2 = Variable  0  then Label1003
Set power of motors C to Constant  7
Set direction to C Backward
Turn motors C On
Wait for Constant  15
Jump Label1004
Label1003:
Label1004:
Label1005:
Label2:
Jump Label0
endt

Are you zeroing out the container in this step? I'm not used to reading a
robolab program like this. How did you output the text? I would be interested in
see the vi. Could you post it or send it to me?

James
http://robotics.megagiant.com



Message has 1 Reply:
  Re: Understanding Event Register Container
 
(...) Container defaulted to the Red Container. The actual question was raised by one of my students. He couldn't understand why Variable 0 was assigned a 0. I suspect that the 0 means "the event register". The designation is sure confusing. To (...) (20 years ago, 27-Aug-04, to lugnet.robotics.rcx.robolab)

Message is in Reply To:
  Understanding Event Register Container
 
Below is text output of a Robolab 2.5 program using two concurrent events. What exactly does "Variable 0 = 0" mean? It's right under the EventLand label. This line represent the default Red Container being assigned the Event Register Container. (...) (20 years ago, 27-Aug-04, to lugnet.robotics.rcx.robolab)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR