Recommended Settings Summary for Model Configuration Parameters - MATLAB & Simulink (original) (raw)
The following table summarizes the impact of each configuration parameter on debugging, traceability, efficiency, and safety considerations, and indicates the factory default configuration settings for the GRT and ERT targets, unless otherwise specified.
For parameters that are available only when an ERT target is specified, see Recommended Settings Summary for Model Configuration Parameters (Embedded Coder).
For additional details, click the links in the Configuration Parameter column.
Mapping Application Requirements to the Solver Pane
Configuration Parameter | Settings for Building Code | Factory Default | |||
---|---|---|---|---|---|
Debugging | Traceability | Efficiency | Safety precaution | ||
Start time | No impact | No impact | No impact | 0.0 | 0.0 seconds |
Stop time | No impact | No impact | No impact | A positive value | 10.0 seconds |
Type | Fixed-step | Fixed-step | Fixed-step | Fixed-step | Variable-step (you must change toFixed-step for code generation) |
Solver | No impact | No impact | No impact | Discrete (no continuous states) | ode3 (Bogacki-Shampine) |
Periodic sample time constraint | No impact | No impact | No impact | Specified orEnsure sample time independent | Unconstrained |
Sample time properties | No impact | No impact | No impact | Period, offset, and priority of each sample time in the model; faster sample times must have higher priority than slower sample times | '' |
Treat each discrete rate as a separate task | No impact | No impact | No impact | No impact | On |
Automatically handle rate transition for data transfer | No impact | No impact (for simulation and during development)Off (for production code generation) | No impact | Off | Off |
Mapping Application Requirements to the Data Import/Export Pane
Configuration Parameter | Settings for Building Code | Factory Default | |||
---|---|---|---|---|---|
Debugging | Traceability | Efficiency | Safety precaution | ||
Input | No impact | No impact | No recommendation | No recommendation | Off |
Initial state | No impact | No impact | No recommendation | No recommendation | Off |
Time | No impact | No impact | No recommendation | No recommendation | On |
States | No impact | No impact | No recommendation | No recommendation | Off |
Output | No impact | No impact | No recommendation | No recommendation | On |
Final states | No impact | No impact | No recommendation | No recommendation | Off |
Signal logging | No impact | No impact | No recommendation | No recommendation | On |
Record logged workspace data in Simulation Data Inspector | No impact | No impact | No recommendation | No recommendation | Off |
Limit data points to last | No impact | No impact | No recommendation | No recommendation | On |
Decimation | No impact | No impact | No recommendation | No recommendation | 1 |
Format | No impact | No impact | No recommendation | No recommendation | Array |
Output options | No impact | No impact | No recommendation | No recommendation | Refine output |
Refine factor | No impact | No impact | No recommendation | No recommendation | 1 |
Output times | No impact | No impact | No recommendation | No recommendation | '[]' |
Mapping Application Requirements to the Math and Data Types Pane
Mapping Application Requirements to the Optimization Pane
Mapping Application Requirements to the Diagnostics Pane: Solver Tab
Mapping Application Requirements to the Diagnostics Pane: Sample Time Tab
Mapping Application Requirements to the Diagnostics Pane: Data Validity Tab
Mapping Application Requirements to the Diagnostics Pane: Type Conversion Tab
Mapping Application Requirements to the Diagnostics Pane: Connectivity Tab
Mapping Application Requirements to the Diagnostics Pane: Compatibility Tab
Configuration Parameter | Settings for Building Code | Factory Default | |||
---|---|---|---|---|---|
Debugging | Traceability | Efficiency | Safety precaution | ||
S-function upgrades needed | No impact | No impact | No impact | error | none |
Mapping Application Requirements to the Diagnostics Pane: Model Referencing Tab
Mapping Application Requirements to the Diagnostics Pane: Saving Tab
Mapping Application Requirements to the Diagnostics Pane: Stateflow Tab
Mapping Application Requirements to the Hardware Implementation Pane
Configuration Parameter | Settings for Building Code | Factory Default | |||
---|---|---|---|---|---|
Debugging | Traceability | Efficiency | Safety precaution | ||
Device vendor | No impact | No impact | No impact | Select your Device vendor andDevice type if they are available in the drop-down list. If yourDevice vendor and Device type are not available, set device-specific values by using Custom Processor. | None if specified system target file isert.tlc, realtime.tlc, orautosar.tlc. Otherwise, Determine by Code Generation system target file |
Device vendor | No impact | No impact | No impact | Select your Device vendor andDevice type if they are available in the drop-down list. If yourDevice vendor and Device type are not available, set device-specific values by using Custom Processor. | Intel |
Device type | No impact | No impact | No impact | Select your Device vendor andDevice type if they are available in the drop-down list. If yourDevice vendor and Device type are not available, set device-specific values by using Custom Processor. | x86–64 (Windows64) |
Number of bits: char | No impact | No impact | Target specific | No recommendation for simulation without code generation.For simulation with code generation, select yourDevice vendor and Device type if they are available in the drop-down list. If your Device vendor andDevice type are not available, set device-specific values by usingCustom Processor. | char 8, short 16, int 32,long 32, long long 64, float 32,double 64, native 32, pointer 32 |
Largest atomic size: integer | No impact | No impact | Target specific | No recommendation for simulation without code generation.For simulation with code generation, select yourDevice vendor and Device type if they are available in the drop-down list. If your Device vendor andDevice type are not available, set device-specific values by usingCustom Processor. | integer Char, floating-pointFloat |
Byte ordering | No impact | No impact | No impact | No recommendation for simulation without code generation.For simulation with code generation, select yourDevice vendor and Device type if they are available in the drop-down list. If your Device vendor andDevice type are not available, set device-specific values by usingCustom Processor. | Little Endian |
Signed integer division rounds to | No impact for simulation and during developmentUndefined for production code generation | No impact for simulation and during developmentZero or Floor for production code generation | No impact for simulation and during developmentZero for production code generation | No recommendation for simulation without code generation.For simulation with code generation, select yourDevice vendor and Device type if they are available in the drop-down list. If your Device vendor andDevice type are not available, set device-specific values by usingCustom Processor. | Zero |
Shift right on a signed integer as arithmetic shift | No impact | No impact | On | No recommendation for simulation without code generation.For simulation with code generation, select yourDevice vendor and Device type if they are available in the drop-down list. If your Device vendor andDevice type are not available, set device-specific values by usingCustom Processor. | On |
Support long long | No impact | No impact | On (execution, ROM) | No recommendation for simulation without code generation.For simulation with code generation, select yourDevice vendor and Device type if they are available in the drop-down list. If your Device vendor andDevice type are not available, set device-specific values by usingCustom Processor. | Off |
Mapping Application Requirements to the Model Referencing Pane
Mapping Application Requirements to the Simulation Target Pane: General Tab
Mapping Application Requirements to the Simulation Target Pane: Symbols Tab
Configuration Parameter | Settings for Building Code | Factory Default | |||
---|---|---|---|---|---|
Debugging | Traceability | Efficiency | Safety precaution | ||
Reserved names | No impact | No impact | No impact | No recommendation | {} |
Mapping Application Requirements to the Simulation Target Pane: Custom Code Tab
Configuration Parameter | Settings for Building Code | Factory Default | |||
---|---|---|---|---|---|
Debugging | Traceability | Efficiency | Safety precaution | ||
Parse custom code symbols | On | No impact | No impact | On | On |
Source file | No recommendation | No recommendation | No recommendation | No recommendation | '' |
Header file | No recommendation | No recommendation | No recommendation | No recommendation | '' |
Initialize function | No recommendation | No recommendation | No recommendation | No recommendation | '' |
Terminate function | No recommendation | No recommendation | No recommendation | No recommendation | '' |
Include directories | No impact | No impact | No impact | No recommendation | '' |
Source files | No impact | No impact | No impact | No recommendation | '' |
Libraries | No impact | No impact | No impact | No recommendation | '' |
Defines | No impact | No impact | No impact | No recommendation | '' |
Mapping Application Requirements to the Code Generation Pane: General Tab
Mapping Application Requirements to the Code Generation Pane: Report Tab
Mapping Application Requirements to the Code Generation Pane: Comments Tab
Mapping Application Requirements to the Code Generation Pane: Identifiers Tab
Mapping Application Requirements to the Code Generation Pane: Custom Code Tab
Mapping Application Requirements to the Code Generation Pane: Interface Tab