|
-
Aug 12th, 2010, 08:21 AM
#1
Thread Starter
Addicted Member
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.
-
Aug 12th, 2010, 08:29 AM
#2
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.
Last edited by LaVolpe; Aug 12th, 2010 at 08:34 AM.
-
Aug 12th, 2010, 08:38 AM
#3
Thread Starter
Addicted Member
Re: timer tick count...
Hi. I just added another timer. so far so good. Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|