For a better experience on dSPACE.com, enable JavaScript in your browser. Thank you!

Model Compare

比较 Simulink®、Stateflow® 和 TargetLink® 模型

Model Compare 可以找出模型的所有更改。即使是大型模型,也能在数分钟内进行对比;但如果没有工具支持,这是不可能实现的。

应用领域

 

当您使用同一模型的多个版本时,自动对比尤为重要。dSPACE 的 Model Compare 可与任何 TargetLink、MathWorks® Simulink 或 Stateflow® 模型一起使用,还支持数据库。Model Compare 的使用范围十分广泛,例如:

 

 

  • 管理不同模型版本或模型变量
  • 合并平行开发分支版本
  • 验证并审核模型更改

 

 

TargetLink 支持

 

 

Model Compare 内置对所有 TargetLink 块和属性的支持。它们被按照普通 Simulink/Stateflow 元素的显示和处理方式对待,因此,您无需担心 TargetLink 的实施细节。因为 TargetLink 属性的语义是已知的,因此,可使用预定义的过滤器选项对其进行智能处理。

 

 

审核对话与合并支持

 

 

您可将审核评论与工具找出的块和属性差异关联,包括日期/作者追踪。支持多个参与者的综合审核。

 

 

检测出的更改可以在模型之间传递,以合并平行开发分支版本或管理不同的模型版本。通过易于使用的命令,相较手动合并模型而言,采用这种方法可显著减少出错。始终保持更新模型间的其它差异,因此,您能一直了解工作的当前状态。

 

 

 

 

 

 

主要优点

Model Compare 可以找出模型的所有更改。即使是大型模型,也能在数分钟内进行对比;但如果没有工具支持,这是不可能实现的。您可使用过滤器重点关注相关差异,并忽略不重要的差异,如布局更改或仿真设置等。对审查会话的支持也可确保对模型更改的可靠、安全且受控制的审核。合并支持简化了对同一模型不同版本的同步更改。

Feature Description Benefit
Support for TargetLink
  • Model Compare recognizes TargetLink blocks and properties, and handles them just like built-in blocks.
  • There is no need to bother with TargetLink implementation details.
Powerful comparison algorithm
  • Models from different MATLAB versions are compared; block correspondences are detected even if the names of the blocks have changed; parameter values are compared either in unevaluated form (e.g., “Kp”) or in evaluated form (e.g., “5.4”).
  • Conversion and upgrade problems can be addressed. You get concise comparison results even if blocks were renamed. Different workspace settings can be taken into account.
Flexible filter configuration
  • Model Compare can be configured to filter out unimportant differences, e.g., layout changes or simulation options, according to a variety of criteria. A comparison can be restricted to selected subsystems.
  • You can focus on the differences and model parts that are relevant to you. This greatly improves the efficiency of a comparison.
Convenient result display
  • The comparison results are displayed in synchronized tree views, with differences indicated by customizable color schemes. A statistics window displays the number of changed, added and removed elements.
  • You can easily see which elements correspond to each other. Added, removed and modified elements as well as the number and type of changes can be seen at a glance.
Review support
  • Comments can be associated with individual blocks and properties or with the complete comparison session.
  • Reviews are performed in a reliable, controlled and safe way. You can also use the comment function to structure your own working process.
Traceability from Model Compare to model
  • You can easily highlight Simulink and Stateflow elements by selecting them in Model Compare, and show any differences directly in the compared models.
  • It is easy to view the context of a change and all the differences in a subsystem.
Traceability from model back to Model Compare
  • You can trace model elements in Simulink back to Model Compare
  • This is helpful to identify blocks and lines in Model Compare
Merge support
  • The commands Copy to Right, Copy to Left, and Delete can be used to transfer changes from one model to another.
  • You can merge parallel development branches and transfer changes between distinct model variants.
Report generation
  • Comparison results and associated comments can be saved as HTML, PDF and XML reports, model screenshots can be integrated in the difference reports.
  • The information can be archived and published.
Tool automation
  • Comparisons can be started by command line, and reports can be generated automatically. Reports can be saved in XML format for easy processing by external tools.
  • You can process multiple models automatically and incorporate Model Compare into your own tool chain.

Related Topics Contact Information