Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Code deploys but does not save to cRIO (http://www.chiefdelphi.com/forums/showthread.php?t=74561)

Bill Taylor 15-02-2009 13:36

Code deploys but does not save to cRIO
 
heres what happens:

we have the laptop plugged by ethernet cable into the driver station. we will deploy the code we're working on and everything seems fine. the robot runs and all functions are OK till we stop. if we unplug the laptop and start the robot again nothing happens. its like we have to have a computer attached to the driver station to deploy each time we want the robot to work. it seems like the program we deploy is not saving to the cRIO.

How do we get our code to save on the cRIO so that it runs when it is powered up and without a laptop attached anywhere in the system? Is there a switch or something im supposed to flip or a special Save button? By the way, im not very computer savy so explain it in as much detail as possible please. thanks.

paulcd2000 15-02-2009 13:45

Re: Code deploys but does not save to cRIO
 
Ok, if you go to the project explorer window, and go down to where it says Build Specifications, then click the plus sign. Right click on FRC Boot-up Deployment, and click Build. Let it do its thing, then right click and hit run as startup. (you need to be communicating with the robot for this step). let it go until it asks to reboot. say yes. It should now do the code you built every time it boots.

Derek Allen 15-02-2009 15:34

Re: Code deploys but does not save to cRIO
 
I am having the same problem, but I dont have the FRC Boot Up Deployment. Is there a way i can get it?

Greg McKaskle 15-02-2009 16:26

Re: Code deploys but does not save to cRIO
 
It is a part of the template projects, both basic and advanced. If you don't have one, you can build it yourself. Here are the basic steps.

Go to the cRIO Build specs, right click and add a new RT EXE build spec. In the dialog that comes up add in the Robot Main as the startup VI, and I think that is it.

Greg McKaskle

Alan Anderson 15-02-2009 16:28

Re: Code deploys but does not save to cRIO
 
Quote:

Originally Posted by Derek Allen (Post 821366)
I am having the same problem, but I dont have the FRC Boot Up Deployment. Is there a way i can get it?

You probably have only one build specification, which was created properly for you when you created the LabVIEW project from the robot template. It might be called "FRC Basic Robot Deployment" or something similar. Right-click it and you should see the menu containing the Build and Run as Startup options.

Bill Taylor 15-02-2009 22:03

Re: Code deploys but does not save to cRIO
 
Awesome!
I see it now! Thanks guys, I would have never put that together by myself. That saved me a lot of headache.

Jill 16-02-2009 12:36

Re: Code deploys but does not save to cRIO
 
I'm trying to follow Paul's instructions, but every time it starts to deploy, it loses connection and then says it was completed with errors. Has anybody else had this problem?

Bandgeek80001 16-02-2009 15:42

Re: Code deploys but does not save to cRIO
 
We also have the problem with errors.

For some reason, it doesn't like it if we have more than one open joystick, open motor, etc. When it runs, only one of each type of vi can run.

Is there maybe a way to rename these?

Greg McKaskle 16-02-2009 20:22

Re: Code deploys but does not save to cRIO
 
The template code has multiple opens, so I don't think there is an issue there. What isn't allowed is doing multiple opens of the same resource without closing the first one. Instead of doing this, you will normally want to branch a wire or sore the refnum and use it in other loops.

Greg McKaskle

cyberdogs4257NM 31-01-2012 19:32

Re: Code deploys but does not save to cRIO
 
We're having the same problem and tried following what you said but there's no plus box next to build spesifications. What do we do now??

Mark McLeod 01-02-2012 11:20

Re: Code deploys but does not save to cRIO
 
  1. Right-click on "Build Specifications"
  2. Choose New -> Real-Time Application
  3. Give it any name "Build specification name"
  4. Click "Source Files" in the left Category column
  5. Choose your Main vi from the Project Files list
  6. Click the blue arrow next to the "Startup VIs" box. (That will put the Main vi in the Startup VIs box
  7. Click "OK" at the bottom
You should now see your new real-time application specification for the cRIO listed under Build Specifications, and you can do a "Build", followed by "Run as startup".

Did you start from a normal default Robot Project, or do you just want to download an example permanently?
The examples don't normally have a Build Specification, but the default code that you should really begin with, does.

cyberdogs4257NM 15-02-2012 20:30

Re: Code deploys but does not save to cRIO
 
Thanks. We figured it out.


All times are GMT -5. The time now is 22:27.

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