Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   "the loop that contains 'RobotDriove' is not running fast enough" (http://www.chiefdelphi.com/forums/showthread.php?t=113267)

hello world! 11-02-2013 16:11

"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)

Greg McKaskle 11-02-2013 21:36

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

Alan Anderson 12-02-2013 09:49

Re: "the loop that contains 'RobotDriove' is not running fast enough"
 
Quote:

Originally Posted by hello world! (Post 1231727)
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.

hello world! 12-02-2013 13:12

Re: "the loop that contains 'RobotDrive' is not running fast enough"
 
Thank you for your help, everything works a bit smoother now. :]

hello world! 13-02-2013 13:24

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 :)


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi