Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Our code won't stay on the robot/crio. (http://www.chiefdelphi.com/forums/showthread.php?t=89133)

jackforey 14-01-2011 15:57

Our code won't stay on the robot/crio.
 
Our code that we keep having to build onto the robot won't stay so we have to run the main each time how can we fix this or is this normal?

Mark McLeod 14-01-2011 17:31

Re: Our code won't stay on the robot/crio.
 
Do you do both of these actions?
  1. "Build"
  2. "Run as startup"

SuperS_5 14-01-2011 20:53

Re: Our code won't stay on the robot/crio.
 
I don't know if you already saw this, but here is a good walk-through of that process.
http://www.frcmastery.com/labview-fo...-startup-code/

tagayoff 16-01-2011 15:33

Re: Our code won't stay on the robot/crio.
 
Follow this link to a video that shows how it'e done.
http://www.frcmastery.com/labview-fo...-startup-code/

Eric Reed 18-01-2011 11:49

Re: Our code won't stay on the robot/crio.
 
Build is greyed out...quick advice?

Mark McLeod 18-01-2011 12:01

Re: Our code won't stay on the robot/crio.
 
1 Attachment(s)
It looks like this, but with the word "Build" grayed out?
Does your Project Explorer window look different from this one in other ways as well?

Flyer522 18-01-2011 12:03

Re: Our code won't stay on the robot/crio.
 
Are you deploying with the shown menu above? If so "Build" then "Deploy" should work.

The main toolbar menu might be grayed out in the beginning for build. I had that problem when I first started.

Eric Reed 18-01-2011 12:13

Re: Our code won't stay on the robot/crio.
 
Aaahh...yes we have that, thanks. I was looking at the "Tools" drop-down menu.

Mark McLeod 18-01-2011 12:23

Re: Our code won't stay on the robot/crio.
 
Quote:

Originally Posted by Flyer522 (Post 1002745)
The main toolbar menu might be grayed out in the beginning for build. I had that problem when I first started.

The main toolbar Project->Build will be grayed out if no Build Specification is selected. It doesn't know what it is you want to build.

In the picture I posted the highlighted line is selected.
There can be more than one of these Build Specifications as you get more sophisticated.

umangv620 18-01-2011 21:32

Re: Our code won't stay on the robot/crio.
 
Quote:

Originally Posted by Mark McLeod (Post 1000107)
Do you do both of these actions?
  1. "Build"
  2. "Run as startup"

When I permanently deploy, I don't choose Run as Startup... I just click Deploy since I just enable the code through Driver Station.

I'm not sure whether or not Run as Startup actually enables code as soon as you turn on the robot(like it did two years ago) since it (must?) receive an enable signal from the DS, but choosing Deploy itself might be safer.

Mark McLeod 18-01-2011 23:26

Re: Our code won't stay on the robot/crio.
 
Quote:

Originally Posted by umangv620 (Post 1003145)
I'm not sure whether or not Run as Startup actually enables code as soon as you turn on the robot(like it did two years ago) since it (must?) receive an enable signal from the DS, but choosing Deploy itself might be safer.

"Run as startup" is safer to use.

Both are functionally equivalent if you chose the "Always run deployed code at startup" option when you formatted/imaged your cRIO.
If you don't chose that option then the deployed code will not execute when you power up your robot and it'll just sit there on the field, like a rock.

A normal operational robot always has it's code running if it's on.
The Driver Station doesn't activate your code on the robot. It just enables/disables the outputs so your motors will do what your code has been telling them to do all along.


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

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