Note The VI Analyzer tests are available only if you install and activate the LabVIEW VI Analyzer Toolkit. Refer to the NI website for more information about the VI Analyzer Toolkit.
Tests in the Complexity Metrics category of VI Analyzer tests analyze the complexity of the code.
Cyclomatic Complexity—Checks whether the cyclomatic complexity for the block diagram is within the user-specified limit. The cyclomatic complexity measures the number of linearly independent paths in the block diagram code. To increase the maintainability of the code, ensure you have a low cyclomatic complexity value. To lower the cyclomatic complexity value, you can move loops and structures into subVIs.
Depth of Nesting of Structures—Checks if the nesting depth of structures is within the user-specified limit.
Fan In—Checks whether the number of callers for the top-level VI is within the user-specified limit.
Fan Out—Checks whether the number of subVIs is within the user-specified limit.
Modularity Index—Checks whether the modularity index is greater than the user-specified minimum value. The modularity index compares the number of subVIs to the total number of nodes on the block diagram.