The model configuration parameters for code generation define how the code generator produces code and builds an executable from your model. The Model Advisor checks that your model meets standards and guidelines and is ready to generate code. The Code Generation Advisor reviews your model based on objectives that you specify. To extend capabilities beyond the predefined efficiency, traceability, Safety precaution, and debugging objectives, create custom objectives.
Configuration Wizard Blocks
|Custom MATLAB file||Update active configuration parameters of parent model by using file containing custom MATLAB code|
|ERT (optimized for fixed-point)||Update active configuration parameters of parent model for ERT fixed-point code generation|
|ERT (optimized for floating-point)||Update active configuration parameters of parent model for ERT floating-point code generation|
|GRT (debug for fixed/floating-point)||Update active configuration parameters of parent model for GRT fixed-point or floating-point code generation|
|GRT (optimized for fixed/floating-point)||Update active configuration parameters of parent model for GRT fixed-point or floating-point code generation|
Modify the model configuration parameters specific to code generation from the Configuration Parameters Dialog box.
Code Generation Configuration
Modify the model configuration parameters specific to code generation from the MATLAB® command line.
Prepare a model for quickly generating readable, efficient code.
Retarget code generation from a model with multiple configuration sets.
Select a code generation target for a model reference hierarchy without modifying individual models.
Easily configure and optimize code generation options with Configuration Wizard blocks and scripts.
Use the Model Advisor to check a model or subsystem for conditions and configuration settings that you select, including conditions that cause inaccurate or inefficient simulation.
Assess model readiness to generate code by using the Model Advisor and Code Generation Advisor.
Use Embedded Coder® Model Advisor checks to assess model readiness to generate code.
Use Simulink® Coder™ Model Advisor checks to assess model readiness to generate code.
When you develop models and generate code, use the modeling guideline configuration recommendations.
Code Generation Advisor
Use the Code Generation Advisor to check your model against code generation objectives.
Configure your code generation objectives from the MATLAB command line.
Create predefined code generation objectives to meet your requirements.
Summary of code generation parameters for tuning model and target configurations.
Facilitate designing Simulink models and subsystems and troubleshooting code generation by using Code Generation Advisor checks.
Model Configuration Parameters: Code Generation
General parameters for defining code generation for a model's active configuration set, including target selection, documentation, and build process.
Parameters for configuring code optimization.
Parameters for configuring code generation reports.
Parameters for controlling the comments that you want to automatically generate and insert into the generated code.
Parameters for selecting automatically generated naming rules for identifiers in code generation.
Parameters for creating a list of custom C code, folders, source files, and libraries to include in generated files.
Parameters for selecting the target software environment, output variable name modifier, and data exchange interface.
Parameters for controlling the automatically generated code style for readability.
Code verification and performance analysis parameters for SIL and PIL simulations.
Parameters for customizing generated code organization.
Parameters for specifying data placement in the generated code.
Parameters for replacing built-in data type names with user-defined replacement data type names in the generated code.
Parameters for controlling AUTOSAR code generation.