modelState
Block that outputs the mode if the state is active, or zero otherwise
Extends from Modelica.StateGraph.StepWithSignal (Ordinary step (= step that is not active when simulation starts). Connector 'active' is true when the step is active).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nIn (from PartialStep) | 0 | Number of input connections |
| Integer | nOut (from PartialStep) | 0 | Number of output connections |
| OperationModes | mode | Enter enumeration of mode |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Step_in[nIn] | inPort (from PartialStep) | Vector of step input connectors | |
| Interfaces.Step_out[nOut] | outPort (from PartialStep) | Vector of step output connectors | |
| Modelica.Blocks.Interfaces.BooleanOutput | active (from StepWithSignal) | ||
| Modelica.Blocks.Interfaces.IntegerOutput | y | Mode signal (=0 if not active) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | localActive (from PartialStep) | = true, if step is active, otherwise the step is not active |