Hi All,
I am trying to use multiple timers in one of my applications. I have tried:
Component.nc
TOSBaseM.NetTimer-> TimerC.Timer[unique("NetTimer")];
TOSBaseM.NetTimer-> TimerC.Timer[unique("DelayTimer")];
Module.nc
interface Timer as NetTimer;
interface Timer as DelayTimer;
With the follow
Hello Everyone, I want to implement a program that has multiple timers. Just to see how it works i made a sample program. I can compile and run it but only the event in Timer1 is executed. Any ideas why ??Thanks,Bhushan
Yahoo! Sports Fantasy Football 06 - Go with the leader.
Start your league
Hi,
unique() only returns a unique value when the strings in parenthesis are
identical, therefore you should use the same unique string for each timer.
You are trying to wire the timers to the same interface (NetTimer)
Try:
TOSBaseM.NetTimer-> TimerC.Timer[unique("NetTimer")];
TOSBaseM.DelayTim
Not quite. You are NOT allowed to pick an arbitrary string, because
the TimerC module uses uniqueCount("Timer") to determine its user
count many users it has. Therefore, you MUST use
TOSBaseM.NetTimer-> TimerC.Timer[unique("Timer")];
TOSBaseM.DelayTimer-> TimerC.Timer[unique("Timer")];
Greg
As soon as StdControl.init() reaches the return statement, it stops the
execution of the program.
You're halting the program after executing Timer1.
Save the return keyword for the last Timer call.
Sankar.
On Thu, 22 Jun 2006 22:09:32 -0500, bhushan bhatt
<[EMAIL PROTECTED]> wrote:
Hell
Oops.
I meant function. You stop the flow of the function as soon as you hit the
return keyword.
Sankar.
On Fri, 23 Jun 2006 00:24:00 -0500, Sankar Gorthi
<[EMAIL PROTECTED]> wrote:
As soon as StdControl.init() reaches the return statement, it stops the
execution of the program.
You'