Go to Post i wish ours was done so i could get some sleep - keagara [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 14-01-2011, 15:57
jackforey jackforey is offline
Registered User
FRC #3717
 
Join Date: Jan 2011
Location: California
Posts: 8
jackforey is an unknown quantity at this point
Cool 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?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2011, 17:31
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: Our code won't stay on the robot/crio.

Do you do both of these actions?
  1. "Build"
  2. "Run as startup"
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2011, 20:53
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
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/
__________________
Mike B
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2011, 15:33
tagayoff's Avatar
tagayoff tagayoff is offline
Registered User
FRC #3512
 
Join Date: Jan 2011
Location: Santa Maria,CA
Posts: 40
tagayoff is a jewel in the roughtagayoff is a jewel in the roughtagayoff is a jewel in the roughtagayoff is a jewel in the rough
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/
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2011, 11:49
Eric Reed Eric Reed is offline
I am somebody now!
#0481 (De Anza Robotics Team)
 
Join Date: Jun 2001
Location: Richmond, CA
Posts: 103
Eric Reed will become famous soon enoughEric Reed will become famous soon enough
Re: Our code won't stay on the robot/crio.

Build is greyed out...quick advice?
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2011, 12:01
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: Our code won't stay on the robot/crio.

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?
Attached Thumbnails
Click image for larger version

Name:	Build.jpg
Views:	210
Size:	42.6 KB
ID:	9721  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2011, 12:03
Flyer522's Avatar
Flyer522 Flyer522 is offline
Registered User
AKA: Holton
FRC #3753 (Raptor Robotics)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Baton Rouge, LA
Posts: 20
Flyer522 is an unknown quantity at this point
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.
__________________
Team 3753 | Raptor Robotics
2011 Bayou Regional Highest Rookie Seed Award
2011 Bayou Regional Quarter-Finalist (w/ 1912 & 3672)
2012 Bayou Regional Quarter-Finalist (w/ 1912 & 1927)

Data is not information.
Information is not knowledge.
Knowledge is not understanding.
Understanding is not wisdom.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2011, 12:13
Eric Reed Eric Reed is offline
I am somebody now!
#0481 (De Anza Robotics Team)
 
Join Date: Jun 2001
Location: Richmond, CA
Posts: 103
Eric Reed will become famous soon enoughEric Reed will become famous soon enough
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2011, 12:23
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: Our code won't stay on the robot/crio.

Quote:
Originally Posted by Flyer522 View Post
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 18-01-2011, 21:32
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Our code won't stay on the robot/crio.

Quote:
Originally Posted by Mark McLeod View Post
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.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #11   Spotlight this post!  
Unread 18-01-2011, 23:26
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: Our code won't stay on the robot/crio.

Quote:
Originally Posted by umangv620 View Post
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-01-2011 at 23:29.
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 10:10.

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