组合大型模型组件
降低模型复杂度、管理设计数据和编译大型模型
在仿真集成工作流中,通过将组件集成到 Simulink® 中创建组件后,下一步是将它们组合到系统级模型中,并在仿真前编译您的模型。要编译您的模型,请更新 Simulink 图。有关编译 Simulink 模型的详细信息,请参阅动态系统的仿真阶段。
编译模型时,Simulink 使用设计和架构数据来评估模块参数、信号特征和模型接口特征。模型编译还执行信号和数据类型的传播。根据系统级模型的需求,使用工作区和数据字典管理设计和架构数据。使用接口来简化外观复杂度和组织系统级模型。
只有在依存关系发生变化时才使用并行编译以及通过模型分区进行增量编译,有条件地重新编译模型,从而提高具有模型引用层次结构的大型模型的编译性能。
主题
设计数据管理
- 确定在何处存储 Simulink 模型的变量和对象
Simulink 数据是指您在工作区(例如,基础工作区或数据字典)中创建的对象和变量。选择一种永久存储数据的方式。 - Partition Data for Model Reference Hierarchy Using Data Dictionaries
Compose a dictionary hierarchy based on a model reference hierarchy. - Attach Data Dictionary to Subsystem Reference
Use a Simulink data dictionary with child blocks and instances of your subsystem file. - 迁移模型以使用 Simulink 数据字典
将变量和对象存储在数据字典中。
接口
- Explore Composite Interfaces
Decide how to group signals, messages, or conserving connections based on your high-level modeling requirements. - Simplify Subsystem and Model Interfaces with Bus Element Ports
Group multiple lines into a bus at the input or output of a model component. - Simulink Messages Overview
Overview of the message-based communication for distributed architectures, code generation, and middleware modeling.
提高编译性能
- Reduce Update Time for Referenced Models by Using Parallel Builds
Reduce diagram update time for large model reference hierarchies by using parallel builds. - Create Partitions
Learn the concept of partitions and how to create them from a model.