connect
R2026bDescription
connects the specified source node flow = connect(srcNode,destNode)srcNode and destination node
destNode as a flow. The type of flow created depends on what
kind of node you specify for srcNode:
If the
srcNodenode is a pin or a parameter node, the function creates an object flow.If the
srcNodenode is an action node or an initial node, the function creates a control flow.If the
srcNodenode is a control node, the type of flow created depends on the input flow for that specific control node. Control nodes include join or fork nodes and decision or merge nodes.
Note
If you connect an object flow to an action node as
destnode, the software automatically creates an
input pin on the action node.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2026a
See Also
Functions
systemcomposer.createActivity|addNode|addParameter|getNode|getNodes|getFlow|getParameter|getParameters|getPin|getPins|addPin|addTag|getParentPin|applyStereotype|removeStereotype|getStereotype|destroy|setBehaviorType|linkToModel
Objects
systemcomposer.activity.AcceptAction|systemcomposer.activity.Action|systemcomposer.activity.Activity|systemcomposer.activity.ActivityNode|systemcomposer.activity.ActivityFinal|systemcomposer.activity.ControlNode|systemcomposer.activity.Flow|systemcomposer.activity.FlowFinal|systemcomposer.activity.Model|systemcomposer.activity.JoinFork|systemcomposer.activity.Initial|systemcomposer.activity.MergeDecision|systemcomposer.activity.Parameter|systemcomposer.activity.Pin|systemcomposer.activity.SendAction|systemcomposer.activity.TimeAction
Tools
Blocks
- Initial Node | Action Node | Accept Action Node | Send Action Node | Pin | Parameter Node | Decision or Merge Node | Join or Fork Node | Flow Final Node | Time Action Node | Activity Final Node
Topics
- Describe System Behavior Using Activity Diagrams
- Establish Traceability and Extend Model Elements
- Simulate, Visualize, and Validate Activity Diagrams
- Compose Architectures Visually
- Implement Component Behavior Using Activity Diagrams
- Implement Component Behavior Using Stateflow Charts
- Implement Component Behavior Using Simscape
