Comparing VIs

The Compare VIs tool, also called Graphical Differencing, helps you track changes in your application by comparing multiple versions of a VI. This becomes especially important as your project grows and involves more developers.

Use the Tools»Compare»Compare VIs tool to display the Compare VIs dialog box. 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 dialog displays a summary of the differences. If you select an item from the summary, Compare VIs 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.
  2. Select Tools»Compare»Compare VIs to display the Compare VIs dialog box.
  3. Click the Select... button to open a dialog box to select a VI by name. You can only select VIs that are already loaded into memory.
  4. Select your comparison options by placing checkmarks in the appropriate checkboxes in the Compare field.
  5. Click Compare.

Comparing very large VIs can be lengthy. 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, the front panels and block diagrams of the two VIs are displayed along with the Differences dialog box.