AnyTrue model
Requirements.Examples.Elementary.LogicalBlocks.AnyTrue
ยท source
Example for AnyTrue (output is true if at least one input is true)
Extends Modelica.Icons.Example
Using logical block AnyTrue as
results in
![]() | |
| simulation result |
The three inputs of anyTrue1 are a constant false, a Boolean step to true at 2 s and a Boolean pulse of
period 1.5 s that starts at 1.5 s. The output is the logical or of the inputs: it is true while the pulse is true
before 2 s and permanently true from 2 s on, because the step input stays true. The number of inputs is set by
nu = 3.
Components and variables
| Name | Type | Description |
|---|---|---|
booleanStep | Modelica.Blocks.Sources.BooleanStep | Boolean step to true at 2 s |
booleanPulse | Modelica.Blocks.Sources.BooleanPulse | Boolean pulse with period 1.5 s, starting at 1.5 s |
const1 | Requirements.Sources.BooleanConstant | Constant false input |
anyTrue1 | Requirements.LogicalBlocks.AnyTrue | True if at least one of the three inputs is true |

