LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

locate all unused VIs in a project

I'm taking over some other guys project.....urggghhh, messy!   very messy, some VIs were not even used and some were.  Quick question, is there a quick way to locate all unused item other than trying to delete each item into recycler and see if labview complains?  Thanks
0 Kudos
Message 1 of 4
(4,641 Views)

One way is to save with the option "preserve hierarchy"... this way, only used VIs will be saved to the new folder(s).

Nevertheless, beware of dynamically called VIs, dll etc. you might have to manually copy them to the folder(s).

 

Hope above make sense in one way or another 😉 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 2 of 4
(4,624 Views)

I had written a tool once to compare 'all VIs in memory' with all VIs inside a project-root directory. On the one side to get all unused VIs (but it didn't recognize dynamically called vis), on the other side to find dependencies/cross-linking to other projects. It isn't too complicated to code a tool like this and you might find other use cases as well.

 

Felix 

0 Kudos
Message 3 of 4
(4,593 Views)

This works beautifully!

 

https://lavag.org/topic/1025-find-used-unused-vis-utility/

 

Accounts for dynamically called VIs. I have attached the code as well (free distribution is allowed but it cannot be sold)

Message 4 of 4
(4,126 Views)