メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

バリアントのモデリング コンポーネントの管理

バリアント要素の管理とバリアント コンフィギュレーションの定義、削減、解析

バリアント マネージャーは、モデルの階層構造を可視化し、バリアント ブロックや Stateflow® チャートのバリアント遷移など、階層全体でのバリアント要素の使用を一元管理できるツールです。

このツールは Variant Manager for Simulink® というサポート パッケージとして提供されています。主な機能は次のとおりです。

  • バリアント マネージャー — モデルの階層構造を可視化し、階層全体でのバリアント要素の使用を管理し、バリアント コンフィギュレーションを作成および管理する。

  • バリアント リデューサー — 選択されたバリアント コンフィギュレーションのみを含む削減されたモデルを生成する。

  • バリアント アナライザー — バリアント コンフィギュレーションを比較対比してエラーや不整合を特定する。

クラス

Simulink.VariantConfigurationAnalysisプログラムによるバリアント コンフィギュレーションの解析

オブジェクト

Simulink.VariantConfigurationDataCreate and store variant configurations and constraints

関数

すべて展開する

Simulink.VariantManager.activateModel Validate and activate variant blocks in model hierarchy (R2022b 以降)
Simulink.VariantManager.updateModelObtain model compilation information and activate variant blocks in model hierarchy (R2024b 以降)
Simulink.VariantManager.applyConfigurationApply 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.getConfigurationDataGet variant configuration data object associated with model (R2022b 以降)
Simulink.VariantManager.getPreferredConfigurationNameGet name of preferred variant configuration for model (R2022b 以降)
Simulink.VariantManager.reduceModel指定されたバリアント コンフィギュレーションの削減されたモデルを生成する
Simulink.VariantManager.validateConstraintVerify if variant constraint is satisfied by model hierarchy (R2025a 以降)

バリアント コンフィギュレーション

addConfigurationバリアント コンフィギュレーション データ オブジェクトへの新しいバリアント コンフィギュレーションの追加
addCopyOfConfigurationバリアント コンフィギュレーション データ オブジェクトへ既存のバリアント コンフィギュレーションのコピーを追加
getConfiguration バリアント コンフィギュレーション データ オブジェクトから特定の名前のバリアント コンフィギュレーションを返す
removeConfigurationバリアント コンフィギュレーション データ オブジェクトから特定の名前のバリアント コンフィギュレーションを削除
addControlVariables既存のバリアント コンフィギュレーションへの制御変数の追加
removeControlVariableバリアント コンフィギュレーションからの制御変数の削除
addConstraintバリアント コンフィギュレーション データ オブジェクトへの制約の追加
removeConstraintバリアント コンフィギュレーション データ オブジェクトからの制約の削除
isConfigActiveCheck if variant configuration is active (R2025a 以降)

コンポーネント コンフィギュレーション

addComponentConfiguration Associate top-model variant configuration with variant configuration of referenced model (R2022b 以降)
getComponentConfigurationNameGet name of variant configuration used by referenced component in model hierarchy (R2023b 以降)
removeComponentConfigurationRemove association between variant configurations of top-level model and referenced model (R2022b 以降)

優先コンフィギュレーション

setPreferredConfiguration Set name of preferred variant configuration for variant configuration data object (R2022b 以降)
getPreferredConfigurationGet name of preferred variant configuration for variant configuration data object (R2022b 以降)
convertDefaultToPreferredConvert default variant configuration to preferred variant configuration (R2022b 以降)

サポート パッケージ

Variant Manager for Simulink

Use a central tool to manage all variation points in a variant model.

トピック

注目の例