From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a tool that removes all VIs not in memory, in a folder and its subfolders

Anybody have such a tool they'd share?
0 Kudos
Message 1 of 5
(2,161 Views)

Would you settle for the invers function i.e. copies all VI's in memory to a new location ?

In LV 7.1 and prior that would be save with options single prompt preserve hierachy

In LV 8.X and forward, create a source distribution with similar settings.

Otherwise, please ignore this post.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(2,158 Views)
Theres a property of application called All VIs in memory. This will give you an array of VI names. Now get all the files in a directory using List Folder.vi, search the array of VIs in memory for each file, if it's not found, delete it.
0 Kudos
Message 3 of 5
(2,151 Views)
That'll work, thanks.
0 Kudos
Message 4 of 5
(2,149 Views)

Also, I was just playing around with this and remembered that there is a VI in the advanced file functions palette called Recursive File List.vi. I think it's new in 8.2, so if you have it you can use it to get filenames for all subfolders as well.

Message Edited by Marc A on 02-27-2007 02:00 PM

0 Kudos
Message 5 of 5
(2,145 Views)