メインコンテンツ

アーキテクチャ モデルでのインターフェイスの作成

R2026b
ポートとインターフェイスを使用してアーキテクチャを作成および変更する

System Composer™ では、データ インターフェイスにより、ポート内に格納されてコンポーネント間で交換されるデータの型、次元、単位、および構造を定義します。共有インターフェイスまたはローカルでポートによって所有されるインターフェイスを定義してモデルと一緒に保存できます。また、インターフェイスをデータ ディクショナリで定義して複数のモデルで使用することもできます。また、インターフェイス エディターを使用して、データ インターフェイス、物理インターフェイス、および値のタイプによってコンポーネント間の情報交換を指定することもできます。

ブロック

Component blockComponentアーキテクチャ モデルへのコンポーネントの追加
Port iconPortAdd ports to components in architecture model
Reference Component blockReference ComponentLink to architectural definition or Simulink behavior
Adapter blockAdapter異なるインターフェイスをもつコンポーネントの接続

クラス

systemcomposer.ValueTypeValue type in System Composer
systemcomposer.interface.DataInterfaceData interface
systemcomposer.interface.DataElementData element in data interface
systemcomposer.interface.PhysicalDomainPhysical domain in System Composer
systemcomposer.interface.PhysicalInterfacePhysical interface
systemcomposer.interface.PhysicalElementPhysical element in physical interface
systemcomposer.interface.DictionaryArchitectural data of data dictionary of architecture model

関数

すべて展開する

addValueTypeCreate named value type in data dictionary
createInterfaceCreate and set owned interface for port
setNameSet name for value type, function argument, interface, or element
setDataTypeSet data type for value type
setDimensionsSet dimensions for value type
setUnitsSet units for value type
setComplexitySet complexity for value type
setMinimumSet minimum for value type
setMaximumSet maximum for value type
setDescriptionSet description for value type or interface
addInterfaceCreate named data interface in data dictionary
moveInterfaceMove interface to another data dictionary (R2023b 以降)
addPhysicalInterfaceCreate named physical interface in data dictionary
removeInterfaceRemove named interface from interface dictionary
createInterfaceCreate and set owned interface for port
setNameSet name for value type, function argument, interface, or element
setInterfaceポートのインターフェイスを設定する
getInterfaceGet object for named interface in dictionary
getInterfaceNamesGet names of all interfaces in dictionary
systemcomposer.getSelectedInterfacesGet selected interfaces in Interface Editor (R2024a 以降)
addAdapterAdd adapter to architectural elements (R2026a 以降)
addInputCreate new inputs on adapter (R2026a 以降)
getInputGet adapter input port by name (R2026a 以降)
connectToConnect adapter to architectural elements (R2026a 以降)
updatePositionUpdate position of adapter based on destination port (R2026a 以降)
addMappingAdd new mapping entries to adapter (R2026a 以降)
removeMappingRemove mapping entries for input elements in adapter (R2026a 以降)
addElementAdd element
removeElementRemove element
getElementGet object for element
getSubElementGet child port element by name (R2026a 以降)
getPortElementFind port element by name (R2026a 以降)
setNameSet name for value type, function argument, interface, or element
setTypeSet shared type on data element or function argument
createOwnedTypeCreate owned value type on data element or function argument
getSourceElementGets data elements selected on source port for connection
getDestinationElementGets data elements selected on destination port for connection
systemcomposer.createDictionaryデータ ディクショナリを作成する
systemcomposer.openDictionaryデータ ディクショナリを開く
saveToDictionarySave interfaces to dictionary
isOpenDetermine whether dictionary is open (R2024a 以降)
getFileNameGet absolute filename for dictionary (R2024a 以降)
linkDictionaryデータ ディクショナリをアーキテクチャ モデルにリンクする
unlinkDictionaryRemove linked data dictionary from architecture model
addReferenceAdd reference to dictionary
removeReferenceRemove reference to dictionary
getReferencedDictionariesGet referenced dictionaries (R2026a 以降)
makeOwnedInterfaceSharedConvert owned interface to shared interface (R2022a 以降)

ツール

インターフェイス エディターローカルおよび共有のデータ ディクショナリ内のインターフェイスの作成と編集
型エディターCreate, modify, and manage types, such as bus objects

注目の例