ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/9
2,190件の閲覧回数

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 件の賞賛
メッセージ2/9
2,186件の閲覧回数

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 件の賞賛
メッセージ3/9
2,172件の閲覧回数

@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.
メッセージ4/9
2,134件の閲覧回数

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 件の賞賛
メッセージ5/9
2,091件の閲覧回数

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 件の賞賛
メッセージ6/9
2,076件の閲覧回数

@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 件の賞賛
メッセージ7/9
2,052件の閲覧回数

@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 件の賞賛
メッセージ8/9
2,043件の閲覧回数

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 件の賞賛
メッセージ9/9
2,023件の閲覧回数