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?
You can setup git diff and git merge for 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.
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.
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With