このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
アーキテクチャ モデルのバリアント コンポーネント
バリアント コンポーネントでは、アーキテクチャ モデル内の異なる要件セットを満たす目的で、システムの異なる代替設計を作成して使用できます。バリアント コンポーネントは、異なるバリアント選択肢の間で切り替えることができるモデルの部分を表します。バリアント選択肢は、シミュレーション中にアクティブな選択肢として追加、解析、選択できる代替設計です。バリアント コンポーネントは、設計の選択肢のプロトタイプを迅速に作成し、再利用やカスタマイズのためのモジュラー サブシステムをビルドするのに役立ちます。バリアント コンポーネントの基本的な概念の詳細については、バリアントとは、およびどのような場合にそれを使用するかを参照してください。
代替設計は、バリアント選択肢を Variant Component ブロックに追加することで作成および管理します。プログラムにより、Variant Component ブロックにアクティブな選択肢を設定し、使用可能な選択肢を取得し、バリアント選択肢をアクティブにする条件を設定します。バリアント マネージャーを使用して、モデルの階層構造を表示し、モデル内のバリアント要素を管理します。異なるバリアント選択肢を展開できるアーキテクチャ モデルを設計してビルドし、解析関数を実行して量産時間などのパラメーターの観点で最も効果的な選択肢を特定します。
ブロック
Variant Component | Add components with alternative designs |
クラス
systemcomposer.arch.VariantComponent | Variant component in System Composer model |
関数
addChoice | バリアント コンポーネントにバリアント選択肢を追加 |
addVariantComponent | Add variant components to architecture |
getActiveChoice | Get active choice on variant component |
getChoices | Get available choices in variant component |
getCondition | Return variant control on choice within variant component |
makeVariant | Convert component to variant choice |
makeVariantAssembly | Convert variant component to variant assembly component (R2023b 以降) |
setActiveChoice | Set active choice on variant component |
setCondition | Set condition on variant choice |
updatePortsFromChoices | Update 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.