09-09-2014 12:24 PM
Hi,
I am trying to get an estimate of SLOC for my project manager. Using the node count is good enough for our purposes. I am using LabVIEW 8.5. I want to use Tools->Profile->VI Metrics. However, our project has over 1200 VIs and everything is handled through a .lvproj. It would be nice if I could just select the Tools->Profile->VI Metrics setting from the .lvproj but this is greyed out. Is there any way to get a node count on my entire project easily or do I have to select the VI Metrics from all 1200 VIs? If this is the case, would I be correct in assuming that I should then do a count of the nodes from the actual name of the VI and not the total, so as to not count subVI's nodes twice as there are many that are called from multiple VIs(example: VI_Name.vi # of nodes, as opposed to -total- # of nodes)?
Thank you,
Roger Pennington
09-09-2014 01:07 PM
I think you just open your main VI?
09-10-2014 05:04 AM
I suppose that you have tried explaining to your project manager that SLOC is totally meaningless -- even for languages that have lines of code, which LV does not.
But even making the "translation" to number of nodes, the number is still meaningless. It assumes that a lower number is always better. But I guess bean counters that don't know how to actually do the work, have to have something to count.
So how 'bout 50400 -- that's 1200 * 42. It's a perfectly fine number and as valid as any other you might generate.
Mike...
PS: Where are your people from? I have some Penningtons in my family tree.
09-10-2014 09:11 AM
If you run this count from a top level VI (main.vi), it will tell you the nodes contained in all the subVIs it calls as well (at least in LV2014, I do not have LV8.5 installed on my computer). I think this would be the best method to figure out how many nodes are in the entire project assuming all of your code is called from the main.vi.
02-12-2015 12:29 AM
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner