|
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:
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
|
|
|
|