LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabled code still is listed in project dependancies

I have noticed that in my project, disabled code blocks in my top level vi for a cRIO target still are listed under that targets dependancies in the project tree.  It seems like this is a bug and can cause misleading investigations when you are searching for instances on a vi within your project.

0 Kudos
Message 1 of 4
(2,645 Views)

I would say that it is probably not a bug, but expected behavior.  Since the VI still references the subVI, even though it isn't called, it is still a part of the project hierarchy.  There were also some recent discussions about the unused instances of polymorphic VI's and whether those instances should show up in the VI hierarchy.  Some of those arguments would probably apply.

0 Kudos
Message 2 of 4
(2,637 Views)

@Ravens Fan wrote:

I would say that it is probably not a bug, but expected behavior.  Since the VI still references the subVI, even though it isn't called, it is still a part of the project hierarchy.  There were also some recent discussions about the unused instances of polymorphic VI's and whether those instances should show up in the VI hierarchy.  Some of those arguments would probably apply.


Case in point:

 

To do a "Source Distribution" you need all of the code so it must be included. An earlier version of LV had a bug where it did skip code that was disabled. This has since been corrected.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 4
(2,634 Views)

Ok, point taken.  Maybe the problem is in the find callers behaviour, perhaps there should be an option to skip disabled code.

0 Kudos
Message 4 of 4
(2,624 Views)