Log in

View Full Version : Watchdog


kgzak
07-03-2010, 20:06
We keep having Watchdog issues. We only have one Watchdog, between Autonomous and Teleop, but it causes us to not be able to run anymore. We have tried everything to fix it and still no luck. We ran the sample code and still we get a watchdog. We have swapped out the cRIO, still no luck. When we are running in the pit or on the practice field it does no affect us but when we go out on the actual field we get the watchdog and than we can't move anymore. Anyone have the same problem and figured out a way to resolve it? We had multiple teams try to help. We also had a National Instruments person try to help and still nothing.

Ziaholic
07-03-2010, 21:12
I noticed something similar in our code this weekend. It was when I would enable/disable into and out-of autonomous.

My fix was looking into what I was doing within the INIT and STOP cases of the Auton and TeleOp and Disabled VI's. You get one execution of either one, every time you enter/exit those VI's. Make sure you're not doing stuff in there that might take too long.

My problem was accessing resources that weren't present (i.e. when the camera or gyro wasn't connected). When I eliminated those references, my watchdog errors disappeared.

kgzak
07-03-2010, 21:18
I'll look into that but I don't think we do anything there. Even the out of the box code doesn't work. We open a new project and don't change anything, still watchdog.

kgzak
09-03-2010, 20:59
Is the watchdog suppose to timeout between Auton and Teleop? We keep getting the error in between the two.

Alan Anderson
09-03-2010, 22:58
Is the watchdog suppose to timeout between Auton and Teleop? We keep getting the error in between the two.

Look at what your code does in Autonomous. If it completes its task before the 15 seconds are up, does it keep feeding the watchdog? The default LabVIEW project doesn't.

Mark McLeod
10-03-2010, 10:50
It's okay to throw a user Watchdog in Autonomous if you aren't doing anything. Watchdogs aren't bad in and of themselves.
A Watchdog during Autonomous (after you finished doing anything) doesn't prevent Teleop from starting (as long as Teleop feeds the Watchdog).
It's when you throw one and you were supposed to be doing something, then that's a problem.

kgzak
10-03-2010, 15:36
Look at what your code does in Autonomous. If it completes its task before the 15 seconds are up, does it keep feeding the watchdog? The default LabVIEW project doesn't.

I'll look into it. But we ran an autonomous that all it did was feed the watchdog and still had issues. I may have screwed something up though.