![]() |
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.
|
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. |
| All times are GMT -5. The time now is 02:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi