Generate typedefs for imported bus and enumeration types
typedef handling for bus and enumeration data types in Stateflow charts and MATLAB Function blocks
Model Configuration Pane: Simulation Target
Description
The Generate typedefs for imported bus and enumeration types parameter specifies whether Simulink® generates type definitions for bus and enumeration data types imported in Stateflow® charts and MATLAB Function blocks. Starting in R2026a, this parameter is supported for the code specified in C Function blocks that use Configuration Parameters dialog box to specify custom code files.
Settings
off (default) | onoffSimulink does not generate its own type definitions for bus and enumeration data types imported in Stateflow charts, MATLAB Function blocks and C Function blocks (starting in R2026a). Simulink uses type definitions from the included header file.
onSimulink generates type definitions for bus and enumeration types imported in Stateflow charts, MATLAB Function blocks and C Function blocks (starting in R2026a).
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No recommendation |
| Traceability | No recommendation |
| Efficiency | No recommendation |
| Safety precaution | No recommendation |
Programmatic Use
Parameter: SimGenImportedTypeDefs |
| Type: string | character vector |
Values:
"on" | "off" |
Default:
"off" |
Version History
Introduced in R2013b