LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if a VI is used as a sub vi.

Is there a way to determine if a VI is used by other VI's? I do see "View-> Browse" options but that looks like it works only if you have the VI that uses the current VI open???

 

I need to see everywhere a VI is used.

0 Kudos
Message 1 of 5
(1,109 Views)

@flycast wrote:

Is there a way to determine if a VI is used by other VI's? I do see "View-> Browse" options but that looks like it works only if you have the VI that uses the current VI open???

 

I need to see everywhere a VI is used.


Right click in your project, and use Find>Callers. This will still only find callers in your project. Sometimes it incorrectly claims that VIs are still called, shortly after removing the call.

 

Open it, on the icon use Find All Instances (or from a sub VI instance of the VI), but that also only shows callers in memory.

 

One advantage of OO programming in LabVIEW is that class members are always loaded into memory...

0 Kudos
Message 2 of 5
(1,107 Views)

wiebe@CARYA wrote:

@flycast wrote:

Is there a way to determine if a VI is used by other VI's? I do see "View-> Browse" options but that looks like it works only if you have the VI that uses the current VI open???

 

I need to see everywhere a VI is used.


Right click in your project, and use Find>Callers. This will still only find callers in your project. Sometimes it incorrectly claims that VIs are still called, shortly after removing the call.

 

Open it, on the icon use Find All Instances (or from a sub VI instance of the VI), but that also only shows callers in memory.

 

One advantage of OO programming in LabVIEW is that class members are always loaded into memory...



wiebe@CARYA wrote:

@flycast wrote:

Is there a way to determine if a VI is used by other VI's? I do see "View-> Browse" options but that looks like it works only if you have the VI that uses the current VI open???

 

I need to see everywhere a VI is used.


Right click in your project, and use Find>Callers. This will still only find callers in your project. Sometimes it incorrectly claims that VIs are still called, shortly after removing the call.

 

Open it, on the icon use Find All Instances (or from a sub VI instance of the VI), but that also only shows callers in memory.

 

One advantage of OO programming in LabVIEW is that class members are always loaded into memory...


I believe your comment about class members also applies to library members (by default - I think you can set LV not to do this).

 

A quick way to find your VI in the project is View --> Find this VI in project.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 5
(1,077 Views)

@billko wrote:

wiebe@CARYA wrote:

@flycast wrote:

Is there a way to determine if a VI is used by other VI's? I do see "View-> Browse" options but that looks like it works only if you have the VI that uses the current VI open???

 

I need to see everywhere a VI is used.


Right click in your project, and use Find>Callers. This will still only find callers in your project. Sometimes it incorrectly claims that VIs are still called, shortly after removing the call.

 

Open it, on the icon use Find All Instances (or from a sub VI instance of the VI), but that also only shows callers in memory.

 

One advantage of OO programming in LabVIEW is that class members are always loaded into memory...



wiebe@CARYA wrote:

@flycast wrote:

Is there a way to determine if a VI is used by other VI's? I do see "View-> Browse" options but that looks like it works only if you have the VI that uses the current VI open???

 

I need to see everywhere a VI is used.


Right click in your project, and use Find>Callers. This will still only find callers in your project. Sometimes it incorrectly claims that VIs are still called, shortly after removing the call.

 

Open it, on the icon use Find All Instances (or from a sub VI instance of the VI), but that also only shows callers in memory.

 

One advantage of OO programming in LabVIEW is that class members are always loaded into memory...


I believe your comment about class members also applies to library members (by default - I think you can set LV not to do this).


For classes I'm sure you can't. Classes (incl it's members) are always loaded.

 


@billko wrote:s).

A quick way to find your VI in the project is View --> Find this VI in project.


Sure, but that wasn't the question?

0 Kudos
Message 4 of 5
(1,072 Views)

@flycast wrote:

I need to see everywhere a VI is used.


Define the term "used". I am not sure about your question, but unless the caller is open, running, reserved, or part of the same project, the Vi is not "used".

 

Is this a loose VI or part of a project? If this is in a project, "find callers" will do what you want within the scope of the project.

If you want to search your entire HD for any VI that depends on your VI anywhere in its hierarchy, that's probably a difficult task and you still won't find VIs that call your VI by opening a reference to it by file name.

 

Can you take a step back and explain what you are trying to achieve with all this?

0 Kudos
Message 5 of 5
(1,046 Views)