Go to Post Dave doesn't predict the future. He creates it. - Alan Anderson [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 20-01-2011, 17:45
Biolore Biolore is offline
Lead Programmer
AKA: Josh
FRC #3597 (Robo-Rangers)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Kittery, Maine
Posts: 68
Biolore is infamous around these partsBiolore is infamous around these parts
Watch Dog stopping robot from working?

So, my team is trying to get our robot running. I put the default code on, and its not working. It said that it failed because it couldn't communicate to the camera, so I took out the camera codes. Now I'm getting a message on the driver station that says "Watchdog Expiration: System 1, User 0." Can someone help me out?
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2011, 18:08
Biolore Biolore is offline
Lead Programmer
AKA: Josh
FRC #3597 (Robo-Rangers)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Kittery, Maine
Posts: 68
Biolore is infamous around these partsBiolore is infamous around these parts
Re: Watch Dog stopping robot from working?

I'm getting error code 44061
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2011, 18:58
Biolore Biolore is offline
Lead Programmer
AKA: Josh
FRC #3597 (Robo-Rangers)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Kittery, Maine
Posts: 68
Biolore is infamous around these partsBiolore is infamous around these parts
Re: Watch Dog stopping robot from working?

"FRC: The Loop that contains RobotDrive is not running fast enough. This error con occur if the loop contains too much code, or if one or more other loops are starving the RobotDrive loop." I'm pretty sure this shouldn't happen if its just the robot frameworks with game code from labview
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2011, 19:42
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Watch Dog stopping robot from working?

Check the loop that contains RobotDrive. What else is in it? Did you leave some camera code behind?
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2011, 23:17
Team#2057-Vegas's Avatar
Team#2057-Vegas Team#2057-Vegas is offline
Team2057LasVegas
AKA: Justin Major
FRC #2057 (AV CyberBulls)
Team Role: Leadership
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Las Vegas
Posts: 113
Team#2057-Vegas can only hope to improve
Re: Watch Dog stopping robot from working?

im looking into a similar problem.. i saw on the framework tutorial from NI something about fixing that with a safety vi after your drive motors near the camera or w/e. check it out

best of luck
__________________
Justin Major
2057 Team Leader

"We will kick you off our pasture" -- 2057 Motto
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2011, 23:23
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: Watch Dog stopping robot from working?

The Framework this year behaves a little differently than last year. There is a new type of "Watchdog" hidden within the Arcade/Tank/Holonomic Drive vis.
It's optional, but enabled by default.
If you want to change it (enable/disable) you do so in Begin.vi inside the Open 2 Motor or Open 4 Motor vis.

The way it now works is the drive motors will shutdown if you don't call Arcade/Tank/Holonomic Drive within every .1 seconds.
It is no longer "set it and leave it"

If you suffer from this you will see this error message on the Diagnostics tab error window:
ERROR <Code> -44061 occurred at "Left and Right Motors" in the VI path: Robot Main.vi
<time>23:15:45 01/21/2011
FRC: The loop that contains RobotDrive is not running fast enough.
This error can occur if the loop contains too much code, or if one or
more other loops are starving the RobotDrive loop.
If you think you code should be setting the Drive quickly every iteration, then you may have sluggish code of a long loop that is keeping you from leaving the vi.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-01-2011 at 10:24.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2011, 00:58
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Watch Dog stopping robot from working?

Quote:
Originally Posted by Mark McLeod View Post
The Framework this year behaves a little differently than last year. There is a new type of "Watchdog" hidden within the Arcade/Tank/Holonomic Drive vis.
It's optional, but enabled by default.
If you want to change it (enable/disable) you do so in Begin.vi inside the Open 2 Motor or Open 4 Motor vis.

The way it now works is the drive motors will shutdown if you don't call
Arcade/Tank/Holonomic Drive wthin every .1 seconds.
We are getting the same "not running fast enough" error in our Teleop.vi I can post it here, although we still need to clean it up some. But my question is we have an auto-score mode that runs some code if enabled by a driver that uses the Arcade drive, and if it isn't enabled by a driver the driver manually controls the robot with the Tank drive vi. Since we are pulling the same reference (default "Left and Right Motors") and using Arcade on one mode and Tank on another mode that can be changed back and forth, could this result in the error noted above due to the Arcade/Tank difference?

In our Teleop.vi we have no code that forces anything to pause, such as waits.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2011, 03:22
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Watch Dog stopping robot from working?

[quote=DavidGitz;1006228Since we are pulling the same reference (default "Left and Right Motors") and using Arcade on one mode and Tank on another mode that can be changed back and forth, could this result in the error noted above due to the Arcade/Tank difference?[/QUOTE]

No. If you open up the vis, it shows that the only difference is some processing of the joystick values before it runs the "runMotor" and "safetyupdate" vis.

Try adding a timer to see how fast the loops are running. To do this, add a tick count to your teleop.vi, then a feedback node. Connect the tick count to the input of the feedback node (on the arrow, not the diamond) and then add a subtraction command. Wire the output of the feedback node to the bottom of the subtraction command and the tick count to the top. Then put an indicator on the end of the subtraction command and look at it while the code is running.
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2011, 07:50
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,751
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: Watch Dog stopping robot from working?

You may want to look for a VI called Loop Time, Loop Timing, or something similar. It is a subVI you can drop into a loop, and since it is called each iteration, it will record info about the rate of the loop. You can then open the subVI at any point and peek at what has been going on.

Additionally, you can wire up a string to different calls in other loops, and instrument as many loops as you care to watch.

There is a small amount of overhead for having this in, and apparently they decided not to put this into the default framework, but it is very handy for issues like this.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 24-01-2011, 08:22
MaxMax161's Avatar
MaxMax161 MaxMax161 is offline
Allegedly Useful
AKA: Max Llewellyn
FRC #2791 (Shaker Robotics), FRC #1676 (Pascack π-oneers)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Montvale NJ\Troy NY
Posts: 174
MaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond repute
Re: Watch Dog stopping robot from working?

We had a the same problem and after killing ourselves trying to find the programing error we realized that all the PWMs were in backwards which was shorting out the digital sidecar. Double check the electrical work, especially if the default drive code is having problems too. Hope that helps.
__________________
2791 Shaker Robotics (2013-present)
--Control Systems Mentor 2013-present
--Drive coach 2015-present

1676 The Pascack π-oneers (2010-2013)
--Drive coach 2011-2013
--Lead Programmer 2011-2013
Reply With Quote
  #11   Spotlight this post!  
Unread 24-01-2011, 09:28
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Watch Dog stopping robot from working?

Quote:
Originally Posted by MaxMax161 View Post
PWMs were in backwards which was shorting out the digital sidecar.
Wow. No that's not the problem.
__________________
Reply With Quote
  #12   Spotlight this post!  
Unread 24-01-2011, 21:30
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,751
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: Watch Dog stopping robot from working?

I discovered that the loop timing info is described in the Troubleshooting link on the Getting Started window.

Greg McKaskle
Reply With Quote
  #13   Spotlight this post!  
Unread 27-01-2011, 16:29
xYinx161 xYinx161 is offline
Registered User
FRC #1208
 
Join Date: Jan 2011
Location: O'Fallon
Posts: 1
xYinx161 is an unknown quantity at this point
Re: Watch Dog stopping robot from working?

This is team 1208's time from an elapsed time function. With default code (on the right) the time is 40 miliseconds and with our code (on the left) it is on 90 miliseconds on average. We have also included our teleop.vi. Is this a problem and if so what can we do to fix this.
Attached Thumbnails
Click image for larger version

Name:	Starting_Code.jpg
Views:	18
Size:	106.6 KB
ID:	9844  Click image for larger version

Name:	Current code.jpg
Views:	17
Size:	100.4 KB
ID:	9848  
Attached Files
File Type: vi Teleop.vi (54.8 KB, 14 views)

Last edited by xYinx161 : 27-01-2011 at 17:15.
Reply With Quote
  #14   Spotlight this post!  
Unread 27-01-2011, 17:25
U5ER NAM3's Avatar
U5ER NAM3 U5ER NAM3 is offline
AKA: Big Sexy
FRC #3312 (eaglebots)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Onigum
Posts: 8
U5ER NAM3 is an unknown quantity at this point
Re: Watch Dog stopping robot from working?

i need help on the motor control Set Speed icon but i cant find it so i cant finsh the while loop until i get the Set Speed icon can u help me?
Reply With Quote
  #15   Spotlight this post!  
Unread 27-01-2011, 22:30
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: Watch Dog stopping robot from working?

Quote:
Originally Posted by xYinx161 View Post
This is team 1208's time from an elapsed time function. With default code (on the right) the time is 40 miliseconds and with our code (on the left) it is on 90 miliseconds on average. We have also included our teleop.vi. Is this a problem and if so what can we do to fix this.
If it's an average of 90ms, that will be a problem. It's right on the edge of the Safety vi timeout at 100ms and since it's an average nearly half will be beyond the tripping point.
I don't see anything obvious that's slowing you down, although it's easy to isolate the slowdown using Disable structures on the stand-alone blocks of code.

It looks like you are also setting your motors in two different places. Those two conflicting sets will be fighting for control of your robot when the time comes. You need a way to choose one or the other, not both at the same time.

Quote:
Originally Posted by DavidGitz View Post
Since we are pulling the same reference (default "Left and Right Motors") and using Arcade on one mode and Tank on another mode that can be changed back and forth, could this result in the error noted above due to the Arcade/Tank difference?
The Arcade/Tank mixture shouldn't be a problem. They don't remember who was called last and they both reset the Safety vi.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-01-2011 at 22:34.
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


All times are GMT -5. The time now is 10:07.

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