简体   繁体   English

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

[英]How does version control with LabVIEW VIs work?

Does anybody have experience with version control and LabVIEW? 有没有人有版本控制和LabVIEW的经验? Since LabVIEW VIs are not text-based, how does it work? 由于LabVIEW VI不是基于文本的,它是如何工作的? I would like to use git but I have a few questions: 我想使用git,但我有几个问题:

  • When committing changes, does git recognize the differences in the VI or does it replace the whole file with the new one? 在提交更改时,git是否识别VI中的差异或是否用新的文件替换整个文件? Does this result in a large expansion of the repository? 这会导致存储库的大量扩展吗?

  • Is there a possibility to merge different versions of a VI? 是否有可能合并VI的不同版本?

  • Or is there a version control that works better for LabVIEW? 或者是否有适用于LabVIEW的版本控制?

When committing changes, does git recognize the differences in the VI or does it replace the whole file with the new one? 在提交更改时,git是否识别VI中的差异或是否用新的文件替换整个文件? 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. VI是二进制文件,因此git会将更新后的版本保存为新对象。 This can cause a LabVIEW repository to grow faster than a pure text-based source base. 这可能导致LabVIEW存储库比纯文本源库增长更快。

Is there a possibility to merge different versions of a VI? 是否有可能合并VI的不同版本?

Yes. 是。 There is a tool that installs with LabVIEW called LVMerge.exe which can do this. 有一个工具可以安装LabVIEW,名为LVMerge.exe ,可以执行此操作。

Or is there a version control that works better for LabView? 或者是否有适用于LabView的版本控制?

I like and use git with LabVIEW. 我喜欢和使用LabVIEW的git I also use these helpers: 我也使用这些助手:

To be fair LabVIEW is more suitable with the SVN. 公平地说,LabVIEW更适合SVN。

There is an easy way to integrate LabVIEW SVN merge and SVN diff in tortoise SVN. 有一种简单的方法可以在LabVIEW SVN中集成LabVIEW SVN merge和SVN diff。

Please read this article. 阅读这篇文章。

Also, there is a toolkit for LabVIEW to work with SVN directly from a LabVIEW Project. 此外,还有一个LabVIEW 工具包可以直接从LabVIEW项目中使用SVN。

Here is the help page explaining how to start working with Git. 这是帮助页面,解释了如何开始使用Git。

You can setup git diff and git merge for LabVIEW. 您可以为LabVIEW设置git diffgit merge

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM