Go to Post Powerhouse teams aren't powerhouse because they build great robots, they are powerhouses because they build great teams. - couvillion [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 23-01-2011, 23:17
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Question Errors

Ok, here's a question... Our team is using two robots right now, one for prototyping, and the other one for our drive team to use for practicing driving.

The proto-typing robot uses arcade drive with two motors, while the practice bot uses mecanum. When ever we drive/use either one of these bots we consistently get an error close to something like this... "The loop containing RobotDrive is not running fast enough..." (the actual error message is longer but I cant remember all of it).

I have no clue what is causing this error and I get it even if there is only drive code in the program... is anyone else getting this error? Does anyone know how to fix it?

- Thanks in advance!
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2011, 23:51
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: Errors

I'm pretty sure that that is this year's equivalent to the watchdog, so try speeding up the loop somehow.

If you still can't get it to work, try having the vi to run the motors in periodic tasks and have all the joystick processing in teleop and use global variables.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2011, 07:33
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: Errors

Before changing the code, determine how long between subsequent calls to update the motors. You can do this with a millisecs and a feedback node, or you may be able locate a subVI called Loop Timing and place that near the motor updates.

According to the Safety manager, you are updating the motor setpoints pretty slowly. Determine why and resolve that issue.

If you are having trouble tracking down the slow code, you may also want to turn on the profiler and run your app.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2011, 08:13
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Re: Errors

Thank you both for replying quickly! . I have tried to look for the loop that the error seems to be referring to, but I can never find it. But, I will look again!

I'm still curious as to how many other people are getting this error, because it happens to us even if we use the default code.
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2011, 10:31
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: Errors

By "RobotDrive" it is referring to anything that uses the motors opened with "Open 2 Motors" or "Open 4 Motors."

That just means anywhere you use the Arcade Drive, Tank Drive, or Holonomic Drive vis.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2011, 11:33
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Re: Errors

Thanks Mark!
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
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:14.

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