01-26-2012 02:38 PM
Over the last few years, many VI's have accumulated that are no longer called from anywhere within my project. The project is a main GUI plus two other VIs launched by VI server plus many hundreds of VIs. I am not using source control. Any easy way to do this?
01-26-2012 02:50 PM
@Andrew_Scott_SPCi.ca wrote:
Over the last few years, many VI's have accumulated that are no longer called from anywhere within my project. The project is a main GUI plus two other VIs launched by VI server plus many hundreds of VIs. I am not using source control. Any easy way to do this?
First BACK UP!
Yes create a Tree VI (a VI that contains the top-level VIs unsed in the app this includes the dynamcis).
Then crate source Distribution (in the project it is where you create buold-specs) and configure the Source Distribtion to presevere the hiarchy.
When you buld the Source Distribution it will pick-up every thing used by the tree and relink everythin in the new place with all of the dead code missing.
You may have to repeat the process after testing since there is always another dynamic VI somewher that gets missed.
After you are satified THEN delte to old stuff, DONE!
Ben
01-26-2012 02:56 PM
This is a common problem. See this thread for possible work-around: http://forums.ni.com/t5/LabVIEW/How-do-I-quot-clean-up-quot-a-Project/m-p/715299/highlight/true#M327...
01-27-2012 07:52 AM
@Andrew_Scott_SPCi.ca wrote:
I am not using source control.
BIG mistake. Don't say you weren't warned.
I can see it all now: a few months from now we shall see a post that says "Help! I can no longer open my VI!!! Is there any way to recover it? PLZ HLP!!!"