To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 13026
13025  |  13027
Subject: 
Re: RCX respond time
Newsgroups: 
lugnet.robotics
Date: 
Thu, 2 Nov 2000 21:35:55 GMT
Viewed: 
921 times
  
"Eelco Kooiker" <eelco@kooiker.demon.nl> schreef in bericht
news:G3EsvE.BI1@lugnet.com...
I have some questions about the RCX.


When I make a very simple program: Turn on motor A when Touchsensor 1 is
pressed. How long takes it when I press the touchsensor before the motor • is
turning? 1 clockcylce of the CPU?

When I make a program where e.g. 3 tasks run at the same time. Are they
REALY running at the same time (multitasking) or are they running after • each
other (multi-thredding?). Does this mean that when you make a program with • 3
running tasks the respondtime of the RCX will be 3 times longer? (3
clockcycles?).


Regards,


Eelco Kooiker
http://www.kooiker.demon.nl/eelco/

Eelco,

The "Introduction to the legOS kernel" from Stig Nielson based on the
excelent work of Kekoa Proudfoot (Tolkien ?)
speaks about 10mS clicks in with a task is activated, so I presume that
there is always a delay of 10mS.
The load of multiple tasks on the system depends on the purpose of the tasks
, e.g. are you using a timer or loops inputchecks (AD-conversion costs
relatively a lot of time, a wait command gives very little systemload
because in the waiting time the system can do something else. But a
repeative check of a input give relatively a bigger system load, the mesage
system also because its realtime.
The fastest way to do things on the RCX is at the moment legOS because there
is almost no overhead from the Kernel.
The firmware of LEGO it self , is a command/byte interperter witch gives
alot of overhead something as Windows on a PC, DOS was a lot faster but
simpler.

Greetings

Rik Bos

"luiheid is des meesters oorkussen"



Message is in Reply To:
  RCX respond time
 
I have some questions about the RCX. When I make a very simple program: Turn on motor A when Touchsensor 1 is pressed. How long takes it when I press the touchsensor before the motor is turning? 1 clockcylce of the CPU? When I make a program where (...) (24 years ago, 2-Nov-00, to lugnet.robotics)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
22 hours ago
Custom Search

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