Modelica_StateGraph2.Blocks.MathReal

Blocks with input and output signals of type Real

Package Content

NameDescription
Modelica_StateGraph2.Blocks.MathReal.ShowValue ShowValue Show Real value from numberPort or from number input field in diagram layer dynamically
Modelica_StateGraph2.Blocks.MathReal.Sum Sum Sum of Reals: y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n]
Modelica_StateGraph2.Blocks.MathReal.Product Product Product of Reals: y = u[1]*u[2]* ... *u[n]
Modelica_StateGraph2.Blocks.MathReal.MultiSwitch MultiSwitch Set Real expression that is associated with the first active input signal

Modelica_StateGraph2.Blocks.MathReal.ShowValue Modelica_StateGraph2.Blocks.MathReal.ShowValue

Show Real value from numberPort or from number input field in diagram layer dynamically

Parameters

NameDescription
use_numberPort= true, if numberPort enabled
numberNumber to visualize if use_numberPort=false (time varying)
precisionNumber of significant digits to be shown

Connectors

NameDescription
numberPortNumber to be shown in diagram layer if use_numberPort = true
number2 

Modelica_StateGraph2.Blocks.MathReal.Sum Modelica_StateGraph2.Blocks.MathReal.Sum

Sum of Reals: y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n]

Information

Extends from Modelica_StateGraph2.Blocks.Interfaces.PartialRealMISO (Partial block with a RealVectorInput and a RealOutput signal).

Parameters

NameDescription
k[nu]Input gains
Advanced
precisionNumber of significant digits to be shown in dynamic diagram layer for y

Connectors

NameDescription
u[nu] 
y 

Modelica_StateGraph2.Blocks.MathReal.Product Modelica_StateGraph2.Blocks.MathReal.Product

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

Information

Extends from Modelica_StateGraph2.Blocks.Interfaces.PartialRealMISO (Partial block with a RealVectorInput and a RealOutput signal).

Parameters

NameDescription
Advanced
precisionNumber of significant digits to be shown in dynamic diagram layer for y

Connectors

NameDescription
u[nu] 
y 

Modelica_StateGraph2.Blocks.MathReal.MultiSwitch Modelica_StateGraph2.Blocks.MathReal.MultiSwitch

Set Real expression that is associated with the first active input signal

Information


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];

Parameters

NameDescription
expr[nu]y = if u[i] then expr[i] else y_default (time varying)
y_defaultDefault value of output y if all u[i] = false
Advanced
precisionNumber of significant digits to be shown in dynamic diagram layer for y

Connectors

NameDescription
u[nu]Set y = expr[i], if u[i] = true
yOutput depending on expression

Automatically generated Tue Oct 01 16:04:22 2013.