Thanks for quick reply - I have already tried your suggestion.
Just thought there might be an extra Timer function somewhere that has a parameter to pass the number of repeats I wanted
 
I guess I have to stick with the 'counters' option.
 
Thanks again,
Stephanie
 

 
----- Original Message ----
From: Sankar Gorthi <[EMAIL PROTECTED]>
To: Stephania Kigadye <[EMAIL PROTECTED]>; [email protected]
Sent: Friday, 16 June, 2006 6:23:48 PM
Subject: Re: [Tinyos-help] timers

short answer, yes.

longer answer, you could use a module scope variable to act as a counter  
and increment the value every time your timer fires and then check for  
your condition. Timer1.stop() should do the trick.

the tutorials cover how to add multiple timers in a module.

sankar.

On Fri, 16 Jun 2006 11:10:04 -0500, Stephania Kigadye <[EMAIL PROTECTED]>  
wrote:

> Hi all,
> I am trying to set up timers in such a way that - Timer1 fires in repeat  
> mode, but after a number of repeats, it stops and Timer2 is fired (also  
> in repeat mode) within the Timer1 routine - this one runs a number of  
> repeats and stops, and the Timer1 continues.
> Is this possible to implement using the Timer component?
> any ideas appreciated...
> thanks,
> Stephanie



--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to