|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
A simple accurate timer
What is the easiest and most accurate delay function or a timer in the user routines_fast.
P.S. One more question... Are there any rules against the use of last year's(2006 kevin's) program??? Thanks Ben Russell ![]() |
|
#2
|
|||||
|
|||||
|
Re: A simple accurate timer
If you need an accurate timer, you need to use one of TIMER0-4. IFI has examples on their website under White Papers. They're easier than you might think. There is otherwise no way to accuratly time things in the Process_Data_From_Local_IO() function as it simply runs as fast as it runs. If you're talking about timing things in the User_Autonomous() function, you can put a simple counter inside the slow loop and it will increment once every 26.2 ms. So that's a pretty accurate and simple, if slow, timer.
Last edited by Kevin Sevcik : 23-01-2007 at 18:34. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Timer questions | Rick TYler | Programming | 3 | 12-02-2006 19:24 |
| Gyro not accurate - Problem | naor52 | Programming | 15 | 27-01-2006 16:50 |
| Divisions at Atlanta - Accurate Spreadsheet | Bharat Nain | Championship Event | 13 | 12-04-2004 10:21 |
| timer | omega | Programming | 3 | 30-03-2004 18:52 |