LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding sub vis

I need to move and rename several vi's. I would like to have all code that uses these vis open when I rename them so that it will update when I do the save as. I tried opening all vis in our code structure but it took forever and crashed the computer. My next attempt I wrote code to open each vi and then check for the vis in question to produce a list. This worked but it took over 4 hours to do a little over 3000 vis. Is there a way better way to search for code that uses these vis. One thought I have is if I only opened top level vis since that would include all the sub vis but I have no idea how to do this except to track everything that was opened and then check to see if I did a vi. I think this would replace one search with another and would not save much time. I would appreciate any ideas.
 
Terrill
0 Kudos
Message 1 of 2
(2,450 Views)

This is REALLY dangerous, so make two or three back up copies of everything before you start...

 

There is a VI server (VI class) property called "Callees" that returns the names of the sub VIs of a main VI.  YOu could use this array of VI names, plus the File I/O primitive ofr copy, and delete, to create a routine that renames things automagically.

 

This is VERY VERY dangerous, but I think it is what you want to do for your project.

 

Just make back ups first...

Joel

0 Kudos
Message 2 of 2
(2,439 Views)