Comparing VIs and VI Hierarchies

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 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.

  1. Because LabVIEW cannot load two VIs with the same name, you must rename one of your VIs to compare them. Renaming the VIs does not affect the name of the subVIs. If you compare two hierarchies of VIs, LabVIEW temporarily renames the top-level VI.
  2. Select Tools»Compare»Compare VIs from the front panel or block diagram menu of a VI to display the Compare VIs dialog box.
  3. Click the Select button to open the Select a VI dialog box and select a VI by name. You can select only VIs that are already loaded into memory.
  4. Select comparison options by placing checkmarks in the appropriate checkboxes in the Compare field.
  5. Click the Compare button.
Note 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 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).

Note Note  
  • The path for saving the comparison report must be a local directory instead of a network path.
  • You must have Microsoft Word installed before you create a Microsoft Word report.

You also can create a comparison report when you compare VI hierarchies.


Not Helpful