跨版本支持
将从以前版本生成的代码与从当前版本生成的代码集成在一起
当源模型是单速率模型并且生成的 C 代码来自以下各项时,您可以将从以前版本(R2010a 及更高版本)生成的 C 代码与从当前版本生成的代码集成:
使用不可重用函数代码接口的顶层模型或子系统编译过程。
隐藏错误状态监控的单个或多个实例模型引用编译过程。
使用来自以前版本(R2018b 及更高版本)的受保护模型(单速率或多速率)来测试受保护模型与使用以前版本生成的该模型的代码之间的数值等效性。在当前版本中生成新代码。
通过重用以前版本的共享实用工具代码来降低验证成本。
函数
crossReleaseImport | Import generated model code from a previous release as SIL or PIL blocks |
pil_block_replace | Replace block in model with block from another model |
sharedCodeMATLABVersions | Manage MATLAB versions for cross-release code integration |
sharedCodeUpdate | Add new shared code source files to existing shared code folder |
主题
- Cross-Release Code Integration
Integrate generated code from previous releases with generated code from current release.
- 使用跨版本工作流集成生成的代码
通过在集成模型中使用跨版本 SIL 模块来重用以前生成的代码。
- Use Protected Models from Previous Releases to Perform SIL Testing and Generate Code
Integrate generated code from protected models created in previous releases.
- Integration of Code from Multiple Folders
Integrate separately generated code.
- Cross-Release Shared Utility Code Reuse
Reuse shared utility or external code across releases.