Go to Post I guess it's true, 'There is no replacement for displacement'. - Andy A. [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 26-03-2013, 09:46
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Question issue with loading robot code

Hi. We have been dealing with an issue when loading code into the cRIO.
After making changes to our labview code, we 'build' and then load the code through 'run as startup'. The message window states that it is trying to connect to target - and just seems to hang there never actually loading the software. Not sure if we are waiting long enough - there does not seem to be any timeout.
What we end up doing is to re-image the cRIO. After re-imaging, then we are able to connect to the target and load the code. It doesn't make sense that re-imaging must be done each time a new load is sent to the cRIO.

I assume that our programming 'process' is being done out of sequence or incorrectly, but I am not sure. I have not been loading the software myself - it is being done by another mentor - so I am not sure of the environment of the computer while attempting to reprogram the cRIO. One thing I noticed is that the imaging tool, dashboard and the labview development environment are all running at the time of the reprogramming attempts. Is this ok? Will there be any contention from programs competing for communications with the cRIO?

I'd appreciate any suggestions on how to rectify this issue.
__________________
Lance
Reply With Quote
  #2   Spotlight this post!  
Unread 26-03-2013, 09:52
lorem3k's Avatar
lorem3k lorem3k is offline
1 + 1 = 0 (in Z/2Z)
AKA: Andy D.
FRC #1482 (Bishop Grandin Ghosts)
Team Role: Alumni
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Calgary, AB
Posts: 165
lorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to behold
Re: issue with loading robot code

When you're still testing things, just run the code temporarily with the arrow button from Robot Main. We never actually build our code until we get to competiion.
__________________
Boo! Bishop Grandin High School / GM Canada / Tenaris
2013 Western Canada - Quarterfinalists (thanks 288/4719) / 2012 GTR West - Quarterfinalists (thanks 188/1075) / 2011 GTR East - Regional Winners (thanks 1114/1503)
Reply With Quote
  #3   Spotlight this post!  
Unread 26-03-2013, 10:42
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Re: issue with loading robot code

Ok. Thanks for the suggestion. I have actually tried running robotmain too.
I am still wondering why we would have to re-image (re-format) before loading.
__________________
Lance
Reply With Quote
  #4   Spotlight this post!  
Unread 26-03-2013, 10:45
lorem3k's Avatar
lorem3k lorem3k is offline
1 + 1 = 0 (in Z/2Z)
AKA: Andy D.
FRC #1482 (Bishop Grandin Ghosts)
Team Role: Alumni
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Calgary, AB
Posts: 165
lorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to behold
Re: issue with loading robot code

I'm not sure what could be behind needing to reformat, but we had a aimilar problem earlier this year when another programmer here built the code really early into the season. I'd guess that the new code that's on the computer can't be run/deployed when the cRIO is already in use from the previously deployed code.
__________________
Boo! Bishop Grandin High School / GM Canada / Tenaris
2013 Western Canada - Quarterfinalists (thanks 288/4719) / 2012 GTR West - Quarterfinalists (thanks 188/1075) / 2011 GTR East - Regional Winners (thanks 1114/1503)

Last edited by lorem3k : 26-03-2013 at 11:08. Reason: spelling gooder
Reply With Quote
  #5   Spotlight this post!  
Unread 26-03-2013, 10:46
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: issue with loading robot code

Install LabVIEW Update 5.1 or close the dashboard while loading code.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-03-2013, 11:29
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,112
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: issue with loading robot code

RufflesRidge's advice is good, if a bit terse.

Quote:
Originally Posted by sparks-1784 View Post
One thing I noticed is that the imaging tool, dashboard and the labview development environment are all running at the time of the reprogramming attempts. Is this ok? Will there be any contention from programs competing for communications with the cRIO?
If you're still using the 5.0 LabVIEW update, then there is indeed a problem with having a Dashboard program running. A bug in the Network Tables library keeps a deployed program from shutting down when requested, so you can't load new code on top of it. Reimaging the cRIO removes any running code, so that's why it works. So would turning on the NO APP switch (easy on an 8-slot cRIO, less so on a 4-slot) and rebooting.

Shutting down the Dashboard before trying to load new code masks the bug and lets the new program overwrite the old one. That's the simple workaround.

The proper fix is to install the newest (5.1) LabVIEW update.
Reply With Quote
  #7   Spotlight this post!  
Unread 26-03-2013, 12:02
sparks-1784 sparks-1784 is offline
Lance Stronk
FRC #1784 (Litchbots)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Litchfield, CT
Posts: 46
sparks-1784 is on a distinguished road
Re: issue with loading robot code

Thank you. I'll make sure the team updates with 5.1.
__________________
Lance
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 09:42.

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