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 / 354
353  |  355
Subject: 
Re: questions on events
Newsgroups: 
lugnet.robotics.rcx.robolab, lugnet.robotics.rcx.nqc
Date: 
Sun, 2 Jan 2005 23:15:22 GMT
Viewed: 
12682 times
  
In lugnet.robotics.rcx.robolab, Elizabeth Mabrey wrote:

Are events stackable?

   See previous post for the "I-don't-actually-do-Robolab" disclaimer, but,
since Robolab & NQC both work on the same firmware... You can monitor multiple
events, but only in *different* tasks. In other words, (to my knowledge) you can
not "nest" event monitors. But if you use multipl tasks, this should work OK...

e.g. I have 2 different light sensor events set to
watch for value higher than 42, yellow & blue.  Let
say both sensors read 45 at the same time,  RCX returns
only one event being invoked.

   Are you certain? Or is the code from one event watcher overriding anythign
happening in the other? I know the firmware doesn't "loose" events this way, but
I'm not sure of Robolab itself.

   Asking as someone who became terribly frustrated with both the nature of
Robolab as well as the documentation (*is* there any?), does Robolab allow
access control? In NQC this is implemented using the "acquire" statement, and
it's rather handy (for example, you *can* nest and "acquire" in an event
monitor, or visa-versa, allowing you with some trickery to almost have a "nested
events" type situation, using an external task to trigger the acess control
statement).
   I never did figure out even the simple Robolab multi-task structures, like
being able to easily kill a task (does Robolab allow naming of tasks? Or are you
just stuck with the task number as assigned, and how do you find out what a
task's ID number is anyway?).

--
Brian Davis
Robolab turncoat



Message has 1 Reply:
  RE: questions on events
 
(...) Hmm..., notice that the start monitoring icon allows to watch for multiple events within the same task. If each task can only monitor a single event, that feature being there does not quite make sense. (...) This is why I suspect the "event" (...) (20 years ago, 3-Jan-05, to lugnet.robotics.rcx.robolab, lugnet.robotics.rcx.nqc)

Message is in Reply To:
  questions on events
 
Are events stackable? Or it works more like "signal()", e.g. in C? e.g. I have 2 different light sensor events set to watch for value higher than 42, yellow & blue. Let say both sensors read 45 at the same time, RCX returns only one event being (...) (20 years ago, 2-Jan-05, to lugnet.robotics.rcx.robolab, lugnet.robotics.rcx.nqc)

5 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