|LabVIEW 2015 Help|
|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
The Compare VIs dialog box, also called graphical differencing, helps you track changes in an application by comparing multiple versions of a VI. This becomes especially important as a project grows and involves more developers.
|Note The Compare VIs dialog box is available only in the LabVIEW Professional Development System.|
You can select options to control the types of differences you want to detect and view. For example, you can filter out cosmetic changes such as objects being moved or resized. When you compare the VIs, a window displays a summary of the differences. If you select an item from the summary, LabVIEW displays and highlights the differences between the two VIs.
Complete the following steps to compare two VIs.
|Note Use the same steps to compare private data controls of LabVIEW classes. You must place each version of the class in a different project and enter the project paths into the VIs to Compare text fields using the following syntax: ProjectName.lvproj\My Computer\ClassName.lvclass:ClassName.ctl.|
Comparing very large VIs can be time consuming. You can cancel the comparison of two VIs in the Comparison Progress dialog box.
The progress bar indicates the steps in the comparison algorithm, not the number of differences left to find. When the comparison is complete, LabVIEW displays the front panels and block diagrams of the two VIs with the Differences dialog box.
|Note LVCompare.exe also uses the Compare VIs dialog box to compare VIs using a third-party source control provider or to compare VIs from the command line.|
After the comparison is complete, you can create a VI comparison report by clicking Create Report in the Differences dialog box. In the Create Report dialog box, select a report type and specify a path to save the report as a web page (.xml), as a text file (.txt), (Windows) or as a Microsoft Word document (.doc).
You also can create a comparison report when you compare VI hierarchies.