I have a LabVIEW application that I inherited that has a bunch of sub-VIs. In the course of cleaning it up I've discovered some of the included VIs are not used. I know I can use the VI Hierarchy to see every VI included as icons but this isn't that useful for comparing against a directory listing. Is there a(n easy) way to create a list of VIs used by a LabVIEW application? I just want a list.
LabVIEW VIs, or Virtual Instruments are the user interface and contain the code for a particular application.
Creating a SubVI from an Existing VI:Create a new VI and construct the following block diagram. Next, Select the section of the block diagram you want to convert and then select Edit»Create SubVI from the Tools menu. The selected section of the block diagram is replaced with an icon for the SubVI.
This download on the National Instruments website will save a list of all subVIs of a chosen VI to a text file.
If you just want to see the list (and have the application builder or the professional development system), choose Tools>Build Application and click the VI Settings tab.
Neither of these methods will tell you about dynamically loaded VIs, but you can check whether any of these are being used with Edit>Find>Objects and searching for Call by Reference Node and/or Invoke Node.
There may also be ways of doing this from the Project Explorer in LabVIEW 8 upwards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With