バリアントの信号の次元
シンボルを使用して信号の次元を参照することでモデル設計を再利用
シンボリック次元を使用して、モデルを個別に変更することなく、信号の一連の代替次元をシミュレートできます。それぞれの次元の選択をシンボルを使用して表現します。モデルをビルドすると、バリアントの信号の次元に対応するシンボルが生成コードに含まれます。
トピック
- Generate Code for Variant Subsystem with Child Subsystems of Different Output Signal Dimensions (Embedded Coder)
This example shows how to use symbolic dimensions to generate code for a variant subsystem consisting of child subsystems of different output signal dimensions.
- Compile Code Conditionally for All Values of Variant Parameters with Same and Different Dimensions
This example shows how to generate a C code that contains all the active and inactive values of variant parameters. The values are enclosed in preprocessor conditionals
#if
and#elif
that enables you to compile the code conditionally based on the condition that evaluates totrue
.