Go to Post Don't put any weight into the OPR. It's ugly and its momma dresses it funny. - wilsonmw04 [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 01-02-2012, 21:42
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Problem uploading code to cRio

Its me again, this time needing help with the cRio. I can connect the cRio to the computer and deploy code to the cRio, but when i log into the driver station user, the led for robot code is red. The cRio is correctly imaged for labview and the deployment dialog box automatically closes when the deployment is complete, just like it should. I need a little help.
  #2   Spotlight this post!  
Unread 01-02-2012, 21:48
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Problem uploading code to cRio

did you input your team number into the box on the setup tab? It needs to have the IP of 10.40.58.5 for it to work for you.

Also, make sure you are clicking the run button from Robot Main.vi, or nothing will work at all.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #3   Spotlight this post!  
Unread 01-02-2012, 21:54
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Re: Problem uploading code to cRio

The ip address was actually the first thing i checked, and i also deployed the code from the robot main.vi. I wasn't sure if this was a rookie programmer's mistake or not lol. I don't know much about programming, but i am learning as i go, but these little things frustrate me a little but oh well, happens.
  #4   Spotlight this post!  
Unread 01-02-2012, 21:57
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Problem uploading code to cRio

Hmm.. those are the only things I can think of to troubleshoot it. Have you tried building and running the code as startup? I know it does take longer, but if it works, then that would confuse me even more.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #5   Spotlight this post!  
Unread 01-02-2012, 22:02
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Re: Problem uploading code to cRio

What do you mean by "building and running the code as startup"? As I said, i am a rookie programmer still learning and getting used to all of the programming jargon. Lol
  #6   Spotlight this post!  
Unread 01-02-2012, 22:26
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Problem uploading code to cRio

In the project explorer, down at the bottom, there is a yellow icon next to what I believe to remember to be FRC Startup Program (or something of the like, its the one all the way down on the list). Click the plus symbol to the left of that, and a new thing will drop down. Right click on this new icon and click on "Build". Once that has happened, right click that icon again, and select "Run as Startup". This will load your code onto the robot and it will remain there until you overwrite it using the same method. Using the run button will only keep the code in the controllers memory until it is rebooted, where it will be deleted. This will make it permanent.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #7   Spotlight this post!  
Unread 02-02-2012, 07:12
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Re: Problem uploading code to cRio

Oh okay, I will try that when i get there today. Thanks for the help. I thought that when the code was run, it would stay on the cRio, but i guess i was wrong
  #8   Spotlight this post!  
Unread 02-02-2012, 14:17
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Problem uploading code to cRio

It took us over 2 weeks when it was first released to finally find that one line in that obscure manual on some other site to realize that's what you have to do to keep it on there.. So don't feel bad about it.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #9   Spotlight this post!  
Unread 02-02-2012, 16:10
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Re: Problem uploading code to cRio

Thanks, Cecil, that worked. So everytime i need to deploy code i need to build and then run as startup? That makes sense. Thanks once again
  #10   Spotlight this post!  
Unread 02-02-2012, 21:16
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Problem uploading code to cRio

You can attempt to run the program from Robot Main.vi, as you were trying to do. Doing this, you can open up your code and do what is called a "probe" to see what values are being input or output from any wire. As I said though, this code will not remain on the controller after a reboot. The only way to permanently keep the code on the controller is using the Build and Run as Startup method. Good luck this year!
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #11   Spotlight this post!  
Unread 03-02-2012, 08:04
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Re: Problem uploading code to cRio

Thanks for all the help.
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 19:00.

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