LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modularity index computation

Hello,

 

The company I work for is now getting into the VI metrics analysis of our programs and I am struggling with the Modularity Index. According to the Style book, the value is computed by

 

# of VIs / total node count * 100.

 

In the image, I get a value with the calculator that varies from what the Analyzer reports. Can someone tell me how the Analyzer computes that value?

 

Tay

0 Kudos
Message 1 of 6
(3,136 Views)

Hi Tay,

 

You are correct with the equation for the modularity index. I don't know why you are getting a modularity index of 0 for that vi. Could you post the vi for me to take a closer look?

 

Thanks!

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 2 of 6
(3,100 Views)

Here you go...

 

By the way, LabVIEW 2009 Service Pack 1

Message Edited by slipstick on 06-08-2010 08:00 AM
0 Kudos
Message 3 of 6
(3,067 Views)

Hi Tay,

 

I looked at your code and was unable to reproduce anything. Would you mind posting the code again with the project and with the vi analyzer task.

 

Thanks!

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 4 of 6
(3,046 Views)

Here it is...

 

The VI Analyzer Results folder contains the config file and not results. Not my call on the name...

Message Edited by slipstick on 06-08-2010 09:14 AM
0 Kudos
Message 5 of 6
(3,043 Views)

So I look at much more in depth and the problem is actually expected as the modularity index is subvi's/nodes and if there is no subvi's it is 0/X = 0.

 

Hope this helps.

 

 

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 6 of 6
(3,016 Views)