RTC Forums
May 07, 2024, 10:16:41 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: TRtcTimer and wait interval  (Read 3198 times)
ISIGest
RTC Expired
*
Posts: 121


« 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?
Logged
ISIGest
RTC Expired
*
Posts: 121


« Reply #1 on: May 07, 2015, 03:54:17 PM »

I try to re-enable the timer with another Wait param....this is correct?
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #2 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 17 queries.