|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Timer vi's and Watchdog
I are trying to use timing in our autonomous code (go forward for 3 seconds, turn right... etc.). How do you do this in LabView? I have tried using the "wait" vi but the watchdog has thwarted my attempts.
|
|
#2
|
|||||
|
|||||
|
Re: Timer vi's and Watchdog
As I mentioned in your other thread, the VI you are looking for is called "Delay and Feed.VI". It can be found by going to WPI Robotics Library -> Utilities -> Watchdog. The inputs it takes are the Watchdog Device Reference, a time to delay (in seconds), a feed time (in seconds) and an error input. The outputs are the Watchdog Device Reference and an error output.
This VI will execute for the delay time feeding the watchdog at the end of each period "feed time" seconds long. Example: Delay time - 5 seconds Feed Time - .1 seconds This would execute for 5 seconds, feeding the Watchdog every .1 seconds during that time. Make sure that the feed time you set is faster than the Watchdog Expiration. The default Watchdog Expiration is .5 seconds. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic VI's ???? | chsrobotics3283 | NI LabVIEW | 8 | 22-01-2010 00:00 |
| EasyC Timer and Gyro questions | TubaMorg | Programming | 11 | 09-02-2006 21:19 |
| Timer Interrupt 1 and the IR tracker | Mr. Lim | Programming | 0 | 25-01-2004 22:53 |
| EDU Interrupt and Timer Template Code | Kevin Watson | Programming | 8 | 22-12-2003 14:11 |
| EDU Interrupt and Timer Template Code | Kevin Watson | Robotics Education and Curriculum | 2 | 14-12-2003 16:28 |