LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can we find duplicate/unused code in a project?

Is there a way to find duplicate/un-used code in a project?
Are there any utilities/toolkits or anything that might facilitate in this respect?

Have a pleasant day!
Thanks for your time!
0 Kudos
Message 1 of 9
(4,050 Views)
continue here
Message 2 of 9
(4,047 Views)
Thanks for pointing out the way mathan!
0 Kudos
Message 3 of 9
(4,044 Views)
Hi mathan,

why do you link to an unrelated thread? This thread suits much betterSmiley Very Happy
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 9
(4,041 Views)

None of your links relate better..

rashid, Use the navigation window to see if you have any functions or subVIs in any corner of the block diagram.. Smiley Wink

Use VI Analyzer to analyze and improve your code.



Message Edited by Vsh on 04-29-2008 04:48 AM
Message 5 of 9
(4,033 Views)
Thanks GerdW for pointing out one of my earlier post to which you had so kindly replied. But that post was about VI's that are redundant and not being used in the project (your solution was mighty useful and handy; saved me a lot of time; thanks for that), this post is about finding code being used in VI's (that are being used in the project) but contain parts (code) that is not being used in the project (like maybe they were ported from some other related project and now contains redundant code bits). My question was is there an automatic way of finding those code bits out and removing them.
Thanks for reply!
0 Kudos
Message 6 of 9
(4,025 Views)
Hi rashid,

your vis are used in the project, but parts of the vi aren't used in the project???

Or do you use disable-structures that often? Or case structures with constants wired to the case selector?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 9
(4,017 Views)
Yes those two are very useful diagnostic tools indeed, Vsh.
0 Kudos
Message 8 of 9
(4,010 Views)
Yes I was shown a VI that contained code that was not being used anywhere by my senior. He removed it and the project worked smoothly. In coding there are always better ways and bad ways of achieving the same target. So I was wondering if someway those portions can be removed that are extra/overkill to improve performance and reduce clutter.

Thanks for the reply GerdW!
0 Kudos
Message 9 of 9
(3,999 Views)