blockAnd

Logical 'and': y = u[1] and u[2] and ... and u[nu]

Extends from Modelica.Blocks.Interfaces.PartialBooleanMISO (Partial block with a BooleanVectorInput and a BooleanOutput signal).

Information

The output is true if all inputs are true, otherwise the output is false.

The input connector is a vector of Boolean input signals. When a connection line is drawn, the dimension of the input vector is enlarged by one and the connection is automatically connected to this new free index (thanks to the connectorSizing annotation).

The usage is demonstrated, e.g., in example Modelica.Blocks.Examples.BooleanNetwork1.

If no connection to the input connector "u" is present, the output is set to true: y=true.

Parameters

TypeNameDefaultDescription
Integernu (from PartialBooleanMISO)0Number of input connections

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanVectorInput[nu]u (from PartialBooleanMISO)Vector of Boolean input signals
Modelica.Blocks.Interfaces.BooleanOutputy (from PartialBooleanMISO)Boolean output signal