Go to Post I would argue that you are not overdosed if you don't know the correct name of this year's game - KarenH [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-04-2010, 14:56
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Feeding the Watchdog in "Periodic Tasks"

Quote:
Originally Posted by Ether View Post
http://www.chiefdelphi.com/forums/sh...6&postcount=15

"The FMS won't disable you whenever your User Watchdog goes off. It doesn't even know when it happens, nor care. That's a "user issue" to it."




~
I wasn't implying that it disabled you, just that it leads to comm problems. All the info I have on FMS is second hand so I don't know if FMS sees the watchdog. I am not really saying this is FMS's fault. If your code messes up and throws a watchdog, it is hard to recover while connected to FMS.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 03-04-2010 at 15:05.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-04-2010, 15:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,808
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Feeding the Watchdog in "Periodic Tasks"

Quote:
Originally Posted by The Lucas View Post
If your code messes up and throws a watchdog, it is hard to recover while connected to FMS.
This isn't true with FMS in my experience.
Most of the teams at SBPLI and NJ, the two events I volunteered at, went to Watchdog not Fed by the end of Autonomous simply when their drive code ran out early or when they had no autonomous code. There's nothing unusual with that. It's perfectly fine.

The user code on the cRIO continues to run. It isn't interrupted at all. Just the cRIO control outputs, e.g., PWM, are disabled by an unfed Watchdog.
Once you feed the watchdog again, the Watchdog re-enables the control outputs. That's why robots experience the momentary stalls when the Watchdog times out only for a second, but then come back again. There's nothing the Watchdog is doing that slows or otherwise blocks your code, and FMS isn't involved. The Watchdog has to work if FMS goes offline after all. It wouldn't be real useful if FMS or the field access point crashed and all the robots went bonkers...

One possibility is slow or marginally slow code. FMS does monitor the packet send times and there are quite a few instances I've seen or heard of where the robot packet times were 10 times slower than the other robots on the field. The cases where I was able to investigate turned out to be slow code or unbalanced parallel tasks.

Not directed at Brian, because I know he writes good code, but to the general CD readership...
It doesn't help to boost the Watchdog delay period. That's like turning up the car radio as a fix for that odd engine noise your car is making.
If you need to do that then something in your code needs to be streamlined. The Watchdog is there to help you discover those kinds of problems.

All that said, I agree with Brian about using the Watchdog for development and debugging purposes, not for competition use.
Misused, it causes more grief than it saves robots, and there's always the E-stop button which is an FMS control.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-04-2010 at 17:12.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
watchdog not fed when "enable" is first pressed archwaykitten NI LabVIEW 3 09-03-2010 22:50
Need a Full "Watchdog for idiots" explanation K Lenox NI LabVIEW 9 16-02-2010 14:10
Enabling yields one "Watchdog not fed" flash Dylan5019 Programming 4 12-02-2010 23:45
Feeding the Watchdog Robopanda6 Java 3 31-01-2010 13:16
Periodic Tasks Luke Pike NI LabVIEW 1 04-02-2009 01:14


All times are GMT -5. The time now is 01:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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