StateActivation
State Machine activations
Library
StateMachine
Description
StateActivation and StateBlock blocks go together. They are the basic components for defining a state machine, which is obtained by placing one StateActivation, and one or more StateBlock blocks in the same diagram. The StateActivation block dispatches its activation to one of the StateBlock blocks defined by the value of a hidden state variable. The value of this variable is set inside the states, when the states are initialized.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
ST | State name (Global signal) | String | ||
NStates | Max number of states | Number |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | activation | input | 1 |