Subversion and mdl files
이전 댓글 표시
Hello
Does anybody know how to have real "merge" action between two .mdl files? Specifically if you are using subversion version control how can we handle a .mdl file share between two users? Thanks
채택된 답변
추가 답변 (4개)
Jarrod Rivituso
2011년 4월 1일
1 개 추천
Hi Carlo,
I'm not aware of a way to do this. However, an alternative would be to break apart your model into multiple .mdl files and use model reference to combine them. This would allow different users to work on their own separate pieces of the model, and not have to worry about merging later.
This approach is also useful in that it allows you to test smaller components of your model individually.
Hope this helps! -Jarrod
댓글 수: 1
Jarrod Rivituso
2011년 4월 8일
Hi Carlo,
Check out the release notes for the latest version of Simulink (look under "Model Management"):
http://www.mathworks.com/products/simulink/whatsnew.html
Mark
2011년 4월 4일
0 개 추천
In general, doing text merges on ".mdl" files doesn't go well, so I would strongly advise against this. The primary issue is that text in ".mdl" files isn't as "local" as text in a regular source code file would be. As a result, text in one part of a model file may also influence the meaning of text elsewhere in the model. It isn't as convenient, to be sure, but it is probably best to configure your version-control system to treat ".mdl" files as binary even though they are text-based.
댓글 수: 4
Carlo Marques
2011년 4월 4일
Mark
2011년 4월 5일
I haven't used either of those tools before, but limiting access to one user seems like something you could do with locks in Subversion without buying anything extra.
MATLAB/Simulink has a feature that converts models to XML and then shows two panes to illustrate changes made to the model, but this is a much more manual process. Nonetheless, the fact that we convert the model to XML first illustrates the fact that the ".mdl" format is probably not the best for comparing (and implicitly, merging) model files.
Unfortunately, there is no way to *import* the XML back to ".mdl" files after the comparison. (We stay with the ".mdl" format because it works better for loading, saving, and most things other than comparing.)
Walter Roberson
2011년 4월 8일
I see that the new 2011a highlights include,
Merge capability for Simulink models from the XML text comparison in Simulink Report Generator™
That _sounds_ to provide the missing mechanism.
Jarrod Rivituso
2011년 4월 8일
Walter, I really wish I could vote up a comment :)
Frederic Vartanian
2012년 3월 28일
0 개 추천
medini unite also provides SIMULINK model merge capabilities. It can be integrated in a number of SCM tools, such as CVS, SVN, ClearCase, Visual Source Safe and more. You can request a trial here http://www.ikv.de/mediniunite/
카테고리
도움말 센터 및 File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!