メインコンテンツ

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

アーキテクチャ モデルのバリアント コンポーネント

System Composer™ アーキテクチャ モデルでバリアント選択肢を作成、管理、解析する

バリアント コンポーネントでは、アーキテクチャ モデル内の異なる要件セットを満たす目的で、システムの異なる代替設計を作成して使用できます。バリアント コンポーネントは、異なるバリアント選択肢の間で切り替えることができるモデルの部分を表します。バリアント選択肢は、シミュレーション中にアクティブな選択肢として追加、解析、選択できる代替設計です。バリアント コンポーネントは、設計の選択肢のプロトタイプを迅速に作成し、再利用やカスタマイズのためのモジュラー サブシステムをビルドするのに役立ちます。バリアント コンポーネントの基本的な概念の詳細については、バリアントとは、およびどのような場合にそれを使用するかを参照してください。

代替設計は、バリアント選択肢を Variant Component ブロックに追加することで作成および管理します。プログラムにより、Variant Component ブロックにアクティブな選択肢を設定し、使用可能な選択肢を取得し、バリアント選択肢をアクティブにする条件を設定します。バリアント マネージャーを使用して、モデルの階層構造を表示し、モデル内のバリアント要素を管理します。異なるバリアント選択肢を展開できるアーキテクチャ モデルを設計してビルドし、解析関数を実行して量産時間などのパラメーターの観点で最も効果的な選択肢を特定します。

ブロック

Variant ComponentAdd components with alternative designs

クラス

systemcomposer.arch.VariantComponentVariant component in System Composer model

関数

addChoiceバリアント コンポーネントにバリアント選択肢を追加
addVariantComponentAdd variant components to architecture
getActiveChoiceGet active choice on variant component
getChoicesGet available choices in variant component
getConditionReturn variant control on choice within variant component
makeVariantConvert component to variant choice
makeVariantAssemblyConvert variant component to variant assembly component (R2023b 以降)
setActiveChoiceSet active choice on variant component
setConditionSet condition on variant choice
updatePortsFromChoicesUpdate ports in Variant Component block to match its variant choices (R2024a 以降)

トピック

  • Variant Components

    Create multiple variant choices for a component and select a choice using variant controls.

  • Variant Assembly Components

    Add or remove variant choices to a Variant Assembly Component block from external sources without modifying the model.

注目の例