Go to Post Our robot weighed 168lbs..... bring it on Trimspa!!! - slickguy2007 [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 11-02-2009, 10:01
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Question changing code after it's set to run at startup

So, assuming we built and deployed code to the cRIO, and it's set to run at startup...

How can we edit it? Or remove it so we can upload something else? I'm a little hazy on how permanent a "run at startup deployment" actually is. Would we be able to simply designate new code, after it's built, to run at startup? And then that would just over write whatever is already there and 'running' ?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2009, 10:30
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: changing code after it's set to run at startup

Quote:
Originally Posted by smcmahon View Post
So, assuming we built and deployed code to the cRIO, and it's set to run at startup...

How can we edit it? Or remove it so we can upload something else? I'm a little hazy on how permanent a "run at startup deployment" actually is. Would we be able to simply designate new code, after it's built, to run at startup? And then that would just over write whatever is already there and 'running' ?
The code that you see in labview is called "source code" and exists on your PC in a directory usually named after the project that you have open.

What runs on the robot is an executable form of your project. When you deploy as Run At Startup, it executable is replaced with the new executable based on your source code.

When you edit, you are editing the source code on your PC.

I very, very strongly suggest that your students stop and watch the Tip Jar Video Tutorials #5 through #8 (inclusive) before proceeding any further. This will give your students a good minimum understanding of the basics.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2009, 11:56
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Re: changing code after it's set to run at startup

So, as I understand it, if we re-deploy updated code, it will automatically replace the current executable that's residing witin the cRIO? As long as it's set to Run At Startup?


BTW: We did watch all the LVMastery videos, 5-12 (I believe Mr. Zimmer is on 12 now anyways...). We got so much out of them, and thought they were so good, that we sent the hyperlink to our Regional Director here in Pittsburgh, which she then sent to the other Pittsburgh-based teams.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2009, 12:04
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: changing code after it's set to run at startup

That is my understanding as well. You have to deploy as Run at Startup. If you just Run, it will not be permanent.

BTW, Mr. Zimmer is up to #16... Good stuff!

Best of luck,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...

Last edited by Mike Betts : 11-02-2009 at 12:07.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2009, 19:36
Brdn666's Avatar
Brdn666 Brdn666 is offline
Registered User
AKA: Brandon
FRC #2604 (Metal & Soul)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Capac, MI
Posts: 24
Brdn666 is an unknown quantity at this point
Send a message via Yahoo to Brdn666
Re: changing code after it's set to run at startup

All you have to do is re-build the code to do the changes. It's not worth building the code if you make changes every 20 mins.
__________________
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
cRio losing connection when "run as startup" mgurgol Programming 2 12-01-2009 12:18
KOP Gyro seems to run-on after turn stops PhilBot Control System 8 05-03-2007 12:43
How to set up and run a FF League properly. Alex Cormier Fantasy FIRST 4 27-02-2006 17:18
Changing Code Formatting in MPLAB!!! Yeah!!! Astronouth7303 Programming 1 09-03-2004 18:07
Robot motion after the time has run out. Randy Ai Rules/Strategy 1 06-01-2003 17:17


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

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