Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   issue with loading robot code (http://www.chiefdelphi.com/forums/showthread.php?t=115451)

sparks-1784 26-03-2013 09:46

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.

lorem3k 26-03-2013 09:52

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.

sparks-1784 26-03-2013 10:42

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.

lorem3k 26-03-2013 10:45

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.

RufflesRidge 26-03-2013 10:46

Re: issue with loading robot code
 
Install LabVIEW Update 5.1 or close the dashboard while loading code.

Alan Anderson 26-03-2013 11:29

Re: issue with loading robot code
 
RufflesRidge's advice is good, if a bit terse.

Quote:

Originally Posted by sparks-1784 (Post 1252876)
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.

sparks-1784 26-03-2013 12:02

Re: issue with loading robot code
 
Thank you. I'll make sure the team updates with 5.1.


All times are GMT -5. The time now is 09:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi