-
timer tick count...
I am using (in VB6) the Timer1 function to read data in at 10 seconds interval. How do I continue to display the seconds in a text box before the 10 seconds interval is reached? Example:
1,2,3,4,5,6,7,8,9,10 --> collects data
11,12,13,14,15,16,17,18,19,20 --> collects data
21,22,23,24,25,26,27,28,29,30 --> collects data
and so on...
thanks.
-
Re: timer tick count...
A few ways here are two.
1. Use a counter and set your timer interval to 1 second. Display your seconds & increment counter. When the counter hits 10, reset it and collect your data.
2. Use a 2nd timer
Note that if your data collection takes more than a second, the timer(s) may not update your seconds display as desired. Timers are very low priority and are generally called when no other actions in your program are pending.
-
Re: timer tick count...
Hi. I just added another timer. so far so good. Thanks for your help.