Main Content

模型参考

重用模型作为其他模型中的块

一个model reference是使用一个模型的引用Model堵塞。这些引用创建模型层次结构。每个引用模型都有一个定义的接口,该接口指定其输入和输出的属性。定义的接口使参考模型的行为独立于模型层次结构中的上下文。对于仿真和代码生成,当父模型执行时,引用的模型像单个块或原子单元一样执行。模型参考是代码重复使用,单元测试,并行构建和大型组件的理想选择。他们还可以减少文件争论并合并问题。

To determine whether referenced models meet your modeling requirements, see基于组件的建模准则

To learn about code generation for model reference hierarchies, seeReferenced Models(万博1manbetxSimulink编码器)

To create a protected model, seeModel Protection(万博1manbetxSimulink编码器)

Blocks

Model Reference another model to create model hierarchy
Variant Model Template subsystem containing Subsystem, Model, or Subsystem Reference blocks as variant choices

功能

expand all

depview 一个nalyze and visualize model referencing dependencies with or without library dependencies
find_mdlrefs 在模型层次结构中查找引用的模型和模型块
万博1manbetxsimulink.blockpath Fully specified Simulink block path
Simulink.fileGenControl Specify root folders for files generated by diagram updates and model builds
万博1manbetxsimulink.modelreference.refresh Update Model blocks to reflect changes to referenced models
Simulink.SubSystem.convertToModelReference 将子系统转换为模型参考
Slbuild 为模型构建独立的可执行文件或模型参考目标
slxcinfo 查询simulink缓存文件的内容万博1manbetx
slxcunpack Unpack simulation and code generation targets from Simulink cache file
万博1manbetxsimulink.protectedmodel.createharness Create harness model that provides isolated environment for testing protected model
万博1manbetxsimulink.protectedmodel.getPublisher 有关签署受保护模型的发布者的返回信息
Simulink.ProtectedModel.verifySignature Verify digital signature on protected model
万博1manbetxsimulink.protectedmodel.suppresssignatureverification 抑制受保护模型的数字签名验证

Tools

型号参考转换顾问 Convert subsystems to referenced models
Referenced Files Pane View, save, and close referenced subsystems and models

话题

Determine When to Reference Models

Create Model References

Configure Model References

模拟模型层次结构

相关信息