WOLFRAM SYSTEM MODELER

Xor

Logical 'xor': y = oneTrue(u) (y is true, if exactly one element of u is true, otherwise it is false)

Wolfram Language

In[1]:=
SystemModel["Modelica.Blocks.MathBoolean.Xor"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

The output is true if exactly one input is 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 false: y=false.

Parameters (1)

nu

Value: 0

Type: Integer

Description: Number of input connections

Connectors (2)

u

Type: BooleanVectorInput[nu]

Description: Vector of Boolean input signals

y

Type: BooleanOutput

Description: Boolean output signal

Used in Examples (1)

BooleanNetwork1

Modelica.Blocks.Examples

Demonstrates the usage of blocks from Modelica.Blocks.MathBoolean