Go to Post Hmmm... I'm pretty sure that twig isn't legal, since the tree it came from started fabrication before kickoff.... - lukevanoort [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 12-01-2012, 00:43
ehlochbr ehlochbr is offline
Registered User
FRC #2990
 
Join Date: Nov 2010
Location: Salem, OR
Posts: 37
ehlochbr is an unknown quantity at this point
CPU usage at 100% and don't know why

We've installed all the new FRC software for 2012. I'm testing code and the cRIO is really slow to respond. The graphs tab shows that CPU usage jumps to 100% when I deploy and run code but I can't figure out why. I've looked over everything and there isn't a loop or anything weighing down the system.

This exact code used to run just fine before we installed the 2012 updates.

Has anyone else seen this? I'm really stuck...

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2012, 01:22
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
when you say that you have railed a CPU, do you mean the cRIO or the pc?
__________________
Mike B
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2012, 04:40
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 987
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: CPU usage at 100% and don't know why

Check the Messages box on the Diagnostics Tab to see if there are any errors being generated. Unhandled errors massively bog down the cRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2012, 09:52
ehlochbr ehlochbr is offline
Registered User
FRC #2990
 
Join Date: Nov 2010
Location: Salem, OR
Posts: 37
ehlochbr is an unknown quantity at this point
Re: CPU usage at 100% and don't know why

Hi,

I mean the cRIO.

There are errors in the messages screen of the diagnostics tab but they don't make sense to me. There's error messages about the camera code, but we're not using the camera (we never have).

Also there's an error message about the loop that contains RobotDrive running too slow, but I can't find it. I don't know where this error would be coming from because used this exact code last week with no issues (same with the camera). Only since we installed new SW have we had these problems.

Thanks for your help.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2012, 14:41
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
make sure that the "vision" boolean is set to false on robot main. (make that the default) In previous years, this sometimes caused problems.
__________________
Mike B
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2012, 00:08
ehlochbr ehlochbr is offline
Registered User
FRC #2990
 
Join Date: Nov 2010
Location: Salem, OR
Posts: 37
ehlochbr is an unknown quantity at this point
Re: CPU usage at 100% and don't know why

I changed the vision boolean to false as you suggested and that helped a little but there is still a bit of lag.

All the errors I see are related to the camera. The error is:

-44003 occurred at WPI_CameraIssue HTTP Request with Authentication.vi>>WPI_CameraIssue Get.vi>>WPI_CameraSet Image Appearance Property.vi>>WPI_CameraSet Enum Appearance Property.vi>>WPI_CameraSet Image Size.vi>>Begin.vi>>Robot Main.vi

I thought this was because we didn't setup the camera with the username and password that is recommended, but we went back and did that and it didn't 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 08: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