| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop Embedded Coder |
| Contents | Index |
| Learn more about Real-Time Workshop Embedded Coder |
You can replace built-in data type names with user-defined replacement data type names in the generated code for a model.
To configure replacement data types,
Click Replace data type names in the generated code. A Data type names table appears. The table lists each Simulink built-in data type name with its corresponding Real-Time Workshop data type name.

Selectively fill in fields in the third column with your replacement data types. Each replacement data type should be the name of a Simulink.AliasType object that exists in the base workspace. Replacements may be specified or not for each individual built-in type.
For each replacement data type you enter, the BaseType property of the associated Simulink.AliasType object must be consistent with the built-in data type it replaces.
For double, single, int32, int16, int8, uint32, uint16, uint8, and boolean, the replacement data type's BaseType must match the built-in data type.
For int, uint, and char, the replacement data type's size must match the size displayed for int or char on the Hardware Implementation pane of the Configuration Parameters dialog box.
An error occurs if a replacement data type specification is inconsistent. For more information, see Replacing Built-In Data Type Names in Generated Code.
![]() | Renaming and Replacing Data Types | Code Generation with User-Defined Data Types | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |