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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nu (from PartialBooleanMISO) | 0 | Number of input connections |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanVectorInput[nu] | u (from PartialBooleanMISO) | Vector of Boolean input signals | |
| Modelica.Blocks.Interfaces.BooleanOutput | y (from PartialBooleanMISO) | Boolean output signal |