RTC Forums

Subscription => Support => Topic started by: ISIGest on May 07, 2015, 03:42:30 PM



Title: TRtcTimer and wait interval
Post by: ISIGest on May 07, 2015, 03:42:30 PM
Hi Danijel, I use TRtcTimer in my application but I need to change after first event tick the timer interval.
How can I do that?


Title: Re: TRtcTimer and wait interval
Post by: ISIGest on May 07, 2015, 03:54:17 PM
I try to re-enable the timer with another Wait param....this is correct?


Title: Re: TRtcTimer and wait interval
Post by: D.Tkalcec (RTC) on May 07, 2015, 03:57:11 PM
The same way you start the timer, by using the Enable class procedure.

Enable class procedure will reset the timer and set a new timer interval. If you need to reset the timer without changing the interval, use the Reset class procedure. Disable class procedure disables the timer (it won't trigger anymore until enabled again), while leaving the TRtcTimer instance in tact. And the Stop class procedure stops the timer and destroys the TRtcTimer instance.

PS. This is also explained in the Help file and in the source code (class interface comments).

Best Regards,
Danijel Tkalcec