本页面提供的是上一版软件的文档。当前版本中已删除对应的英文页面。
模型配置
配置模型以进行仿真和代码生成
涉及代码生成的模型配置参数定义代码生成器如何从模型中生成代码并编译可执行文件。模型顾问可以检查您的模型是否符合各项标准和规范,以及是否准备好生成代码。代码生成顾问会根据您指定的目标来审核您的模型。
模型设置
主题
快速入门
- Code Generation Configuration
Modify the model configuration parameters specific to code generation from the Configuration Parameters Dialog box.
代码生成配置
- 以编程方式配置模型的代码生成参数
从 MATLAB® 命令行修改特定于代码生成的模型配置参数。 - Use Configuration Reference to Select Code Generation Target
Select a code generation target for a model reference hierarchy without modifying individual models.
模型顾问
- 使用模型顾问检查您的模型
使用模型顾问检查您选择的模型或子系统的条件和配置设置,包括导致不准确或低效仿真的条件。 - Check Model and Configuration for Code Generation
Assess model readiness to generate code by using the Model Advisor and Code Generation Advisor. - Simulink Coder Model Advisor Checks for Standards and Code Efficiency
Use Simulink® Coder™ Model Advisor checks to assess model readiness to generate code. - 模型配置的建模规范
当您开发模型和生成代码时,请使用建模规范配置建议。
代码生成顾问
- Application Objectives Using Code Generation Advisor
Use the Code Generation Advisor to check your model against code generation objectives. - Recommended Settings Summary for Model Configuration Parameters
Summary of code generation parameters for tuning model and target configurations. - Code Generation Advisor Checks
Facilitate designing Simulink models and subsystems and troubleshooting code generation by using Code Generation Advisor checks.
模型配置参数
- 模型配置参数:代码生成
用于为模型的活动配置集定义代码生成的一般参数,包括目标选择、文档和编译过程。 - 模型配置参数:代码生成优化
用于配置代码优化的参数。 - Model Configuration Parameters: Code Generation Report
Parameters for configuring code generation reports. - Model Configuration Parameters: Comments
Parameters for controlling the comments that you want to automatically generate and insert into the generated code. - 模型配置参数:代码生成标识符
用于在代码生成中为标识符选择自动生成的命名规则的参数。 - 模型配置参数:代码生成自定义代码
用于创建要包含在生成文件中的自定义 C 代码、文件夹、源文件和库列表的参数。 - 模型配置参数:代码生成接口
用于选择目标软件环境、输出变量名称修饰符和数据交换接口的参数。 - Recommended Settings Summary for Model Configuration Parameters
Summary of code generation parameters for tuning model and target configurations.