Go to Post We discovered this problem on the ship day (sure, when else?) - Manoel [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 14-02-2010, 16:07
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Need a Full "Watchdog for idiots" explanation

Hello I am Kyle Lenox, programmer for Amherst Robotics Team #2632.

Ok, here is the situation, I am currently tying to make a simple Autonomous mode and I have no idea whatsever what these watchdog components are:

Watchdog Status, Watchdog Kill, Watchdog Set Enable

What I do know is that the Watchdog Kill shuts down the motors. But what happens cosequencly if I use it? Will it harm the motors? After I ran Autonomous mode on the dashboard, I ran it again and the Motors were jerking the chain, and the robot was jerking violinlty forward in 1inch increments. Did using the WatchdogKill ruin the motors......(I really hope not)

If someone can give me an "explination for idiots" it would be geatly appreciated!!!!

Thx

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2010, 17:31
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Need a Full "Watchdog for idiots" explanation

In LabVIEW, if you press control-H you will turn on Context help. Hover your mouse over something you don't understand for a description of it.

Watchdog Kill just makes the watchdog expire immediately. When that happens, it is as if you pressed Disable on the Driver Station. It should have no worse effect on your motors than turning off the power.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2010, 22:28
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Need a Full "Watchdog for idiots" explanation

Thanks for the advice

I did as you said to do. But the Expalination was to wordy to understand. I asked my dad and he is trained in 20 different programming languages and he thinks hew knows but is unsure. If someone could literally give an explanation of those three so an idot could understand, it would be greatly appriciated.

I just need to know so I can decide if I need to use them, or if I could ignore them. Thanks for the advice once again

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2010, 22:44
Chrono101 Chrono101 is offline
Registered User
FRC #1448
Team Role: College Student
 
Join Date: Jul 2008
Rookie Year: 2007
Location: Parsons, Kansas
Posts: 13
Chrono101 is an unknown quantity at this point
Re: Need a Full "Watchdog for idiots" explanation

Watchdog Status
Returns: Boolean
Takes: Nothing
This VI returns the current status of the Watchdog.
1 - Watchdog is being Fed and robot is enabled.
0 - Watchdog is dead. Robot is disabled.

Watchdog Kill
Returns: Nothing
Takes: Boolean
This VI can be used to immediately Kill the Watchdog.
1 - Kill the Watchdog immediately and disable the Robot.
0 - Keeps the Watchdog running.

Watchdog Set Enable
Returns: Nothing
Takes: Boolean
This VI can be used to Enable and Disable the robot.
1 - Enable the Watchdog. Requires that Watchdog must be fed in order to keep the robot enabled.
0 - Disable the Watchdog. Once disabled, the robot will not stop for anything, even if it gets caught in an infinite loop. It's recommended to have the robot on blocks when the Watchdog is disabled.


Hopes this helps.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2010, 08:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Need a Full "Watchdog for idiots" explanation

The real issue may be with the code you aren't asking about. Watchdog's are used to ensure that machinery or equipment the computer is supposed to control is being paid attention to often enough. If the computer doesn't do its job, the watchdog steps in and takes over the job, hopefully making things safer by turning off power. The FRC watchdog doesn't latch once it is thrown, so I believe what you are seeing is feeding that is way too slow.

The computer sets up the motors, then delays for a bit too long so the watchdog turns everything off. Then the code comes back, feeds, and the motors jerk back to their current settings, and then we repeat.

I don't recall seeing what mode the robot is in, but if it is teleop, this could likely be caused by putting vision or some other expensive task inside the robot Main or inside TeleOp. I think the best thing to do is post code you've modified, or pictures of the code.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2010, 12:45
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Need a Full "Watchdog for idiots" explanation

First thing, I would like to say thankyou for expaining those components.

Second, I am working in Autonomous mode, not Teleoperated mode. We know its not the gears, because they run smoothly in Teleop, its the programming. I have a program like this in LabVIEW

WhileLoop
[ WattchdogFeed, TankDrive(left & right -1), ElaspedTime(Set to 4)(connected to Loop Condition) ] --Exiting the while loop {WatchdogKill}

Any more advice???

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2010, 21:14
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Need a Full "Watchdog for idiots" explanation

I'm not certain what ElapsedTime(Set to 4) means. Try using Delay and Feed and see if that doesn't work better.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2010, 21:49
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Need a Full "Watchdog for idiots" explanation

The elapsed time set to 4 means that when you select elapsed time and place it on the block diagram, a box appears, with the option to select a number. The number I chose is four

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2010, 07:52
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Need a Full "Watchdog for idiots" explanation

Try inserting the Delay and Feed. Right now you have a loop with no delay that repeatedly sets the motor speed. I can't debug why or if this is causing the jumpiness, but the delay and feed is likely what you want to use.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2010, 14:10
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Need a Full "Watchdog for idiots" explanation

Sure thing. I will try to see if it works @ the robotics meeting from 1630-1830. I will let you know sometime between 1900-1930.

Thanks for all the help you've given me, really appreciate it.

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
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
Hundreds of "Watchdog Expiration: System X" Errors lollypop2020 Programming 21 18-02-2010 09:52
Enabling yields one "Watchdog not fed" flash Dylan5019 Programming 4 12-02-2010 23:45
Help! Need a PAIR of 1.5" x 4" (to 6") cylinders, Bimba can't deliver kmcclary Pneumatics 1 12-02-2010 13:53
"watchdog not fed" error Lumit NI LabVIEW 8 04-02-2010 18:45
Need a "starter proposal" for new sponsor Robocat1 General Forum 1 09-05-2006 18:48


All times are GMT -5. The time now is 04:47.

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