Create a model with subsystem or variant models. Generate code that contains preprocessor conditionals that control the activation of each variant choice.
Specify dimension information as symbols in blocks and data objects. These symbols propagate throughout the model during simulation and then go into the generated code.
This example shows how to generate a C code that contains all the active and inactive values of variant parameters.
Generate code that contains preprocessor conditionals that control the activation of each variant choice and allow for no active variant choice.
Generate C code from Simulink® models having variant condition values of enumerated type.
Configure S-functions to support forward propagation, backward propagation, or forward and backward propagation of symbolic dimensions during simulation.
Generate code containing preprocessor conditionals that control the active variant choice for a Simulink model containing variant blocks.
Define variant control variables and configure model for generating preprocessor conditional directives.
This example shows how to use symbolic dimensions to generate code for a variant subsystem consisting of child subsystems of different output signal dimensions.