Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   How to deploy code? (http://www.chiefdelphi.com/forums/showthread.php?t=101945)

Andrew T. 04-02-2012 13:41

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

j.cole 04-02-2012 13:56

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.

Mark McLeod 04-02-2012 20:20

Re: How to deploy code?
 
Skip the "Deploy" step.
  1. Build
  2. Run as startup

BenGrapevine 04-02-2012 21:32

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

Alan Anderson 04-02-2012 22:27

Re: How to deploy code?
 
Quote:

Originally Posted by BenGrapevine (Post 1120152)
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".

Andrew T. 05-02-2012 09:46

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

Alan Anderson 05-02-2012 13:32

Re: How to deploy code?
 
Quote:

Originally Posted by Andrew T. (Post 1120350)
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.

j.cole 07-02-2012 15:17

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.


All times are GMT -5. The time now is 11:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi