Jump to content

VI Analyzer: Difference between revisions

From LabVIEW Wiki
Logmanoriginal moved page VI Analyzer to LabVIEW VI Analyzer Toolkit: Use toolkit name as page title
Tag: New redirect
 
Redhawk (talk | contribs)
m Removed errant close bracket symbol
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[LabVIEW VI Analyzer Toolkit]]
[[File:VI Analyzer Results Window - Test Results.png|thumb|VI Analyzer Results Window]]
'''VI Analyzer''' is a [[wikipedia:static code analysis|static code analysis]] tool for [[LabVIEW]]. It is part of the LabVIEW installation and integrated in the [[tools]] menu with commands to [[Analyze VIs]] and show the [[VI Analyzer Results Window]]. To analyze VIs, tests are required, which can be obtained by installing the [[LabVIEW VI Analyzer Toolkit]] add-on and from the [https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/ct-p/7021 VI Analyzer Enthusiasts Forum]. New tests can be created by copying existing tests and adjusting them manually, or by using the [[VI Analyzer Test Creator]] from the LabVIEW VI Analyzer Toolkit add-on.
 
==Test discovery==
Default tests are stored in the ''[LabVIEW 20xx]\project\_VIAnalyzer\_tests'' directory. They are grouped into different subfolders by category.
 
User-specified tests are automatically discovered from the ''VI Analyzer Tests'' folder in the [[LabVIEW Data]] directory and appear under "<User-Specified>" when [[Analyze VIs#Select Tests|selecting tests]]. Each [[LLB]] inside the folder represents a test. Subfolders can be used for further categorization.
 
In [[LabVIEW 2024 Q1]], a third location was added: ''C:\Program Files\NI\LVAddons\viawin\1\project\_VI Analyzer\_tests''. Tests in this location will only be discovered in LabVIEW 2024 Q1 and later.
 
==Test configuration==
Test configurations can be stored in a [[VI Analyzer Configuration File]], which includes information like the items to test, items to ignore, which tests to perform, and additional options. This configuration can later be restored to run the analysis.
 
==Test results==
The results of an analysis can be stored in a [[VI Analyzer Results File]], which can be viewed in the [[VI Analyzer Results Window]] and exported into different formats.
 
==See also==
*[[LabVIEW VI Analyzer Toolkit]]
 
==External links==
*[https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/Improving-Your-LabVIEW-Code-with-the-VI-Analyzer/m-p/3415352 Introduction to the VI Analyzer] - by Darren Nattinger, National Instruments (page includes slides, demos, and a link to a video recording)
*[https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/ct-p/7021 VI Analyzer Enthusiasts Forum]
**[https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/List-of-Community-VI-Analyzer-Tests/ta-p/3501893 List of Community VI Analyzer Tests]
**[https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/How-to-Install-and-Use-a-Custom-VI-Analyzer-Test/ta-p/3508273 How to Install and Use a Custom VI Analyzer Test]
*[https://en.wikipedia.org/wiki/Static_program_analysis Static Program Analysis - Wikipedia]
 
[[Category:VI Analyzer]]

Latest revision as of 13:10, 24 September 2025

VI Analyzer Results Window

VI Analyzer is a static code analysis tool for LabVIEW. It is part of the LabVIEW installation and integrated in the tools menu with commands to Analyze VIs and show the VI Analyzer Results Window. To analyze VIs, tests are required, which can be obtained by installing the LabVIEW VI Analyzer Toolkit add-on and from the VI Analyzer Enthusiasts Forum. New tests can be created by copying existing tests and adjusting them manually, or by using the VI Analyzer Test Creator from the LabVIEW VI Analyzer Toolkit add-on.

Test discovery

Default tests are stored in the [LabVIEW 20xx]\project\_VIAnalyzer\_tests directory. They are grouped into different subfolders by category.

User-specified tests are automatically discovered from the VI Analyzer Tests folder in the LabVIEW Data directory and appear under "<User-Specified>" when selecting tests. Each LLB inside the folder represents a test. Subfolders can be used for further categorization.

In LabVIEW 2024 Q1, a third location was added: C:\Program Files\NI\LVAddons\viawin\1\project\_VI Analyzer\_tests. Tests in this location will only be discovered in LabVIEW 2024 Q1 and later.

Test configuration

Test configurations can be stored in a VI Analyzer Configuration File, which includes information like the items to test, items to ignore, which tests to perform, and additional options. This configuration can later be restored to run the analysis.

Test results

The results of an analysis can be stored in a VI Analyzer Results File, which can be viewed in the VI Analyzer Results Window and exported into different formats.

See also

External links