To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1045
1044  |  1046
Subject: 
"Speed" of control statments
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Fri, 30 Mar 2001 15:02:28 GMT
Viewed: 
2028 times
  
I have been currently working on a control program that necessitates the
highest reaction time possible.  Does anyone what the fastest control
statements would be using NQC (making the outputs react to sensor values as
fast as possible)?  i.e. Which is faster a series of if...else, event
monitoring or switch statements?

Thanks in advance for the help, I realize this is a more general programming
question, but I am not a programmer (An old college PASCAL course and NQC is
as far as I go).



Message has 1 Reply:
  Re: "Speed" of control statments
 
Actually, its not a general programming question. Efficiency of something like events is heavily dependent on the operating system (in this case the Lego firmware). Efficiency of "if" vs. "switch" can be very dependent on the compiler and the CPU (...) (23 years ago, 31-Mar-01, to lugnet.robotics.rcx.nqc)

2 Messages in This Thread:

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

Custom Search

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