On Aug 19, 2006, at 11:29 AM, James McCarthy wrote:

Sure, and I see I have made a mistake in my first description .. I meant to say 'mode' not 'period'

I assumed that. :)

Timer1
   Timer2.Mode = 0
       Doing some code now which may be longer than the period of 2,
       but it'll just have to wait
   Timer2.Mode = 2
Timer2
   Timer1.Mode = 0
       Doing some code now which may be longer than the period of 1,
       but it'll just have to wait
   Timer1.Mode = 2

How long it gets tied up in each timer isn't so important, but there may be as many as 15+ and the distribution of the time amongst them (in other words the ratio of their periods) is what matters to me, that and to ensure that only ever one fires at a time. Oh actually I see I haven't quite thought this through .. apologies - I don't want any timer to fire
(or re-fire) while one of them is busy.

That won't happen because of the nature of a timer. Each will automatically wait for the other to execute their action event.

One problem I see is that you are confused about how they actually work. They are not the same as a clock that will operate at a fixed rate but more like a waiter for other events to finish. When all other events are finished, they will wait their period and then execute their action event. If in Mode 2, and nothing else interrupts them, they will re-fire at the end of their period.

Having so many (15+) Multiple mode timers will create chaos and you will probably have little control over which order they will fire. At least, this is how I see it. This is especially true if you turn them all off and then on again. It may occur in the order you re-enable them. I, myself, would never attempt to use more than one Multiple timer.


You still haven't explained what you are trying to accomplish by using these timers. There is probably a much better way.

Hrm Ok I'll research the archives and/or forums ahead of time before posting in future !

This one's pretty unique so you may not find much said about it.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to