Go to Post Bottom line: if it confuses my mom, it is bad for FIRST. - Joe Johnson [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 26-02-2011, 16:38
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
how to remove deployed code?

I deployed my code and verified that it runs at startup. Now I want to take it off (it was only test code) and go back to developing my application.

Do I have to re-image the cRIO? Or is there a smarter way?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-02-2011, 16:50
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: how to remove deployed code?

Deploying new code will overwrite the old code, no need to delete it.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2011, 16:51
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: how to remove deployed code?

just run as startup your new code.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-02-2011, 17:13
Team 2524 Team 2524 is offline
Registered User
FRC #2524
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: New York
Posts: 48
Team 2524 is an unknown quantity at this point
Re: how to remove deployed code?

Does Re-imaging the cRIO delete everything that was stored in it?
Reply With Quote
  #5   Spotlight this post!  
Unread 27-02-2011, 20:27
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: how to remove deployed code?

Quote:
Originally Posted by Team 2524 View Post
Does Re-imaging the cRIO delete everything that was stored in it?
Yes, this does remove stored code, but I was looking for a less extreme method. I know I can overwrite my built and deployed code, but that is not what I am looking for.

If I run code on a "blank" cRIO, the code is transient, and disappears when I power down the bot. That it the state I would like to return to. I want to see that red "No Robot Code" light when I power up the bot.

Anyone know how to do this (aside from using the No App switch)??
Reply With Quote
  #6   Spotlight this post!  
Unread 27-02-2011, 20:32
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: how to remove deployed code?

You've piqued my curiosity now. Why would you want to do this? What does this accomplish that overwriting doesn't?
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #7   Spotlight this post!  
Unread 27-02-2011, 20:32
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,833
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: how to remove deployed code?

ftp to the cRIO and delete the file:
C:\ni-rt\startup\startup.rtexe

If you check the Properties of your Build Specification, these details are on the first page.
Target Destination Directory
Target filename
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-02-2011 at 20:49.
Reply With Quote
  #8   Spotlight this post!  
Unread 28-02-2011, 00:20
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: how to remove deployed code?

Quote:
Originally Posted by gnunes View Post
Yes, this does remove stored code, but I was looking for a less extreme method. I know I can overwrite my built and deployed code, but that is not what I am looking for.

If I run code on a "blank" cRIO, the code is transient, and disappears when I power down the bot. That it the state I would like to return to. I want to see that red "No Robot Code" light when I power up the bot.

Anyone know how to do this (aside from using the No App switch)??
I too would like to know why you want to do this? Is this to prevent "bad code" from running accidently?
Reply With Quote
  #9   Spotlight this post!  
Unread 28-02-2011, 09:29
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,752
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: how to remove deployed code?

I believe the "Unset as startup" will do what you want.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 28-02-2011, 09:42
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,833
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: how to remove deployed code?

Quote:
Originally Posted by Greg McKaskle View Post
I believe the "Unset as startup" will do what you want.

I wasn't sure which would win in the conflict with the cRIO Imaging Tool's:
"Always run deployed code at startup"
Does Unset actually move the executable out of the startup directory?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #11   Spotlight this post!  
Unread 28-02-2011, 21:23
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,752
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: how to remove deployed code?

That is a good question. I believe the Always run feature looks in the same directory for something called StartUp....backup. I'm not sure I'll find time to test what the Set and Unset do, but I thought the change was to the ini file.

Greg McKaskle
Reply With Quote
  #12   Spotlight this post!  
Unread 28-02-2011, 22:57
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,833
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: how to remove deployed code?

I was able to test tonight and Unset doesn't appear to do or affect anything any longer for our FRC application (if the cRIO Imaging's "Always run deployed code at startup" has been set).
I know it worked in 2009 before the cRIO Imaging addition, but was disabled soon after.
It toggles, but the code still starts and I didn't find any .ini file changes.

So the override insures that if code is there it will run under any circumstances.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-03-2011 at 07:57.
Reply With Quote
  #13   Spotlight this post!  
Unread 28-02-2011, 23:17
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: how to remove deployed code?

Quote:
Originally Posted by Mike AA View Post
I too would like to know why you want to do this? Is this to prevent "bad code" from running accidently?
Yes, but that is not the main reason. In development, I just want to download the code, I don't want to build it and then download it. If you do it this way, the front panel to the code is "live" on your computer, and you can change the value of controls (and therefore tune your program) without having to stop the program or re-download. It saves a lot of time... You can do this on top of code that has been "saved as startup", but then you have to click through some annoying dialog about VIs with the same name being replaced.
Reply With Quote
  #14   Spotlight this post!  
Unread 02-03-2011, 10:13
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: how to remove deployed code?

Ah. You can prevent code from running automatically by unchecking "always run code on startup" in the cRIO reimaging tool.
(When you deploy code as startup, it is startup. When you do a temporary deployment, it unsets that other code as startup. The "always run code on startup" searches for something called "startup.rtexe" if there is no code set as startup.)
__________________
-- Marshal Horn
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 20:36.

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