blockProduct

Product of Integer: y = u[1]*u[2]* ... *u[n]

Extends from Modelica.Blocks.Interfaces.PartialIntegerMISO (Partial block with an IntegerVectorInput and an IntegerOutput signal).

Information

This blocks computes the scalar Integer output "y" as product of the elements of the Integer input signal vector u:

y = u[1]*u[2]* ... *u[N];

The input connector is a vector of Integer 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.IntegerNetwork1.

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

Parameters

TypeNameDefaultDescription
Integernu (from PartialIntegerMISO)0Number of input connections

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerVectorInput[nu]u (from PartialIntegerMISO)Vector of Integer input signals
Modelica.Blocks.Interfaces.IntegerOutputy (from PartialIntegerMISO)Integer output signal