|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||||
|
|||||
|
Re: how to remove deployed code?
Deploying new code will overwrite the old code, no need to delete it.
|
|
#3
|
||||||
|
||||||
|
Re: how to remove deployed code?
just run as startup your new code.
|
|
#4
|
|||
|
|||
|
Re: how to remove deployed code?
Does Re-imaging the cRIO delete everything that was stored in it?
|
|
#5
|
|||
|
|||
|
Re: how to remove deployed code?
Quote:
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)?? |
|
#6
|
|||||
|
|||||
|
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?
|
|
#7
|
|||||
|
|||||
|
Re: how to remove deployed code?
ftp to the cRIO and delete the file:
C:\ni-rt\startup\startup.rtexeIf you check the Properties of your Build Specification, these details are on the first page. Target Destination Directory Last edited by Mark McLeod : 27-02-2011 at 20:49. |
|
#8
|
||||
|
||||
|
Re: how to remove deployed code?
Quote:
|
|
#9
|
|||
|
|||
|
Re: how to remove deployed code?
I believe the "Unset as startup" will do what you want.
Greg McKaskle |
|
#10
|
|||||
|
|||||
|
Re: how to remove deployed code?
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? |
|
#11
|
|||
|
|||
|
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 |
|
#12
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 01-03-2011 at 07:57. |
|
#13
|
|||
|
|||
|
Re: how to remove deployed code?
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.
|
|
#14
|
||||
|
||||
|
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.) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|