Initialize
State activations
Library
StateMachine
Description
Initialize and Action blocks are placed inside the StateBlock. The Action block provides the events dispatched by the StateActivation block corresponding to the state. The Initialize block must be activated by events entering the state (initializing the state). This block sets the hidden state variable so that the state containing this block becomes the active state. This implies in particular that all future events will be dispatched to this state and made available by the Action block, until another state becomes initialized.
A state contains only one Action block but may contain more than one Initialize block. Depending on the way the state is entered, different initialization actions may be undertaken. The Init output of the Initialize block is just a replicate of its input activation and is provided in this form for convenience.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
ST | State name (Global signal) | String | ||
gg | State number | Scalar | ||
SM_Params | Parameters |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
init | activation | output | 1 | |
Initialize state | activation | input | 1 |