LabVIEW VI的版本控制如何工作?

时间:2016-04-04 14:15:05

标签: git version-control labview

有没有人有版本控制和LabVIEW的经验?由于LabVIEW VI不是基于文本的,它是如何工作的?我想使用git,但我有几个问题:

  • 提交更改时,git是否识别VI中的差异或是否用新的文件替换整个文件?这会导致存储库的大量扩展吗?

  • 是否有可能合并VI的不同版本?

  • 或者是否有适用于LabVIEW的版本控制?

2 个答案:

答案 0 :(得分:11)

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:

答案 1 :(得分:3)

公平地说,LabVIEW更适合SVN。

有一种简单的方法可以在LabVIEW SVN中集成LabVIEW SVN merge和SVN diff。

read这篇文章。

此外,LabVIEW有toolkit可以直接从LabVIEW项目使用SVN。

以下是解释如何开始使用Git的help page

您可以为LabVIEW设置 git diff git merge