Name | Description |
---|---|
ShowValue | Show Real value from numberPort or from number input field in diagram layer dynamically |
Sum | Sum of Reals: y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n] |
Product | Product of Reals: y = u[1]*u[2]* ... *u[n] |
MultiSwitch | Set Real expression that is associated with the first active input signal |
Name | Description |
---|---|
use_numberPort | = true, if numberPort enabled |
number | Number to visualize if use_numberPort=false (time varying) |
precision | Number of significant digits to be shown |
Name | Description |
---|---|
numberPort | Number to be shown in diagram layer if use_numberPort = true |
number2 |
Name | Description |
---|---|
k[nu] | Input gains |
Advanced | |
precision | Number of significant digits to be shown in dynamic diagram layer for y |
Name | Description |
---|---|
u[nu] | |
y |
Name | Description |
---|---|
Advanced | |
precision | Number of significant digits to be shown in dynamic diagram layer for y |
Name | Description |
---|---|
u[nu] | |
y |
The block has a vector of Boolean input signals u[nu] and a vector of (time varying) Real expressions expr[:]. The output signal y is set to expr[i], if i is the first element in the input vector u that is true. If all input signals are false, y is set to parameter "y_default":
// Conceptual equation (not valid Modelica) i = 'first element of u[:] that is true'; y = if i==0 then y_default else expr[i];
Name | Description |
---|---|
expr[nu] | y = if u[i] then expr[i] else y_default (time varying) |
y_default | Default value of output y if all u[i] = false |
Advanced | |
precision | Number of significant digits to be shown in dynamic diagram layer for y |
Name | Description |
---|---|
u[nu] | Set y = expr[i], if u[i] = true |
y | Output depending on expression |