Go to Post Theres just something about a big honkin' robot that's irresistible. - seanwitte [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 29-01-2013, 08:36
AquaMorph's Avatar
AquaMorph AquaMorph is offline
Alumnus and Mentor for 2059
AKA: Christian Colglazier
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2008
Location: Cary
Posts: 77
AquaMorph is on a distinguished road
Redeploying Code without reimaging the cRIO

I have been able to deploy code the the robot and it works fine. The problem I am having is every time I want to deploy new code, I have to reimaging the cRIO. Anytime I try to deploy code on top of existing code I get the "Unable to connect to Real Time Target" error. The weird thing is I am able to ping the cRIO. Is there something different you have to do when overwriting code?
__________________
FRC Drive: Play Store FRC Manager: Play Store
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2013, 08:39
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Redeploying Code without reimaging the cRIO

We had a problem several years ago where the code we had on the cRIO was using up 100% of the processing power, so we had to boot it into no code to load the new code onto it. It sounds like you could be having the same problem. Try toggling the "No Code" dip switch on and restart the cRIO, then load your code and toggle the dip switch back off, restart and you should have new code.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2013, 08:47
AquaMorph's Avatar
AquaMorph AquaMorph is offline
Alumnus and Mentor for 2059
AKA: Christian Colglazier
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2008
Location: Cary
Posts: 77
AquaMorph is on a distinguished road
Re: Redeploying Code without reimaging the cRIO

Quote:
Originally Posted by notmattlythgoe View Post
We had a problem several years ago where the code we had on the cRIO was using up 100% of the processing power, so we had to boot it into no code to load the new code onto it. It sounds like you could be having the same problem. Try toggling the "No Code" dip switch on and restart the cRIO, then load your code and toggle the dip switch back off, restart and you should have new code.
Where is this dip switch?
__________________
FRC Drive: Play Store FRC Manager: Play Store
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2013, 09:17
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Redeploying Code without reimaging the cRIO

Hmm, after looking at the picture, there doesn't seem to be any on the 4 slot version. There is a way to check the CPU usage on the cRIO when you are plugged into it, but I can't remember off of the top of my head how to do it. That would be another way to verify that the 100% usage is the problem. IF that does turn out to be the problem then you probably need to put some delays in some of your loops.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-01-2013, 09:46
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,731
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: Redeploying Code without reimaging the cRIO

There is a known bug when the Dashboard is operating that can block the download of new code.
The temporary workaround is to close the Dashboard before attempting to download code.

The NoApp switch for the 4-slot cRIO is reached through the cRIO Imaging tool (at the bottom of the window). The NoApp switch is set, then the cRIO needs to be reset for it to take effect.

The cRIO CPU % will be available on the Driver Station Charts tab after the next update release. Right now it's getting plotted incorrectly, so it can't be seen.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 29-01-2013 at 09:49.
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 04:31.

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