Go to Post I've never encountered a motor as forgiving as a CIM - Stall them for 20 seconds, run them hot on a short turnaround, or call them mean names in between matches and they'll just keep doing their thing. - thefro526 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2012, 13:02
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
cRIO lag after 2012 image installed

Hi everyone,

We re-imaged our cRIO last night and tested some code afterwards. We had MAJOR lag and we can't figure out why. We would push a button on our controller and the robot wouldn't respond for at least a second. We're not sure what's wrong. Anyone have any ideas?

FYI - we're using Labview...

Thanks in advance!!!
  #2   Spotlight this post!  
Unread 09-01-2012, 13:11
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
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: cRIO lag after 2012 image installed

If you click on the Diagnostics tab of the Driver Station are you seeing any error messages in the box there? Having a large number of unhandled errors can significantly slow down the operation of a LabVIEW program.

Forgetting to reorder one or more modules to match the new order would be a good way to get a whole bunch of errors that would probably give you that symptom.
  #3   Spotlight this post!  
Unread 09-01-2012, 13:51
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: cRIO lag after 2012 image installed

I'll check that. We did move the modules so that their location matches the new order of the latest cRIO image.
  #4   Spotlight this post!  
Unread 09-01-2012, 13:58
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: cRIO lag after 2012 image installed

Assuming you openend last year's project, check all of your module assingments in begin.vi. In some cases, they may no longer be valid.

I second checking the diagnostics tab.
  #5   Spotlight this post!  
Unread 09-01-2012, 14:04
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: cRIO lag after 2012 image installed

When we installed labview 2011, it automatically changed our digital module assignments in the code for us (which surprised us). So there was no code that needed to be changed to reflect the new digital module location.

If the code needed to be changed then nothing would have worked but stuff did work, it just worked long after we pushed the button.

This is a lot of help. I really appreciate the responses! Keep them coming!
  #6   Spotlight this post!  
Unread 09-01-2012, 14:16
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: cRIO lag after 2012 image installed

If you have no errors on the diagnostics tab, the next item I'd look at is the Charts tab of the DS. You should see CPU, memory, and other useful robot elements charted and logged there. Can you run the robot through different modes to see if it is just tele, or just auto, or always pegging the CPU?

The step after this would be for me to profile it using the CPU profiler built into LV. It is important to open and start the profiler before you begin running your code, then run the code for say 10 seconds, then stop the code, and only then stop the profiler. The profiler will only record functions that started and stopped in a profile session, so opening it too late or stopping it too soon can confuse you if you aren't very aware of how the code is being invoked.

Greg McKaskle
Closed Thread


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 23:36.

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