LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

list files in heirarchy

I want to be able to write to a file a list of the full path and names of all vis in a heirarchy or llb.  Is there a way to do this?
 
TIA,
Bill F
Message 1 of 6
(2,724 Views)
Write a small utility program that uses the All VIs in Memory property to extract a list of all the VIs that are open and then one at a time open a reference to a VI from that list read its path, append it to a string, and close the reference. All you have to do is open the hierarchy and run the utility. Alternately, you could have the utility load the top level VI in the hierarchy into memory too...
 
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(2,716 Views)
I would suggest getting the OpenG libraries from OpenG.org. First download OpenG Commander and then update all libraries. There is an application control library that will list all vi's in a hierarchy.
0 Kudos
Message 3 of 6
(2,710 Views)

Thanks for both answers.  I used a combination of both.  The openG tool is good but only provides the file name, not the path.  But it had in it the logic for the approach suggested by Mike, which I adapted.

 

Bill F

0 Kudos
Message 4 of 6
(2,697 Views)
That's excellent Bill!  Perhaps you'd be willing to share what you came up with.  You might save someone a bit work in the future.
0 Kudos
Message 5 of 6
(2,691 Views)
Ok here it is.  Very simple.  Pass in a path name and it generates a text file with the path to all the vis loaded
 
Bill F
Message 6 of 6
(2,682 Views)