connect
Create architecture model connections
Syntax
Description
connects the unconnected output ports of the source component
connectors
= connect(srcComponent
,destComponent
)srcComponent
to the unconnected input ports of the destination
component destComponent
based on matching port names, and returns a
handle to the connector. For physical connections, the connectors are nondirectional so the
source and destination components can be interchanged.
To remove a connector, use the destroy
function.
connects arrays of components in the architecture.connectors
= connect(arch
,[srcComponent
,srcComponent
,...],[destComponent
,destComponent
,...])
connects a parent architecture input port to a destination child component.connectors
= connect(arch
,[],destComponent
)
connects a source child component to a parent architecture output port.connectors
= connect(arch
,srcComponent
,[])
connects a source port and a destination port, or connects two nondirectional physical
ports.connectors
= connect(srcPort
,destPort
)
connects two ports and applies a stereotype to the connector.connectors
= connect(srcPort
,destPort
,stereotype
)
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes.connectors
= connect(___,Name=Value
)
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2019a
See Also
Functions
iterate
|getQualifiedName
|lookup
|systemcomposer.createModel
|systemcomposer.loadModel
|systemcomposer.openModel
|open
|save
|close
|createArchitectureModel
|createArchitectureSubsystem
|linkToModel
|inlineComponent
|addComponent
|addPort
|getPort
|setName
|setMaskImage
|destroy
Objects
systemcomposer.arch.Element
|systemcomposer.arch.Architecture
|systemcomposer.arch.Component
|systemcomposer.arch.ComponentPort
|systemcomposer.arch.ArchitecturePort
|systemcomposer.arch.Connector
|systemcomposer.arch.PhysicalConnector