View Single Post
  #8   Spotlight this post!  
Unread 03-04-2010, 13:31
Austin3324 Austin3324 is offline
Lead Programmer Team 3324
FRC #3324 (Metrobots)
Team Role: Programmer
 
Join Date: Apr 2010
Rookie Year: 2008
Location: Columbus, Ohio
Posts: 10
Austin3324 is an unknown quantity at this point
Re: Feeding the Watchdog in "Periodic Tasks"

Well, I must thank you all for your quick responses.

So, the general consensus seems to be to not put watchdog into the Periodic Tasks vi or to just "disable" it all together. Considered what you all said Watchdog does, I would prefer not to disable it.

We currently have watchdog working fine in our Teleop vi and it's just been a problem with getting watchdog to work in the Autonomous Independent vi. The way I see it is to throw in a second while loop, separate from the main loop, and just tell that to feed the watchdog something like every 20 ms. (The reason it has to be separate is because the main loop will only run anywhere from 1-3 times before it exits.)

If you need it, I've included a copy of the vi that currently houses my code for the Autonomous Independent vi.

Thanks again for your responses.

Austin
Attached Files
File Type: vi autonomous-test.vi (20.9 KB, 12 views)
Reply With Quote