LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inquiry - What is your Modularity Index?

That's funny. My project has a modularity index of 0. But that's because everything I write goes into vi.lib and doesn't count as a user VI (of which I have none)!
Jarrod S.
National Instruments
Message 11 of 52
(3,539 Views)

@jarrod S. wrote:
That's funny. My project has a modularity index of 0. But that's because everything I write goes into vi.lib and doesn't count as a user VI (of which I have none)!



LOL Smiley Very Happy i was wondering where is the little man inside the bachine box Smiley Very Happy
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 12 of 52
(3,520 Views)
bachine box?
0 Kudos
Message 13 of 52
(3,485 Views)
Just a question...

Modularity Index = (# user VIs   /    total # of nodes ) *
100

Is the # user VIs the recursive number, or just the subvi's directly in the
main? The metrics tool only gives the recursive number?

(If I use it on my Main vi, I get 338/53*100 = 638 )

Regards,

Wiebe.



0 Kudos
Message 14 of 52
(3,485 Views)
I started to write a VI to calculate this, but determined this is a recursive problem and don't have time to work on it.

I've posted the VI here if anyone is interested...
0 Kudos
Message 15 of 52
(3,474 Views)

For my largest project, I got an index of 1.92... BTW, I'm using LV 8.2 and found the tool in Tools\Profile\VI Metric...

 

I guess this says I should be more modular, but I like my style!!Smiley Happy

 

Tom

Message 16 of 52
(3,459 Views)
Hi Wiebe,
   I suppose it is meant to be recursive, ie the total number of subVI in  your project, excluding vi.lib files.  About vi.lib, you can include them if you heve developed then, maybe, it'd be interesting to get the opinion from Peter Blume... it imagine 638 is quite an high index....

   Have a nice day!
graziano
0 Kudos
Message 17 of 52
(3,455 Views)
Hi Phillip,
   can you post that VI for LV 7.1? If it doesn't take too much time.... thanks!

graziano
0 Kudos
Message 18 of 52
(3,454 Views)
Message 19 of 52
(3,450 Views)
Graziano, I've updated the post to include a 7.1 version.
Message 20 of 52
(3,441 Views)