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.
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:
-nobdpos
(ignore position of nodes on block diagram)-nobdcosm
(ignore cosmetic aspects of block diagram)An example call could look like this:
LVCompare.exe “$LOCAL” “$REMOTE” -nobdpos -nobdcosm
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.
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