Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does version control with LabVIEW VIs work?

Does anybody have experience with version control and LabVIEW? Since LabVIEW VIs are not text-based, how does it work? I would like to use git but I have a few questions:

  • When committing changes, does git recognize the differences in the VI or does it replace the whole file with the new one? Does this result in a large expansion of the repository?

  • Is there a possibility to merge different versions of a VI?

  • Or is there a version control that works better for LabVIEW?

like image 525
rkgghz Avatar asked Apr 04 '16 14:04

rkgghz


People also ask

Can you use Git with LabVIEW?

You can setup git diff and git merge for LabVIEW.

How do I upgrade or revert a VI to a different version of LabVIEW?

Upgrade LabVIEW FilesLaunch the version of LabVIEW you wish to upgrade your code. From the File menu, select Open… and navigate to the location of the file you wish to upgrade. Select OK to open your files. If errors exist in the new version, use debugging tools to rectify them.

How do I save a LabVIEW file as an older version?

To save a VI for a previous version of LabVIEW, select File»Save for Previous Version to display this dialog box. To save a LabVIEW project for a previous version, select File»Save for Previous Version in the Project Explorer window.


2 Answers

When committing changes, does git recognize the differences in the VI or does it replace the whole file with the new one? Does this result in a large expansion of the repository?

VIs are binary files, and so git will save the updated version as a new object. This can cause a LabVIEW repository to grow faster than a pure text-based source base.

Is there a possibility to merge different versions of a VI?

Yes. There is a tool that installs with LabVIEW called LVMerge.exe which can do this.

Or is there a version control that works better for LabView?

I like and use git with LabVIEW. I also use these helpers:

  • LabViewGitEnv -- for diff and merge
  • VIKit -- to detect VI versions
like image 171
Joe Friedrichsen Avatar answered Oct 10 '22 03:10

Joe Friedrichsen


To be fair LabVIEW is more suitable with the SVN.

There is an easy way to integrate LabVIEW SVN merge and SVN diff in tortoise SVN.

Please read this article.

Also, there is a toolkit for LabVIEW to work with SVN directly from a LabVIEW Project.

Here is the help page explaining how to start working with Git.

You can setup git diff and git merge for LabVIEW.

like image 3
Khachik Sahakyan Avatar answered Oct 10 '22 04:10

Khachik Sahakyan