View Single Post
  #5   Spotlight this post!  
Unread 21-02-2010, 19:15
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Code for Encoder isn't working

Quote:
Originally Posted by Michael Fadaie View Post
Well, when I start it all it says is watchdog not fed
When running a program on the cRIO, you need to "feed" the watchdog timer periodically, otherwise the cRIO assumes your program has hung up somewhere. Since you code includes a loop in the drive part of your program (where the watchdog is usually fed) that will repeat longer for a second or so (unless you click the stop button) without feeding the watchdog, you'll get the watchdog not fed error. Either rework your code so the loop only runs a certain number of times (or, alternatively, remove the loop), or add a watchdog feed to the loop (for an example of a watchdog feed, see the teleop.vi in the framework).

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote