I am looking for a way to get a list of the vis used within the lvproj file. Is this possible?? I have functionality to obtain the vi calls made by a given vi but need to further filter based only on the vi's used in a project.
Currently I am forced to look through all of my vis when all I care about are the ones referenced by a project.
Solved! Go to Solution.
You can do this by recursing through the children of the project. Attached is a VI (LabVIEW 8.2) that I had written to compare a project to a file directory to see what files were missing from the project. You'd obviously only need the top hald.
Do with it as you wish. Just don't try to sell it as your own.
A lvproj file is essentially an HTML file. Read the xxx.lvproj with Read Text File VIs.
It's actually an XML file. That would also work. You can read the text file as lines, and then feed the array of lines into a loop. For each line see if the tag starts with "<Item Name" and it has Type="VI". The downside is that the URL given is relative to the folder, so if you actually wanted the full path you'd have to keep track of that as you parse the lines. Doable, but I'm not sure it's any easier than what I did.