Go to Post "There are two ways to compete in this world, you can drag your competitors down, or you can rise above them. Which is better for the world in the long run?" - Karthik [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Spotlight this post!  
Unread 03-04-2010, 17:39
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,795
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 Austin3324 View Post
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.)
Sorry I haven't responded directly to your question till now.
I've had a chance to look at your auto code and you need Watchdog Feeds in each of those interior While loops where you wait around for the Ball Sensor to trip or the Kicker Limit Switch to say you've completed your kick. You also need a Watchdog Delay & Feed wherever you do a timer wait, e.g., the one for 100ms.

In fact you probably should throw delays into each of those interior While loops to free up the CPU a bit to allow parallel tasks (such as the Watchdog) time to execute too. That'd mean doing Delay & Feeds rather than Feeds there.
A Delay & Feed in a loop or sequence frame like you're using does the action of a timer delay, so you can actually replace the timer delay with the Delay & Feed to get the same result.

The rest of the sequence code operates fast enough that you don't need Watchdog feeds everywhere. Placing Feeds wherever you take a lot of time will satisfy the rest of the sequence as well.
__________________
"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:41.
Reply With Quote
 


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 11:00.

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