LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find out and delete VIs that are NOT CALLED? I want to clean up my project.

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?

0 Kudos
Message 1 of 4
(2,281 Views)

@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

 

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 4
(2,276 Views)

@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!!!"

0 Kudos
Message 4 of 4
(2,240 Views)