Go to Post However, the skill of calculating things by hand and sketching by hand is something that we should continue to teach the youth (until my netbook can run Inventor :D) - Zach O [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 11-02-2013, 16:11
hello world! hello world! is offline
Registered User
FRC #4643
 
Join Date: Feb 2013
Location: oroville
Posts: 8
hello world! is an unknown quantity at this point
"the loop that contains 'RobotDriove' is not running fast enough"

i tried getting a four motor tank drive program working. The first thing I tried was to replace the open two motor drive with a four motor drive. i tried testing this and i got an error saying "the loop that contians robotdrive is not running fast enough" along with other things that it says I should try to fix the problem. the strange thing was that it didn't just make my drive motors stop working, i couldn't even get my other motors to work either... so i tried replacing the four motor tank drive with a two motor drive again and it gave me the same message.

What does that error message mean and how can I fix the problem?

What's a good way to get a four motor tank drive to work? (I have four motors because we're dealing with a two speed transmission)
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2013, 21:36
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: "the loop that contains 'RobotDriove' is not running fast enough"

The error means that your code opened a RobotDrive and by turning Safety on, it agreed to update the motor speed every 100ms or faster. When it doesn't do this, it causes errors to be reported and motors to be set to zero speed. Once the arrows are flowing, the timing can get wonky and cause more errors. Look at the early errors and resolve them first.

Also keep in mind that having many panels open will slow execution as well.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2013, 09:49
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: "the loop that contains 'RobotDriove' is not running fast enough"

Quote:
Originally Posted by hello world! View Post
What's a good way to get a four motor tank drive to work? (I have four motors because we're dealing with a two speed transmission)
The easiest way to make a four motor drivebase work is to treat it as a two motor drivebase in software, then use y-cables to run a pair of motor controllers on each side from the same PWM signal.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2013, 13:12
hello world! hello world! is offline
Registered User
FRC #4643
 
Join Date: Feb 2013
Location: oroville
Posts: 8
hello world! is an unknown quantity at this point
Re: "the loop that contains 'RobotDrive' is not running fast enough"

Thank you for your help, everything works a bit smoother now.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2013, 13:24
hello world! hello world! is offline
Registered User
FRC #4643
 
Join Date: Feb 2013
Location: oroville
Posts: 8
hello world! is an unknown quantity at this point
Re: "the loop that contains 'RobotDriove' is not running fast enough"

Just as an update. The problem was that i put the compressor loop in the teleop Vi and not in the time tasked VI. (oh the simple things that can destroy the code lol) But thanks for the help
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 04:43.

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