Go to Post FIRST may very well be the healthiest drug on the market. - Herodotus [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 15-02-2009, 13:36
Bill Taylor Bill Taylor is offline
Registered User
FRC #0388
 
Join Date: Dec 2008
Location: Grundy, VA
Posts: 12
Bill Taylor is an unknown quantity at this point
Question 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.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2009, 13:45
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
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.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2009, 15:34
Derek Allen's Avatar
Derek Allen Derek Allen is offline
Head Programmer
FRC #1785 (Jagwired Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Blue Springs, MO
Posts: 13
Derek Allen is an unknown quantity at this point
Send a message via MSN to Derek Allen Send a message via Yahoo to Derek Allen
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?
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2009, 16:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2009, 16:28
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: Code deploys but does not save to cRIO

Quote:
Originally Posted by Derek Allen View Post
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2009, 22:03
Bill Taylor Bill Taylor is offline
Registered User
FRC #0388
 
Join Date: Dec 2008
Location: Grundy, VA
Posts: 12
Bill Taylor is an unknown quantity at this point
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.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2009, 12:36
Jill Jill is offline
Registered User
FRC #2197 (Las Pumas)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: New Carlisle, IN
Posts: 12
Jill is an unknown quantity at this point
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?
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2009, 15:42
Bandgeek80001 Bandgeek80001 is offline
Registered User
FRC #2867
 
Join Date: Jan 2009
Location: Elkhart, IN
Posts: 16
Bandgeek80001 is an unknown quantity at this point
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?
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2009, 20:22
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #10   Spotlight this post!  
Unread 31-01-2012, 19:32
cyberdogs4257NM cyberdogs4257NM is offline
Registered User
AKA: CyberDog's Team
FRC #4257 (CyberDogs)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Aurora, OR
Posts: 6
cyberdogs4257NM is an unknown quantity at this point
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??
Reply With Quote
  #11   Spotlight this post!  
Unread 01-02-2012, 11: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,741
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: 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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2012 at 11:23.
Reply With Quote
  #12   Spotlight this post!  
Unread 15-02-2012, 20:30
cyberdogs4257NM cyberdogs4257NM is offline
Registered User
AKA: CyberDog's Team
FRC #4257 (CyberDogs)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Aurora, OR
Posts: 6
cyberdogs4257NM is an unknown quantity at this point
Re: Code deploys but does not save to cRIO

Thanks. We figured it out.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Program Compiles and Deploys, but the sidecar doesn't connect pj174208 Programming 1 14-02-2009 18:26
Crio network light does not light when camera plugged in Bongle Programming 16 16-01-2009 11:00
cRIO wont save program Arcre NI LabVIEW 5 07-01-2009 11:45
URGENT HELP: IR board TRAINS but does not RECIEVE dan_h Sensors 6 20-02-2008 20:31
frc_camera not working but labview does Issues Programming 7 18-01-2006 19:23


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

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