Main Content

跨版本支持

将从以前版本生成的代码与从当前版本生成的代码集成在一起

当源模型是单速率模型并且生成的 C 代码来自以下各项时,您可以将从以前版本(R2010a 及更高版本)生成的 C 代码与从当前版本生成的代码集成:

  • 使用不可重用函数代码接口的顶层模型或子系统编译过程。

  • 隐藏错误状态监控的单个或多个实例模型引用编译过程。

使用来自以前版本(R2018b 及更高版本)的受保护模型(单速率或多速率)来测试受保护模型与使用以前版本生成的该模型的代码之间的数值等效性。在当前版本中生成新代码。

通过重用以前版本的共享实用工具代码来降低验证成本。

函数

crossReleaseImportImport generated model code from a previous release as SIL or PIL blocks
pil_block_replaceReplace block in model with block from another model
sharedCodeMATLABVersionsManage MATLAB versions for cross-release code integration
sharedCodeUpdateAdd new shared code source files to existing shared code folder

主题