Table of Contents

92 LabVIEW Compare

The Compare VIs feature helps you track changes in an application by comparing multiple versions of a VI using graphical differencing.

Both compare tools, the one in the IDE and “LVCompare.exe”, are available only in the LabVIEW Professional Development System.

In the IDE

1. Open the tool from the Tools menu:

2. In the dialog, select the VIs you want to compare:


Externally

The LVCompare.exe (and LVMerge.exe) tools can be used stand-alone or from other tools like SCC to compare VIs. You can find the executable in

  C:\Program Files (x86)\National Instruments\Shared\LabVIEW Compare\LVCompare.exe

The tool takes the following arguments:

An example call could look like this:

  LVCompare.exe “$LOCAL” “$REMOTE” -nobdpos -nobdcosm

SCC Integration

There are a few incompatibilities between the ''git diff'' command and LVCompare.exe:

To work around these limitations, NI provides the LVCompare Adapter for Git Extensions through its Example Code platform.

There is another challenge with most modern git client applications:

LabVIEWfriend Stefan Lemmens patched the adapter mentioned above to also fix this third issue and shared it on the NI forums.

How to

1. Download and install the LVCompare Adapter for Git Extensions

2. Download the patch provided by Stefan Lemmens and extract its contents to a temporary location

3. In the Adapter's installation directory C:\Program Files (x86)\National Instruments\LVCompare Git Adapter\, replace the existing .exe with the one from Stefan Lemmen's patch

4. Configure your git client to point to the patched Adapter (this setting is usually called Diff Command or Diff Tool Path):

  C:\Program Files (x86)\National Instruments\LVCompare Git Adapter\lvcomparegit.exe