LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inquiry - What is your Modularity Index?

Hi All!
   I finally had my copy of "The Labview Style Book", and at pafe 13, I've found:
 
     Equation 1.1
     Modularity Index = (# user VIs   /    total # of nodes ) * 100

    The author recommends a MI above 3, in my projects I've found that usually I modularize a little bit more, above 4.....


   So, I'm just curious to know... what is your modularity index?  Check your projects, and post, it's easy! Just go on tools --> VI metrics....

   Reply massively, especially gurus.... Smiley Happy

graziano
Message 1 of 52
(8,130 Views)
Hi Graziano,

I get values from 4.1 to 5.

What's the meaning of this value? Can you give an abstract of this page/formula?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 52
(8,109 Views)
Hi GerdW,
   thanks for answering!

   This is just an index to see how much you modularize your code, I mean, if this index is too low (for example, 1000 nodes in a single VI), your code will probably be a mess, while if the index is too high, it means that you create many subVIs, even when it is not really necessary... 

   Like in other engineering tasks, you have to tune heuristically this index, and what I'm interested in, here, is to see what's the trend.  Of course, this simple index doesn't tell too much, it's never easy to "measure" code, it's complexity, etc...

   Thanks again, and have a nice day!

graziano
Message 3 of 52
(8,095 Views)

Hi Graziano,

Is there a way to get those numbers if you don't have LV Pro?

Jim

LV 2020
0 Kudos
Message 4 of 52
(8,049 Views)
I would think it would depend on how one programs.  For instance, if you have a "flat" vi versus something like an action engine.
LV 8.6 on Windoze XP
Message 5 of 52
(8,043 Views)
Hi!
   I was wrong on the link above, it is in

   tools --> advanced --> VI metrics...

   I don't know if this utility is included in basic packages.... I'll check!

    Thanks for interesting in this!

graziano
0 Kudos
Message 6 of 52
(8,043 Views)
actually, from LV online help, it seems that this component is only available in "Professional" packages, and it seems to reside under tools --> Profile --> Vi metrics.

I was referring to LV 7.1

graziano
0 Kudos
Message 7 of 52
(8,039 Views)

Hi Graziano,

It is definitely in the menu with the "Full (Hah!) Developers Suite".  I was wondering if anyone had developed a VI to do this before it was put into the Pro menu.

Jim

LV 2020
Message 8 of 52
(8,034 Views)
I meant to say that it is definitely NOT in it.
Jim

LV 2020
0 Kudos
Message 9 of 52
(8,025 Views)
Hi Graziano
 
i found to have between 2.5 and 4.5 on my 6 latest projects.
in LV 8.2 it is under tools->profile->vi metrics
 
 
 
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 10 of 52
(8,021 Views)