Go to Post The sign of a mature community is not that everyone is nice and happy but that differring opinions can be expressed. -Joe Johnson - archiver [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 04-04-2014, 23:18
Sparktracer Sparktracer is offline
Registered User
FRC #3535
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Lapeer, Mi
Posts: 2
Sparktracer is an unknown quantity at this point
Reflash of cRio to deploy labview code - SOLVED -

Hello CD Community,
I am a mentor for team 5201. We are currently compeating at Troy, Mi Regional and have ran into a problem that has stumped the FTA's. In order to make any change to the LabView code we found that we have to re-flash the cRio every time. Here is a brief description of events.
cRio has running and functioning code. Need to make motor speed change in Auton.
Adjust value in Auton code. Save change.
Connect programming computer to cRio to test.
Ensure communications and robot code are good in Driver station.
Click RUN button in Robot Main VI
Get message that target already has code deployed. OK to run test.
Ger the following messages, with error:
Waiting for the target (RT CompactRIO Target) to respond

Image of error is available on NI:
https://decibel.ni.com/content/thread/21245?tstart=0

We found out late this evening, after changing cRio(not the problem), that another team has the exact same problem at the Troy event.

We are looking for input on possible root cause and solution.

Our programmer is in the process of writing complete new code (about 30 minutes, no camera, rookie team). We noticed that the backups that we have been saving are starting to get buried about 6 folder deep. We are going to try a fresh build at the deslktop to see what happens tomorrow. We have tried 2 cRio's and 2 different programming computers and can reproduce the problem very regularly.

Our current work around is very time consuming.
We modify our code.
We re-flash the cRio (about 6 minutes)
We then can Run the code from Robot main to test. If we have enough time, we can adjust code and re-run to test.
Once testing is complete, we build and then Run at Startup.(about 2 minutes)
As you can see, just the flash and run at startup takes a good 8 to 10 minutes. This does not leave much room for testing when you have scheduled matches 8 to 12 minutes apart.
If we run at startup, our next code change will require another re-flash of the cRio.

Some people are thinking that we are corrupting the cRio if we do a run-continious and/or use the red stop button after testing. we tested this tonight and using only Run and the Finish button in Robot Main and still locked up the cRio trying to run a test.

Any assistance would be greatly appreciated.

Thanks in advance from Team 5201

Last edited by Sparktracer : 05-04-2014 at 22:22. Reason: problem solved
Reply With Quote
  #2   Spotlight this post!  
Unread 04-04-2014, 23:30
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,560
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: Reflash of cRio to deploy labview code

Rather the doing a full re-image of the cRIO, try going to the imaging tool and turning on the no-app switch and then reboot the cRIO, reload your code, and then go back the imaging tool and turn off the no-app switch. Unless the cRIO image is actually getting corrupted (not likely), this is a faster way to get no code running on the cRIO. The most common reason for deployment errors like this is the code already running on the cRIO.

To get to the root cause of the problem, what is the cRIO CPU usage and RAM usage when running. These are shown in the Driver Station charts tab. Swamping the CPU or using too much ram may interfere with the deploy process.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-04-2014, 22:21
Sparktracer Sparktracer is offline
Registered User
FRC #3535
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Lapeer, Mi
Posts: 2
Sparktracer is an unknown quantity at this point
Re: Reflash of cRio to deploy labview code

Joe,
Thank you for your reply. I had worked with Andy from NI in the past and we have seen issues when using the no-app switch. I agree that this is a faster way to load code, but not the fix to the root of the problem.

Working with the CSA at Troy, we were able to locate the root cause of the problem.

We had a ref call in periodic tasks that had accidentally been disabled in begin. This was causing the controller to lock up during a deploy.

If you happen to have this problem, or one very similar, verify that you have good code in periodic tasks.
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 07:30.

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