Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   WatchDog Timeout (http://www.chiefdelphi.com/forums/showthread.php?t=74948)

popo308 18-02-2009 23:04

WatchDog Timeout
 
Our auto code keeps auto disabling because the watchdog is timing out

We are using LabView and we are feeding it but for some reason it is still disabling auto mode after about 1-2 seconds

Can anyone post a pic or explain how they set up there watchdog?


Thanks!

Mark McLeod 19-02-2009 10:39

Re: WatchDog Timeout
 
Use the default autonomous program as a guide.

It does, however, fail to feed the WatchDog immediately, so running it as is will get you the disabled blink right away.

The True/False input to the whole thing needs to be set to True for it to work.

You'll see the WatchDog is feed inside the loop that runs for 5 seconds, after which it leaves and stops feeding the WatchDog, so the blinky light will show up after 5 seconds.

Shivang1923 20-02-2009 13:27

Re: WatchDog Timeout
 
try using highlight execution to watch what happens with the code. From there, you can make a decision as to where to put the watchdog so the auton doesn't time out.

The way I did it is like the example, but I made subVI's (as I used the same block of code over and over again) and forced a chain through device refrences. You can also try flat sequence structures if you don't want to go through the trouble of the subVI's

DhavalVashi 22-02-2009 22:04

Re: WatchDog Timeout
 
if you have a lot of case structures, and you think ur code is taking too long to run within that particular case, then feed it in that case again (idk if thats allowed tho but it would probably work)


All times are GMT -5. The time now is 20:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi