To generate code for rapid prototyping, configure the representation of model data elements for code generation. You configure model data elements by mapping them to code definitions (storage classes) that are predefined by the product.
For an introduction, see C Code Generation Configuration for Model Interface Elements.
coder.mapping.api.CodeMapping | Model data and function interface configuration for C code generation |
Code Mappings Editor | Associate model elements with code definitions |
C Code Generation Configuration for Model Interface Elements
Control the representation of model data elements and functions in generated C code.
Code Definition and Mapping Limitations and Considerations
Restrictions, constraints, and considerations that apply to code definitions and code mappings.
Manage Multiple Code Mappings for a Model
Design models that are platform-neutral and ready to deploy to different run-time environments.
Migration of Model Data Configurations to Code Mappings
How Simulink® migrates code definitions for models created before release R2020b to code mappings and related information to consider.
Choose Data Configuration Approach
Make decisions about the design data used by your model based on your code generation requirements.
Configure Root-Level Inport Blocks for C Code Generation
Set the storage class and other relevant code generation properties for root-level Inport blocks.
Configure Root-Level Outport Blocks for C Code Generation
Set the storage class and other relevant code generation properties for root-level Outport blocks.
Configure Signal Data for C Code Generation
Set the storage class and other relevant code generation properties for signal data.
Configure Parameters for C Code Generation
Set the storage class and other relevant code generation properties for parameters.
Configure Block States for C Code Generation
Set the storage class and other relevant code generation properties for block states.
Configure Data Stores for C Code Generation
Set the storage class and other relevant code generation properties for data stores.
Choose Storage Class for Controlling Data Representation in Generated Code
Choose a storage class to apply to data elements in a model, such as signals, states, and block parameters.
Configure C Code Generation for Model Entry-Point Functions
Learn about generated C entry-point functions, configuration options, and how to interface with them.
Control Data and Function Interface in Generated Code
Control how generated code exchanges data with a calling environment.
Rapid Prototyping Model Functions
Generate rapid prototyping code.
Generate Reentrant Code from Top Models
Generate reusable, reentrant code from top models.