Go to Post My wife said if no one gets ahead no one gets left behind. - Koko Ed [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 02-02-2013, 11:15
ShadowBot's Avatar
ShadowBot ShadowBot is offline
Registered User
FRC #3577
 
Join Date: Jan 2013
Location: Scottsdale, AZ
Posts: 9
ShadowBot is an unknown quantity at this point
Loop Starving Robot Drive

First off I am a relatively new programmer in LabVIEW. Our robot is running a four-motor tank drive. I have been having problems when driving the robot, the code cuts and the robot has to be disabled and reenabled in the driver station. This cut only happens when the left joystick is foward and the right joystick is back AND when past 60% power. The other way works fine.

We checked the diagnosis and came up with this error code:

ERROR <Code> -44061 occurred at "RobotDrive" in the VI path: Robot Main.vi
<time>17:15:45 02/1/2013
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.


I have gone through the code and checked everything that might be causing this problem but it continues to occur. Any suggestions of what can I do to fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2013, 15:43
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Loop Starving Robot Drive

Can you attach your Teleop code so we can take a look at it? (I'm assuming that this problem is occurring when you are running with Teleop enabled.)
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2013, 11:47
mjgard's Avatar
mjgard mjgard is offline
Michael
AKA: Michael Gard
FRC #2844 (Stampede Robotics)
Team Role: Teacher
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Laveen,AZ
Posts: 74
mjgard will become famous soon enough
Re: Loop Starving Robot Drive

I am having a similar problem and dont know what to do. I have attached our teleop code for review. We dont lose communication but our drive speed is very slow.
Attached Files
File Type: vi Teleop.vi (51.2 KB, 20 views)
__________________
Michael
Stampede Robotics Mentor
FRC 2844

2012 Arizona Regional --Judges' Award
2012 Las Vegas Regional -- Regional Winners
2012 Las Vegas Regional-- Coopertition Award
2009 Arizona Regional -- Rookie All Star Award
Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2013, 12:54
nekojess nekojess is offline
Controls Surgeon and Diagnostician
AKA: Jessica C
no team
 
Join Date: Mar 2013
Rookie Year: 2001
Location: Michigan
Posts: 15
nekojess is an unknown quantity at this point
Re: Loop Starving Robot Drive

Quote:
Originally Posted by mjgard View Post
I am having a similar problem and dont know what to do. I have attached our teleop code for review. We dont lose communication but our drive speed is very slow.
Is it consistently slow, or kind of jittery? Try seeing if the error console on the driver station says anything.

Try disabling non-drive parts of your code using the Diagram Disable structure. If you do it in sections, you can maybe see which part is the problem. Or at least see which parts aren't the problem.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-03-2013, 14:07
mjgard's Avatar
mjgard mjgard is offline
Michael
AKA: Michael Gard
FRC #2844 (Stampede Robotics)
Team Role: Teacher
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Laveen,AZ
Posts: 74
mjgard will become famous soon enough
Re: Loop Starving Robot Drive

It seems consistently slow. The error we get on the DS is:

ERROR <Code> -44061 occurred at "RobotDrive" in the VI path: Robot Main.vi
<time>23:36:12 03/13/2013
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.
__________________
Michael
Stampede Robotics Mentor
FRC 2844

2012 Arizona Regional --Judges' Award
2012 Las Vegas Regional -- Regional Winners
2012 Las Vegas Regional-- Coopertition Award
2009 Arizona Regional -- Rookie All Star Award
Reply With Quote
  #6   Spotlight this post!  
Unread 15-03-2013, 23:45
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: Loop Starving Robot Drive

Quote:
Originally Posted by ShadowBot View Post
First off I am a relatively new programmer in LabVIEW. Our robot is running a four-motor tank drive. I have been having problems when driving the robot, the code cuts and the robot has to be disabled and reenabled in the driver station. This cut only happens when the left joystick is foward and the right joystick is back AND when past 60% power. The other way works fine.
This answer is probably too late to help, but this is the first time I noticed the thread.

It sounds like your Digital Sidecar is not properly powered with battery voltage from the Power Distribution Board. The -44061 error is probably unrelated to the cutout you're seeing when commanding a turn.
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 12:03.

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