Action
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 |
---|---|---|---|---|
gg | State Number | Scalar | ||
ST | State Name | String |