Go to Post You just have to care enough to give it a try. Your mentors will appreciate the effort. - Koko Ed [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 04-02-2012, 13:41
Andrew T. Andrew T. is offline
Registered User
FRC #1241
 
Join Date: Nov 2010
Location: Rick Hansen S.S.
Posts: 8
Andrew T. is an unknown quantity at this point
How to deploy code?

Hi Guys,
I just want to know how to deploy the code to the robot. I know how to run it but i want to keep a code on the cRio. I looked everywhere but still can't find it. I appreciate your help.
-Andrew
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2012, 13:56
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: How to deploy code?

Make sure the robot is turned on and physically connected and navigate to Build Specifications> FRC Robot Boot Up Deployment. Right click it and Build. When that finishes right click it again and Deploy. Also if you didn't click automatically run as startup when you imaged the cRIO Right click it a 3rd time and run as startup.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2012, 20:20
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,795
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: How to deploy code?

Skip the "Deploy" step.
  1. Build
  2. Run as startup
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2012, 21:32
BenGrapevine's Avatar
BenGrapevine BenGrapevine is offline
Head Programmer
AKA: Tony Simmering
FRC #2549 (Millerbots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Minneapolis, Minnesota
Posts: 46
BenGrapevine is an unknown quantity at this point
Thumbs up Re: How to deploy code?

I don't know about anyone else, but this is what I do:

1. Plug a crossover cable into the cRIO (unplug the bridge cord or whatever that is called (ethernet cable) that is currently in the cRIO and place that instead) and into the ethernet port on the PC that contains the code
2. Turn the robot on
3. Open the program cRIO Imaging Tool, and apply "controller settings" (or something like that) once it's detected the cRIO
4. Go the project folder for your program in labVIEW, find "Build Specifications" (usually at the bottom, never seen it anywhere else ._.) and right click on it
5. Click on "Build"
6. Once complete right click on "Build Specifications" again and this time click "Deploy"
7. Turn the robot off, and unplug the crossover
8. Place everything where it needs to be (ethernet back into the cRIO, etc)

It seems to stay on there for me, but I know last year we had to do something like this:

Quote:
Skip the "Deploy" step.
1. Build
2. Run as startup
Hope that helps (may not I'm a bit scatterbrained at the moment)
__________________
Millerbots Team 2549
orange and blue
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2012, 22:27
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,112
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: How to deploy code?

Quote:
Originally Posted by BenGrapevine View Post
I don't know about anyone else, but this is what I do:

1. Plug a crossover cable into the cRIO (unplug the bridge cord or whatever that is called (ethernet cable) that is currently in the cRIO and place that instead) and into the ethernet port on the PC that contains the code
You shouldn't be disconnecting and reconnecting things like that. You can have many things on the network simultaneously. Just plug the programming computer into the robot's D-Link router along with the cRIO. You can even connect the computer wirelessly, so you can do reprogramming without having to have the robot physically tethered to anything.

Quote:
3. Open the program cRIO Imaging Tool, and apply "controller settings" (or something like that) once it's detected the cRIO
There is usually no need to use the Imaging Tool unless you want to change which language you're using, or to load or remove a CAN plugin, or if there's an updated image released.

Quote:
5. Click on "Build"
6. Once complete right click on "Build Specifications" again and this time click "Deploy"
If you want the code to run on the cRIO each time it's turned on, it's generally a good idea to click "Run as startup" instead of "Deploy".
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2012, 09:46
Andrew T. Andrew T. is offline
Registered User
FRC #1241
 
Join Date: Nov 2010
Location: Rick Hansen S.S.
Posts: 8
Andrew T. is an unknown quantity at this point
Re: How to deploy code?

I tried all those steps that all you guys posted but it still not working. When I reboot the robot, it says "No Robot Code." Is there any other way to deploying the code so each time I on the robot the code will be there.

-Andrew
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2012, 13:32
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,112
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: How to deploy code?

Quote:
Originally Posted by Andrew T. View Post
I tried all those steps that all you guys posted but it still not working. When I reboot the robot, it says "No Robot Code."
Check the cRIO's switches. Is perhaps the NO APP switch turned on? All switches should be off unless you know exactly why you would turn one on.

Quote:
Is there any other way to deploying the code so each time I on the robot the code will be there.
There are other less convenient ways to copy the standalone real-time executable file to the cRIO, but if "Build" followed by "Run as startup" does not work, the other methods aren't likely to work either.
Reply With Quote
  #8   Spotlight this post!  
Unread 07-02-2012, 15:17
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: How to deploy code?

I personally find the distinction between on and off with those switches very confusing so that may be your problem.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
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 11:43.

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