IndustrialControlSystems.MathOperations.RealType.Interfaces

Interfaces

Information

Extends from IndustrialControlSystems.Icons.InterfacesPackage (Interfaces package icon).

Package Content

NameDescription
IndustrialControlSystems.MathOperations.RealType.Interfaces.RealSimpleOperation RealSimpleOperation Real operation interface
IndustrialControlSystems.MathOperations.RealType.Interfaces.RealNinOperation RealNinOperation Real comparison interface

IndustrialControlSystems.MathOperations.RealType.Interfaces.RealSimpleOperation IndustrialControlSystems.MathOperations.RealType.Interfaces.RealSimpleOperation

Real operation interface

Information

  

Description

Real math operations.

Fixed Point numbers

When using fixed point real numbers, Nbit is the number of bits that can be represented. The range is

  Xfp in [-2Nbit - 1 + 1  ,...,  2Nbit - 1]
  
Then it is possible to define a scaleFactor
  X = Xfp/scaleFactor
  
When the Fixed Point representation is selected (through the selection of the boolean flag FixedPoint), each input number u is converted into an integer Ufp
  Ufp = u*scaleFactor
  
then the result of the math operation Yfp is computed and converted into the output value y. The output conversion depends on the math operation performed.

Saturation

To note that the Fixed Point numbers have a maximum and minimum value. In order to avoid saturation when performing the computations, the number of bit as well the scale factor have to be choosen carefully.

Parameters

NameDescription
Tssampling time
Nbit Number of bit for representing the real numbers
Fixed Point
FixedPoint Use fixed point real numbers
scaleFactor Scale factor for Fixed Point numbers
MAX maximum number that can be represented with Fixed Point notation
MIN mainimum number that can be represented with Fixed Point notation

Connectors

NameDescription
u1input
u2input
youtput

IndustrialControlSystems.MathOperations.RealType.Interfaces.RealNinOperation IndustrialControlSystems.MathOperations.RealType.Interfaces.RealNinOperation

Real comparison interface

Information

  

Description

Real math operations.

Fixed Point numbers

When using fixed point real numbers, Nbit is the number of bits that can be represented. The range is

  Xfp in [-2Nbit - 1 + 1  ,...,  2Nbit - 1]
  
Then it is possible to define a scaleFactor
  X = Xfp/scaleFactor
  
When the Fixed Point representation is selected (through the selection of the boolean flag FixedPoint), each input number u[:] is converted into an integer Ufp[:]
  Ufp[:] = u[:]*scaleFactor
  
then the result of the math operation Yfp is computed and converted into the output value y. The output conversion depends on the math operation performed.

Saturation

To note that the Fixed Point numbers have a maximum and minimum value. In order to avoid saturation when performing the computations, the number of bit as well the scale factor have to be choosen carefully.

Parameters

NameDescription
Tssampling time
nInputnumber of inputs
useInputs=true, if inputs are enabled
Fixed Point
FixedPoint Use fixed point real numbers
Nbit Number of bit for representing the real numbers
scaleFactor Scale factor for Fixed Point numbers
MAX maximum number that can be represented with Fixed Point notation
MIN mainimum number that can be represented with Fixed Point notation

Connectors

NameDescription
u[nInput]input vector
youtput

Automatically generated Mon May 21 13:34:14 2012.