バリアントのモデリング コンポーネントの管理
バリアント マネージャーは、モデルの階層構造を可視化し、バリアント ブロックや Stateflow® チャートのバリアント遷移など、階層全体でのバリアント要素の使用を一元管理できるツールです。
このツールは Variant Manager for Simulink® というサポート パッケージとして提供されています。主な機能は次のとおりです。
バリアント マネージャー — モデルの階層構造を可視化し、階層全体でのバリアント要素の使用を管理し、バリアント コンフィギュレーションを作成および管理する。
バリアント リデューサー — 選択されたバリアント コンフィギュレーションのみを含む削減されたモデルを生成する。
バリアント アナライザー — バリアント コンフィギュレーションを比較対比してエラーや不整合を特定する。
クラス
Simulink.VariantConfigurationData | プログラムによるバリアント コンフィギュレーションの作成 |
Simulink.VariantConfigurationAnalysis | プログラムによるバリアント コンフィギュレーションの解析 |
関数
Simulink.VariantManager.activateModel | Validate and activate variant blocks in model hierarchy (R2022b 以降) |
Simulink.VariantManager.applyConfiguration | Apply specified variant configuration to model (R2022b 以降) |
Simulink.VariantManager.findVariantControlVars | Find variables used in variant control expressions |
Simulink.VariantManager.generateConfigurations | Generate variant configurations automatically (R2022b 以降) |
Simulink.VariantManager.getConfigurationData | Get variant configuration data object associated with model (R2022b 以降) |
Simulink.VariantManager.getPreferredConfigurationName | Get name of preferred variant configuration for model (R2022b 以降) |
Simulink.VariantManager.reduceModel | 指定されたバリアント コンフィギュレーションの削減されたモデルを生成する |
トピック
- Variant Configurations
Use variant configurations to represent combination of variant choices across model hierarchy.
- Create and Activate Variant Configurations
Create and activate variant configurations for a model.
- Compose Variant Configurations for Top Model Using Referenced Model Configurations
Use referenced model configuration to set up variant configuration for a top-level model.
- Save and Reuse Variant Configurations Using Variant Configuration Data Object
Save and load variant configuration data object for a model.
- Generate Variant Configurations Automatically
Generate all possible variant configurations for a model.
- Variant Manager Workflow to Set Up Variant Configurations for Models
Workflow diagram to set up variant configurations for a model.
- Variant Manager Workflow to Manage Existing Variant Configurations in Models
Workflow diagram to manage existing variant configurations for a model.
- Reduce Variant Models Using Variant Reducer
Generate reduced models that contain a subset of the available variant configurations.
- Analyze Variant Configurations in Models Containing Variant Blocks
Analyze and compare variant configurations for a model containing variant blocks.