LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiled code complexity

Check  attached file . Nothing much  is added in standard template and still it shows code complexity of 2.0

0 Kudos
Message 21 of 24
(848 Views)

@Vishnu.R wrote:

Check  attached file . Nothing much  is added in standard template and still it shows code complexity of 2.0


A complexity of 2 is surprisingly low for the complicated VI you attached (See below). Note that some of the complexity comes from your debugging settings, allowing you to probe all these wires. Once you disable debugging, the complexity drops to 1.4.

 

This is not a simple VI! (two parallel loops, event structure with 6 different event cases (one dynamic), case structure with 30+ cases, etc. 🐵

0 Kudos
Message 22 of 24
(809 Views)

There is a free utility on the LVTN that will display Compiled Code Complexity for all the VIs in the project as well as 41 other properties in a single window.  Here is your project as it is displayed. You might find it interesting to examine your full project.  Click the Complex title to sort the project by CCC. 

2019-04-02 Untitled.png

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.0, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 23 of 24
(788 Views)

Thanks for checking file. Now I know what to do. 

0 Kudos
Message 24 of 24
(760 Views)