VI Analyzer: Difference between revisions
m Remove stub label |
m Removed errant close bracket symbol |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
==Test discovery== | ==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. | 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 configuration== | ||
Latest revision as of 13:10, 24 September 2025

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
- Introduction to the VI Analyzer - by Darren Nattinger, National Instruments (page includes slides, demos, and a link to a video recording)
- VI Analyzer Enthusiasts Forum
- Static Program Analysis - Wikipedia