Configuring Source Control with LVCompare.exe

You can configure a third-party source control provider to use LVCompare.exe as the default comparison tool. LVCompare.exe is equivalent to the Compare VIs dialog box. Use LVCompare.exe to compare differences between two VIs interactively.

Note  LVCompare.exe is available only in the LabVIEW Professional Development System.

Complete the following steps to configure a third-party source control provider to use LVCompare.exe as the default comparison tool.

  1. Make sure the computer on which you are running LabVIEW also includes a third-party source control provider. Consult the source control administrator for additional assistance.
  2. Direct the source control provider to LVCompare.exe. LabVIEW installs LVCompare.exe in different directories depending on the platform, and directories might vary depending on the configuration of the computer:
  3. Use the following syntax to configure any arguments that LVCompare.exe needs.

    lvcompare.exe <absolute path to VI 1> <absolute path to VI 2> [-lvpath <path to LabVIEW>][-noattr][-nofp][-nofppos][-nobd][-nobdcosm][-nobdpos]

    The arguments have the following meanings:

    Note Note  If you do not specify which version of LabVIEW to use for the comparison operation, LabVIEW uses the currently registered version of LabVIEW. (macOS) LabVIEW uses the latest version of LabVIEW on the computer. (Linux) LabVIEW uses the last installed version of LabVIEW.

For example, to configure the third-party source control provider to use LabVIEW 2009 to compare VIs but not compare cosmetic, size, or position differences, use the following command line.

"C:\Program Files\National Instruments\Shared\LabVIEW Compare\LVCompare.exe" $1 $2 -lvpath "C:\Program Files\National Instruments\LabVIEW 2009\LabVIEW.exe" -nobdcosm -nobdpos -nofppos

where $1 and $2 are variables the third-party source control provider defines for the paths to the VIs you want to compare.

Note Note  You also can enter this command directly in the command line to launch LVCompare.exe.
  1. (Optional) Complete any remaining steps to configure the third-party source control provider. For example, some source control providers allow you to specify comparison tools for particular file extensions. If the source control provider allows you to specify a comparison tool, specify LVCompare.exe for the .vi file extension. Consult the documentation for the source control provider for more information.