Recommended Settings Summary for Model Configuration Parameters
The following tables summarizes the impact of each configuration parameter on debugging, traceability, efficiency, and safety considerations, and indicates the factory default configuration settings for the ERT target. The Simulink® Coder™ configuration parameters are documented in Recommended Settings Summary for Model Configuration Parameters. For additional details, click the links in the Configuration Parameter column.
Mapping of Application Requirements to the Optimization Pane
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
No impact | No impact | Optimal finite value |
|
| |
Off | Off | On | No impact | Off | |
No impact | No impact | On (GUI) | No recommendation | On | |
No impact | No impact | On (execution, ROM) | No recommendation | On | |
Remove Code from Tunable Parameter Expressions That Saturates Out-of-Range Values | Off | Off | On (execution, ROM) | No recommendation | On |
Remove code that protects against division arithmetic exceptions | No impact | No impact | On (execution, ROM) | Off | Off |
No impact | No Impact | Off (execution, ROM), On (RAM) | No impact | Off | |
No impact | No impact |
| No impact |
|
Mapping of Application Requirements to the Code Generation Pane: Memory Sections Parameters
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
Package | No impact | No impact | No impact | No impact | ---None--- |
Initialize/Terminate | No impact | No impact | No impact | No impact | Default |
Execution | No impact | No impact | No impact | No impact | Default |
Shared utility | No impact | No impact | No impact | No impact | Default |
Constants | No impact | No impact | No impact | No impact | Default |
Inputs/Outputs | No impact | No impact | No impact | No impact | Default |
Internal data | No impact | No impact | No impact | No impact | Default |
Parameters | No impact | No impact | No impact | No impact | Default |
Validation results | No impact | No impact | No impact | No impact | No package selected. |
Mapping of Application Requirements to the Code Generation Pane: Report Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
Code-to-model | On | On | No impact | No recommendation | Off |
Model-to-code | On | On | No impact | No recommendation | Off |
Generate model Web view | No impact | No impact | No impact | No impact | Off |
Eliminated / virtual blocks | On | On | No impact | No recommendation | Off |
Traceable Simulink blocks | On | On | No impact | No recommendation | Off |
Traceable Stateflow objects | On | On | No impact | No recommendation | Off |
Traceable MATLAB functions | On | On | No impact | No recommendation | Off |
Generate static code metrics | No impact | No impact | No impact | No impact | Off |
Summarize which blocks triggered code replacements | No impact | No impact | No impact | No impact | Off |
Mapping of Application Requirements to the Code Generation Pane: Comments Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
On | On | No impact | No impact | On | |
On | On | No impact | No impact | On | |
On | On | No impact | No impact | Off | |
Valid file name | Valid file name | No impact | No impact |
| |
On | On | No impact | No impact | On | |
On | On | No impact | No recommendation | Off |
Mapping of Application Requirements to the Code Generation Pane: Identifiers Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | Use default | No impact | No recommendation |
| |
No impact | 1 | No impact | No impact | 1 | |
Valid value | >30 | No impact | >30 | 31 | |
No impact | No impact | No impact | No impact |
| |
No impact |
|
| No impact |
| |
No impact | No impact | No impact | No impact | Off | |
No impact | No impact | No impact | No impact | 8 | |
No impact | No impact | No impact | No recommendation | emx$M$N | |
No impact | No impact | No impact | No recommendation | emxArray_$M$N | |
No impact | Set a custom string and use $U in symbols | No impact | No impact | ' ' | |
No impact |
| No impact | No impact |
| |
No impact |
| No impact | No impact |
| |
No impact |
| No impact | No impact |
| |
No impact | No impact | No impact | No impact |
|
Mapping of Application Requirements to the Code Generation Pane: Interface Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
No impact | No impact | Off (GUI), | No impact | On (GUI), | |
No impact | No impact | Off for real only | No impact | On | |
No impact | No impact | Off | No recommendation | On | |
No impact | No impact | Off (execution, ROM), No impact (RAM) | No recommendation | Off | |
No impact | No impact | Off | No recommendation | Off | |
No impact | No impact | No impact | No recommendation | Off | |
No impact | No impact | No impact | No recommendation |
| |
No impact | No impact | No impact | No recommendation | 256 for ERT targets 2048 for GRT targets | |
No impact | No impact | No impact | No impact |
| |
No impact | No impact | No impact | No recommendation | Off | |
No impact | No impact | No impact | No recommendation | On | |
Off | No impact | On | No recommendation | Off | |
No impact | No impact | On | No recommendation | On | |
Off | No impact | No impact | On | No impact | |
No impact | No impact | No impact | No recommendation | On | |
No impact | No impact | On | No recommendation | Off |
Mapping of Application Requirements to the Code Generation Pane: Verification Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
On | On | Off | No recommendation | Off | |
On | On | Off | No recommendation | Off | |
No impact | Valid MATLAB® variable name | No impact | No impact | Off | |
|
|
| No impact |
| |
On | On | Off | No recommendation | Off | |
No impact | Valid MATLAB variable name | No impact | No impact | Off | |
|
|
| No recommendation |
| |
On | On | Off | No impact | Off | |
On | On | Off | No impact | Off |
Mapping of Application Requirements to the Code Generation Pane: Code Style Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
Parentheses level | Nominal (Optimize for readability) | Nominal (Optimize for readability) | Minimum (Rely on C/C++ operators for precedence) | No recommendation | Nominal (Optimize for readability) |
Preserve operand order in expression | On | On | Off | No recommendation | Off |
Preserve condition expression in if statement | On | On | Off | No recommendation | Off |
Convert if-elseif-else patterns to switch-case statements | No impact | Off | On (execution, ROM), No impact (RAM) | No impact | On |
Preserve extern keyword in function declarations | No impact | No impact | No impact | No impact | On |
Preserve static keyword in function declarations | No impact | No impact | On (execution, ROM) | No impact | On |
Suppress generation of default cases for Stateflow switch statements if unreachable | On | On | Off | No recommendation | On |
Replace multiplications by powers of two with signed bitwise shifts | No impact | No impact | On | No impact | On |
Casting modes | Nominal | Nominal | Nominal | Standards Compliant | Nominal |
Array container type | No impact | No impact | No impact | No recommendation | C-style array |
Indent style | K&R | K&R | K&R | K&R | K&R |
Indent size | 2 | 2 | 2 | 2 | 2 |
Mapping of Application Requirements to the Code Generation Pane: Templates Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
Code templates: Source file (*.c) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
Code templates: Header file (*.h) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
Data templates: Source file (*.c) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
Data templates: Header file (*.h) template | No impact | No impact | No impact | No impact | ert_code_template.cgt |
File customization template | No impact | No impact | No impact | No impact | example_file_process.tlc |
Generate an example main program | No impact | No impact | No impact | No impact | On |
Target operating system | No impact | No impact | No impact | No impact | BareBoardExample |
Mapping of Application Requirements to the Code Generation Pane: Code Placement Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
No impact | Valid value | No impact | No impact | Auto | |
No impact | Valid value | No impact | No impact |
| |
No impact | Valid value | No impact | No impact | Auto | |
No impact | Valid value | No impact | No impact |
| |
No impact | Valid value | No impact | No impact |
| |
No impact | Valid value | No impact | No impact | Auto | |
No impact | Valid integer | No impact | No impact | 10 | |
No impact | Valid integer | No impact | No impact | 10 | |
No impact | No impact | No impact | No impact |
|
Mapping of Application Requirements to the Code Generation Pane: Data Type Replacement Tab
Configuration Parameter | Debugging | Traceability | Efficiency | Safety precaution | Factory Default |
---|---|---|---|---|---|
Replace data type names in the generated code | No impact | On | No impact | No impact | Off |
Replacement Name | No impact | Valid character vector | No impact | No recommendation | '' |