Go to Post 610 is an all boys school, and we were surprised to see our pit and robot neatly decorated with hot pink boas and flowers upon arrival this morning. - Mr. Lim [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 31-10-2012, 22:29
Mr.Trips Mr.Trips is offline
Registered User
FRC #3179
 
Join Date: Jan 2012
Location: adair
Posts: 28
Mr.Trips is an unknown quantity at this point
Error -44061

When i try to run the robot this error comes up saying that the Left and Right motor can not run fast enough suffitiently or another loop is starving the code, but there is no other loop besides the tank drive and the compressor. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-11-2012, 07:10
Suitster's Avatar
Suitster Suitster is offline
Registered User
AKA: Ethan Pellittiere
FRC #3951 (SUITS)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Honeoye
Posts: 79
Suitster is on a distinguished road
Re: Error -44061

Are you experiencing side effects when running your robot?

Our team struggled through this error, which accompanied a delay in response from the robot. When we would move the joysticks to drive it, the robot would have a delay, then move at full speed, which was dangerous, to say the least.

The way that we solved the problem was we remade the code, copying in global data, teleop, and autonomous. We could not find anything that was causing the errors (dashboard maybe?), but it fixed it.
__________________
2012 FLR Regional Champs, with 1507 and 191
Reply With Quote
  #3   Spotlight this post!  
Unread 01-11-2012, 07: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: Error -44061

The error indicates that the safety config is turned on for the RobotDrive VIs. When on, it measures the time between calls and reports the error that it has been more than 100ms since the last update. It also sets the motors to 0 in case the reason is that your code is wrong or at a breakpoint. As soon as they are set again, the robot will resume.

If you have the time and curiosity, and I hope you do, I'd suggest debugging to determine why this is happening. If you don't, and you are happy with how the robot drives, you can turn off the safetyConfig in Begin. It is in the RobotDrive palette. Wire it up and set it to disable.

If you choose to debug, I'd suggest opening the support code folder in the project. In it there should be an elapsed times VI that you can drop in Teleop or other loops in order to observe the typical update rate. You can further instrument code by placing millisecond nodes and subtracts and even wire them to charts to see what can cause the delays.

Feel free to post results to the forum if you have questions about what you find.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 01-11-2012, 17:17
Mr.Trips Mr.Trips is offline
Registered User
FRC #3179
 
Join Date: Jan 2012
Location: adair
Posts: 28
Mr.Trips is an unknown quantity at this point
Re: Error -44061

It worked! The robot is working as it should thank you for the help guys!
Reply With Quote
  #5   Spotlight this post!  
Unread 03-11-2012, 16:22
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: Error -44061

Dear Greg,

Would you consider posting the VI code that does what you have suggested to do to find out what is wrong.

It would sure make for some very good learning,
__________________
"A team back in training !"
Reply With Quote
  #6   Spotlight this post!  
Unread 03-11-2012, 18:21
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: Error -44061

I don't have LV 2011 on my computer any longer, but I can show you images of what I was describing.

The first image shows where to get the support code VI.
The second shows that you simply drop it into TeleOp.vi.
If you then open it while running, you can see the time between any given calls. If you call it more than once from the same subVI or want to change the name to be more informative, just wire up your own string to Call Name.

The typical offenders are when teams put length delays or other lengthy code into teleop. Often the amount of the teleop and the pattern of when it misses will remind the programmer of something in their code. They will say -- "0.5 seconds, but that is how long we run our gripper motor", and they will dive into some code and find that they are doing it inline and causing the next teleop to be late, causing the safety config to send the error and shutdown the motors until the code is back in control.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Clipboard 1.png
Views:	18
Size:	51.8 KB
ID:	13137  Click image for larger version

Name:	Clipboard 2.png
Views:	20
Size:	95.9 KB
ID:	13138  Click image for larger version

Name:	Clipboard 3.png
Views:	19
Size:	182.3 KB
ID:	13139  
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:13.

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