02-28-2026 12:19 PM
The View >> Browse Relationships >> This VI's SubVIs menu option reveals the names and icons of all subVIs used in a given VI.
Is it possible to retrieve this information programmatically?
Solved! Go to Solution.
02-28-2026 02:59 PM
02-28-2026 03:02 PM - edited 02-28-2026 03:03 PM
You might try turning on VI scripting nodes under tools\options\vi server\VI Scripting
It looks like there may be property nodes that return references to subvis found on a VIs block diagram
02-28-2026 03:10 PM - edited 02-28-2026 03:14 PM
@gt8860a wrote:
It looks like there may be property nodes that return references to subvis found on a VIs block diagram
Property "SubVIs[]" of class "Diagram" only gives SubVIs at the same level as the diagram, it does not get SubVIs in nested subdiagrams recursively.
03-01-2026 01:56 AM
Thanks both!
03-02-2026 10:23 AM
You can also use "Get VI Dependencies". No scripting needed => works in exe.
03-04-2026 07:54 PM - edited 03-04-2026 08:42 PM
To find common SubVIs of given multiple VIs, in addition to call the above VI in a FOR loop, we can also create a project programmatically and add all VIs to it. And then retrieve dependencies from the project. Save the trouble to remove duplicates.
A slow motion video attached.