Go to Post Nothing you learn can truly prepare you for everything that comes your way. - sciguy125 [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 14-01-2013, 17:26
chriz4gx chriz4gx is offline
Registered User
AKA: Christopher Villar
FRC #2871 (Beantown Botz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston,MA
Posts: 45
chriz4gx is an unknown quantity at this point
FRC 2013 No Robot Code

So I recently imaged our teams FRC Crio. I imaged it and it was successful. I then wrote a small Labview code and deployed it to the Crio. But then when I connected the Crio to the Driver Station via Ethernet I only got a green indicator for Communication and Joystick, but a red Indicator for Robot Code. I cant figure out to fix this problem. Any help will by greatly appreciated . Thxs!
  #2   Spotlight this post!  
Unread 14-01-2013, 17:55
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,906
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: FRC 2013 No Robot Code

How did you deploy your code to the cRIO?

It should have been:
  1. Right-click on Build Specifications -> FRC Robot Boot-up Deployment
  2. Choose Build (will take a minute)
  3. When that's done
  4. Right-click on Build Specifications -> FRC Robot Boot-up Deployment
  5. Choose Run as startup (it gets transferred to the cRIO)
  6. Answer OK to questions.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 14-01-2013, 18:17
chriz4gx chriz4gx is offline
Registered User
AKA: Christopher Villar
FRC #2871 (Beantown Botz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston,MA
Posts: 45
chriz4gx is an unknown quantity at this point
Re: FRC 2013 No Robot Code

What I did was that I just right clicked on Build Specifications and then Build All. Thxs for the help, will definitely try your steps tomorrow thank you so much.
  #4   Spotlight this post!  
Unread 15-01-2013, 02:16
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: FRC 2013 No Robot Code

You can also just run it from Robot Main. Don't HAVE to run as startup.
  #5   Spotlight this post!  
Unread 15-01-2013, 03:25
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: FRC 2013 No Robot Code

Quote:
Originally Posted by Wildcats1378 View Post
You can also just run it from Robot Main. Don't HAVE to run as startup.
Just to clarify, this is better for testing (we do this all through build season), but when you're at competition, you'll have to run your code as startup. We usually don't build and deploy it permanently until bag&tag day.
__________________
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)
  #6   Spotlight this post!  
Unread 15-01-2013, 08:12
jcbc's Avatar
jcbc jcbc is offline
Registered User
AKA: Julie
no team
 
Join Date: Aug 2010
Rookie Year: 2011
Location: PA
Posts: 53
jcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the rough
Re: FRC 2013 No Robot Code

Since installing the new LabVIEW version, our programmers seem to have found that you can no longer choose to just Deploy the robot code. The only way we've gotten the Driver Station Robot Code light to be on is to use Run as Startup when deploying code.
  #7   Spotlight this post!  
Unread 15-01-2013, 08:14
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,554
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: FRC 2013 No Robot Code

Quote:
Originally Posted by jcbc View Post
Since installing the new LabVIEW version, our programmers seem to have found that you can no longer choose to just Deploy the robot code. The only way we've gotten the Driver Station Robot Code light to be on is to use Run as Startup when deploying code.
To temporarily run the code on the cRIO, open robot main and click the run arrow and wait for it to deploy. This code will be removed on a reboot. If you stop the code using the stop-sign or the finish button, you will need to go back and click the arrow to re-deploy.

To permanently transfer the code to the robot and have it stay there, follow Mark's instructions to compile and then Run as Startup on the cRIO.
  #8   Spotlight this post!  
Unread 15-01-2013, 08:24
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,113
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: FRC 2013 No Robot Code

Quote:
Originally Posted by jcbc View Post
Since installing the new LabVIEW version, our programmers seem to have found that you can no longer choose to just Deploy the robot code. The only way we've gotten the Driver Station Robot Code light to be on is to use Run as Startup when deploying code.
There's a checkbox on the cRIO Imaging Tool screen that tells the system to "always run deployed code". If that wasn't selected, then a simple Deploy won't result in the code being run.
  #9   Spotlight this post!  
Unread 15-01-2013, 09:16
jcbc's Avatar
jcbc jcbc is offline
Registered User
AKA: Julie
no team
 
Join Date: Aug 2010
Rookie Year: 2011
Location: PA
Posts: 53
jcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the rough
Re: FRC 2013 No Robot Code

Quote:
Originally Posted by Alan Anderson View Post
There's a checkbox on the cRIO Imaging Tool screen that tells the system to "always run deployed code". If that wasn't selected, then a simple Deploy won't result in the code being run.
Thanks! That has to be what is going on. I don't remember whether that box was checked when the programmers imaged the cRIO. I'll have them check and re-image if necessary.
  #10   Spotlight this post!  
Unread 15-01-2013, 13:51
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: FRC 2013 No Robot Code

Are you still required to build the project if you have the cRIO set to run deployed code on startup?
__________________

CTO/Head Programmer of Team 1710

  #11   Spotlight this post!  
Unread 15-01-2013, 14:06
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,906
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: FRC 2013 No Robot Code

All new code must be Built before transferring it to the robot permanently. It doesn't have to be Built at any other time. LV will tell you whenever it needs to be Built.
You don't have to build it if running in debug mode, or not transferring it to the robot.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 15-01-2013 at 17:39. Reason: too many l's
  #12   Spotlight this post!  
Unread 15-01-2013, 15:10
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,113
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: FRC 2013 No Robot Code

Running Robot Main will copy all the necessary VIs to the cRIO's RAM and execute everything there. It does not save anything to the cRIO's flash memory, so the next time the cRIO boots up it will run whatever it had stored previously. It's useful for testing and tweaking and debugging, but it doesn't survive a reboot.

Choosing Build compiles all the project's VIs into a real-time executable file that the cRIO knows how to run. It doesn't put that file anywhere on the cRIO, though. You can do it even if your cRIO isn't connected.

Choosing Deploy copies into the cRIO's flash memory whatever real-time executable file was most recently built. It doesn't explicitly set that file to be run when the cRIO boots up, but if you've imaged the cRIO with the "always run deployed code" option set the file will be run anyway.

Choosing Run as startup copies the real-time executable file to the cRIO's flash memory and sets things up so that the file will be run when the cRIO boots up.

There's no good reason to use Deploy. Get in the habit of always doing Build followed by Run as startup when you want to put a program on the cRIO.
  #13   Spotlight this post!  
Unread 15-01-2013, 17:22
Bruno#1382's Avatar
Bruno#1382 Bruno#1382 is offline
Registered User
FRC #1382
 
Join Date: Jan 2013
Location: Brazil
Posts: 19
Bruno#1382 is an unknown quantity at this point
Re: FRC 2013 No Robot Code

you can try to reboot the cRio via driver station we try this and it works
  #14   Spotlight this post!  
Unread 15-01-2013, 23:20
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: FRC 2013 No Robot Code

Quote:
Originally Posted by Alan Anderson View Post
There's no good reason to use Deploy. Get in the habit of always doing Build followed by Run as startup when you want to put a program on the cRIO.
Thanks for the clarification Alan. I have always used the Build > Run as Startup method. Just didn't know you could deploy it in a different manner.
__________________

CTO/Head Programmer of Team 1710

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 02: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