Contenuto principale

Author Interfaces in Architecture Models

R2026b
Author and modify architectures using ports and interfaces

In System Composer™, a data interface defines the type, dimensions, units, and structure of the data contained within a port and exchanged between components. You can define shared interfaces or interfaces owned by ports locally that are saved with the model, or you can define interfaces in a data dictionary to be used across models. You can also use the Interface Editor to specify information exchange between components with data interfaces, physical interfaces, and value types.

Blocks

Component blockComponentAdd components to architecture model
Port iconPortAdd ports to components in architecture model
Reference Component blockReference ComponentLink to architectural definition or Simulink behavior
Adapter blockAdapterConnect components with different interfaces

Classes

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

Functions

expand all

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 (Since 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
setInterfaceSet interface for port
getInterfaceGet object for named interface in dictionary
getInterfaceNamesGet names of all interfaces in dictionary
systemcomposer.getSelectedInterfacesGet selected interfaces in Interface Editor (Since R2024a)
addAdapterAdd adapter to architectural elements (Since R2026a)
addInputCreate new inputs on adapter (Since R2026a)
getInputGet adapter input port by name (Since R2026a)
connectToConnect adapter to architectural elements (Since R2026a)
updatePositionUpdate position of adapter based on destination port (Since R2026a)
addMappingAdd new mapping entries to adapter (Since R2026a)
removeMappingRemove mapping entries for input elements in adapter (Since R2026a)
addElementAdd element
removeElementRemove element
getElementGet object for element
getSubElementGet child port element by name (Since R2026a)
getPortElementFind port element by name (Since 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.createDictionaryCreate data dictionary
systemcomposer.openDictionaryOpen data dictionary
saveToDictionarySave interfaces to dictionary
isOpenDetermine whether dictionary is open (Since R2024a)
getFileNameGet absolute filename for dictionary (Since R2024a)
linkDictionaryLink data dictionary to architecture model
unlinkDictionaryRemove linked data dictionary from architecture model
addReferenceAdd reference to dictionary
removeReferenceRemove reference to dictionary
getReferencedDictionariesGet referenced dictionaries (Since R2026a)
makeOwnedInterfaceSharedConvert owned interface to shared interface (Since R2022a)

Tools

Interface EditorCreate and author interfaces in local and shared data dictionaries
Type EditorCreate, modify, and manage types, such as bus objects

Featured Examples