LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to quickly determine what VI's are not called by another VI in my project?

I am new to NXG and am learning. I appreciate all the help the community has offered.

 

In the course of developing my first app I created a lot of VI's that were called by other VI's. I would do something with a VI and then later determine that it was no longer needed. Now that my app is mostly finished a lot of these VI's are not needed - orphaned if you will.

 

Is there a quick way to determine what VI's are needed by my main app -or- more helpful - what VI's are no longer needed by my main app so I can delete the unneeded VI's.

 

This question also pertains to enums and gtypes.

0 Kudos
Message 1 of 9
(1,200 Views)

Hi flycast,

 

in classic LabVIEW you can use the VI Hierarchy window.

Or you can right-click items in the project and select "Find callers".

Or you can create a source distribution from your main VI, which includes its hierarchy…

(There might be problems finding VIs called dynamically.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(1,196 Views)

Hmmm... Hierarchy is nice.

There does not seem to be a "Find callers" in NXG when I RBC which is exactly what I would be looking for.

0 Kudos
Message 3 of 9
(1,182 Views)

@GerdW wrote:

in classic LabVIEW you can use the VI Hierarchy window.

Or you can right-click items in the project and select "Find callers".

Or you can create a source distribution from your main VI, which includes its hierarchy…

(There might be problems finding VIs called dynamically.)


Don't forget:

  • Right-click on project (top item in items view)...find items with no callers. (will also list the toplevel VI and stuff called by reference, so be careful).
  • You can also remove everything except the toplevel VI from the project, then copy everything (except vi.lib stuff) back from the (now possibly massive) dependencies branch. None of the orphans will come back.
  • Of course removing something from a project is not the same as removing these unneeded files from the disk hierarchy.
  • Sorry, not sure about NXG.
0 Kudos
Message 4 of 9
(1,144 Views)

Thanks for the responses. Unfortunately, it does seem to matter in that case as none of these LabView answers work or are available in NXG.

0 Kudos
Message 5 of 9
(1,101 Views)

I have to say, it's a little like saying, "Everyone who isn't here please raise their hands".  😄  Unfortunately, i don't have anything meaningful to contribute.  😞

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 6 of 9
(1,086 Views)

@billko wrote:

I have to say, it's a little like saying, "Everyone who isn't here please raise their hands".  😄  Unfortunately, i don't have anything meaningful to contribute.  😞


Yep. It seems when I started a 2 months ago my sales person started me down the NXG road. It seems most users have not embraced NXG. Many answers I get are from the LabVIEW perspective but they are more programming in nature so they translate. This is more of an IDE question. They just don't seem to translate as well.

0 Kudos
Message 7 of 9
(1,062 Views)

@flycast wrote:

@billko wrote:

I have to say, it's a little like saying, "Everyone who isn't here please raise their hands".  😄  Unfortunately, i don't have anything meaningful to contribute.  😞


Yep. It seems when I started a 2 months ago my sales person started me down the NXG road. It seems most users have not embraced NXG. Many answers I get are from the LabVIEW perspective but they are more programming in nature so they translate. This is more of an IDE question. They just don't seem to translate as well.


I really, really want to like NXG, but the combination of immaturity (maybe both NXG and myself) plus some design choices that I don't agree with has deterred me from using it for anything of even moderate complexity.  😞

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 8 of 9
(1,053 Views)

This works for classic LV.

op.png

Fortunately, I don't know how to do anything in NXG.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 9 of 9
(1,033 Views)