Parameter Node - Process tokens through a nested activity diagram - Simulink (original) (raw)
Main Content
Process tokens through a nested activity diagram
Since R2024a
Description
A parameter node acts as a buffer for object tokens and directs tokens into or out of a nested activity. The directionality of the parameter node represents input or output. You can connect parameter node by object flows.
For an action node with activity behavior type, when you create a pin, the software creates a corresponding parameter node inside the nested activity.
These are the two types of input and output parameter nodes:
- Streaming parameter node
- Non-streaming parameter node
Parameters
Parameter Node
Parameter nodes act as buffers for object tokens during execution of a nested activity. Parameter nodes inherently affect the corresponding pins.
Name of the input or output parameter node. By default inheritance, the parameter is called InputPin
orOutputPin
depending on its configuration. As you add more input or output pins to action nodes, increasing numerical suffixes are added to InputPin
orOutputPin
, respectively.
The number of tokens required at an input parameter node for the corresponding action node to begin execution. If an input parameter node has a multiplicity greater than one, it can hold multiple tokens. Upon execution, an action node takes in exactly the number of object tokens specified by the multiplicity parameter.
Enable or disable streaming for the input or output parameter node. The value of this streaming control automatically applies to the corresponding input or output activity pin of the action node.
This list contains stereotypes from imported profiles. To assign a stereotype to a parameter node, select the stereotype from the list.
You can also use <new/edit>
option to manage profiles using Profile Editor.
Object Type
An input or output pin can handle object tokens of a certain type. In the Property Inspector, the Object Type section for a pin allows you to specify the type and other properties of an object token.
The type of object held by a parameter node.
<owned>
— Select properties for an object token, such as type, dimension, complexity, and unit from the Property Inspector.<inherit>
— Inherit the object type from the previous pin.custom type
— Choose from the list of custom types you created using the Types Editor.
This parameter is automatically set to Input
orOutput
, depending on whether you create an input pin or output pin, respectively.
Dimensions of the token.
Dependencies
To enable this parameter, set Name to <owned>
.
Custom unit that you assign to the token.
Dependencies
To enable this parameter, set Name to <owned>
.
Complexity of the token.
Dependencies
To enable this parameter, set Name to <owned>
.
Version History
Introduced in R2024a
See Also
Functions
Tools
Blocks
- Initial Node | Action Node | Pin | Decision or Merge Node | Join or Fork Node | Flow Final Node | Activity Final Node