Specify whether to generate model type definitions in a model class.
Category: Code Generation > Interface
Default: On
Includes model type definitions within the class namespace of the model. Model type definitions include:
Root-level inports and outports
Block inputs and outputs
DWork vectors
Block parameters and constant parameters
Continuous states
The real-time model data structure (rtM
)
The generated code reduces the MISRA 7-3-1 violations.
A user-defined type such as Simulink.Bus
object or a type
defined in MATLAB Function blocks or Stateflow® charts is still generated in the global namespace.
Generate model type definitions within the global namespace.
This parameter appears only for ERT-based targets.
This parameter requires Embedded Coder® when generating code.
Parameter:
IncludeModelTypesInModelClass |
Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On |
Safety precaution | No recommendation |