View Single Post
  #1   Spotlight this post!  
Unread 10-02-2013, 22:35
piguy123 piguy123 is offline
Registered User
FRC #4751
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 6
piguy123 is an unknown quantity at this point
Exclamation Error While Making Relay Work For Certain Time

Hello!
I'm trying to make a relay work for a specified amount of time (not necessarily 500ms as in my screenshot). I couldn't find very good relay examples online, but from what I gathered through various forum searches, I determined that in order to make a relay work, you need to run it continuously in something like a while loop.

I did that, but I'm still receiving errors which state that I'm not running my loop fast enough. Any idea how I can get my code to work?

Here's the full error message:
Quote:
ERROR <Code> -44061 occurred at "Left and Right Motors" in the VI path: Robot Main.vi
<time>02:07:27 01/01/1970
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.
Could someone also clarify what this message actually means?

Here's the relay code that causes the problem:
Click image for larger version

Name:	relayproblems.png
Views:	20
Size:	12.4 KB
ID:	13921

Thanks for your help.
Reply With Quote