LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove unused VIs from project

Hello,
 
how can I remove unused VIs from my project explorer and disk space? I use dynamic calls too. One way is to cerate source distribution, but what is with dynamic calls? Other suggestions?
 
Thanks
0 Kudos
Message 1 of 8
(4,755 Views)

Hi Eugen,

i needed it too. I solve the problem with the dynamic called vi´s with load my full project into memory, than use the function to read all vi´s in memory and compare this once with all vi´s existing in a specified folder. After that i delete all vi´s existing in the folder but not located in memory.

I hope it helps you.

Mike



Message Edited by MikeS81 on 01-19-2008 04:30 AM
0 Kudos
Message 2 of 8
(4,722 Views)

Thank you Mike.

No better ways to do it?

0 Kudos
Message 3 of 8
(4,694 Views)
I mantain a "Tree.vi" (a dummy VI containing all top level and dynamic VI's) to help mange files.
 
I just drop the Tree.VI in a new project and use that for the suorce distribution, saving it off to a new location. Then I delete all from the original place and move everything back.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 8
(4,691 Views)
Similar to the tree VI, I place the dynamically called VIs in a disabled case at the place they are called, because that's normlly the place I want to have a look at them.

Felix
0 Kudos
Message 5 of 8
(4,683 Views)
Thank you Mike, Ben and Felix.
0 Kudos
Message 6 of 8
(4,652 Views)

Hi Folks,

 

This is an old post but I was searching the same topic - google search led me to the following

 

"https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9dcSAC&l=en-GB"

 

might be oh help...

B

0 Kudos
Message 7 of 8
(3,023 Views)

It works but you have to click the options

 

(1) Remove unused members of project libraries

(2) Modify project library file after removing unused members 

 

Also - I found that it does no create the project itself in the newly created source distro folder - you can open the main top level VI and go File-Create Project and from there select Templates, Blank Project and it will ask if you wish to add one or more open VIs to the Project file. Select yes. Then afterwards you can add any library files to recreate the project structure. 

 

Rgds,

B

 

 

BJ_phy_0-1616672941196.png

 

Message 8 of 8
(3,017 Views)