Contenido principal

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) | on
off

Simulink 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.

on

Simulink generates type definitions for bus and enumeration types imported in Stateflow charts, MATLAB Function blocks and C Function blocks (starting in R2026a).

Recommended Settings

ApplicationSetting
DebuggingNo recommendation
TraceabilityNo recommendation
EfficiencyNo recommendation
Safety precautionNo recommendation

Programmatic Use

Parameter: SimGenImportedTypeDefs
Type: string | character vector
Values: "on" | "off"
Default: "off"

Version History

Introduced in R2013b