Go to Post I know that it's often dangerous to use common sense in a YMTC thread... - Kris Verdeyen [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 23-01-2011, 23:29
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Losing Communication with CRIO during Deploy

While trying somethings on last years robot a new problem has occurred in that when attempting to deploy new code I get a loss of communication error and the deploy halts and never starts again. This seems to only happen if code is already running on the CRIO. If no code is present prior to deploying, download is fine.

The workaround I came up with immediately was to re-image the CRIO to wipe out the old program. I searched some forum archives and saw discussions last year about using the NO APPS dip switch setting and resetting the CRIO. Haven't tried it yet, but it seems that should work as well and is a little faster.

What bothers me is this wasn't a problem all last year and now all of a sudden it is. I have installed Driver Station and Utility updates and CRIO image is the current one for the 2011 build season. FYI, we are also using LabView. Did this introduce the problem? Are any other teams seeing this? Based on archive posts from last year, a number of teams were experiencing this issue but I saw no conclusive answer as to the cause, only the work around solutions described above.

Would like to hear from anyone else having this issue and any other solutions/workarounds. Thanks.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

  #2   Spotlight this post!  
Unread 24-01-2011, 00:00
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Losing Communication with CRIO during Deploy

Without seeing the exact sequence of what's happening to you, I can't be sure, but I have a theory. If your program is keeping the cRIO extremely busy, it won't be able to respond quickly to the programming computer's attempts to communicate with it, and LabVIEW will complain about communication problems. It's easy to overwork the cRIO like that -- all you have to do is forget to put a little bit of delay in a neverending while block. Check your code for fast-running infinite loops and see if you can't slow them down a bit.
  #3   Spotlight this post!  
Unread 24-01-2011, 11:05
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,856
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: Losing Communication with CRIO during Deploy

Your symptoms are pretty typical of a saturated cRIO as Alan suggested. Common reasons include unregulated loops (add a time delay (Wait) of 10-100ms to loops).

Use the System Manager to see your CPU utilization on the cRIO.
This post describes how to use it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 24-01-2011, 11:52
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,535
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Losing Communication with CRIO during Deploy

We have had the same problem ongoing now since we began using the Crio's. Sometimes it will deploy, most often it will not. We have checked with the system manager and it does not show high utilization.

There are two solutions. You can get in the habit of throwing the no-execution switch on the crio so it boots without running the code, or you can reimage it. Either way will allow ou to deploy your code (just remember to change the dip switch back if you go that route).

We've met a number of other teams with the same issue, and I believe if you search you'll find other threads about the same thing.

http://www.chiefdelphi.com/forums/sh...517#post951517
  #5   Spotlight this post!  
Unread 24-01-2011, 16:46
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Losing Communication with CRIO during Deploy

Thanks for the feedback.

The project that started this was I just need simple arcade control of our robot. So I started with this years framework and added the vi's to telop mode for arcade control. The program does nothing else. So if any loop needs slowing down, it would be the the loop in Robot Main.vi. That loop repeatedly calls the telop.vi looking for joystick input. There are parallel loops for periodic task and vision, but they either have plenty to do (vision) or wait statements (periodic tasks). I would hate to have to intentionally slow down the Robot Main loop.

Out of curiosity, I will give a try this evening to see how that works. Maybe when the programs grow in complexity they tend to slow down on their own due to more overhead. But when the framework is used for just a simple task, it needs to be slowed down a little. Seems a bit odd, but hey, it is programming!
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

  #6   Spotlight this post!  
Unread 24-01-2011, 17:29
lscime lscime is offline
Registered User
AKA: Luke Scime
FRC #2614 (Mountaineer Area RoboticS (MARS))
Team Role: Alumni
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Morgantown, WV
Posts: 73
lscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to behold
Re: Losing Communication with CRIO during Deploy

We've had similar issues in the past. Our current understanding (after talking to NI and doing our own testing) is that sometimes the cRIO is "too busy" running already deployed code to communicate with the computer properly. We came up with a solution that has worked well for us and other teams that have tried it. The steps are listed below:

1. Turn off your robot.
2. Flip the "no app" dip switch on the front of the cRIO. This tells the cRIO not to run the code on startup.
3. Turn on the robot and wait for it to boot.
4. Build and deploy your code.
5. When LabVIEW prompts you to restart the robot - flip the "no app" dip switch back to the original position and finish rebooting the robot.
6. Now you should be ready to rock and roll.

Hope this helps,

-Luke
  #7   Spotlight this post!  
Unread 24-01-2011, 17:31
lscime lscime is offline
Registered User
AKA: Luke Scime
FRC #2614 (Mountaineer Area RoboticS (MARS))
Team Role: Alumni
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Morgantown, WV
Posts: 73
lscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to behold
Re: Losing Communication with CRIO during Deploy

Also, here's the original thread: http://www.chiefdelphi.com/forums/sh...ad.php?t=84311
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:39.

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