blockAllTrue

Output y is true if all inputs are true ("and" of all inputs)

Extends from Modelica_Requirements.Interfaces.PartialBooleanVISO (Partial block with a BooleanVectorInput and a BooleanOutput signal).

Information

Output y is true if all inputs are true, otherwise output y 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).

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

Example

This block is demonstrated with the following example:

results in

simulation result

This block is similar to block And, but has a slightly different icon, the internal function call is inlined (so it is a bit more efficient), and y = true instead of false, if there are no connections.

Parameters

TypeNameDefaultDescription
Integernu (from PartialBooleanVISO)0Number of input connections

Connectors

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