EMD – Extended multiplication and division

Block SymbolLicensing group: STANDARD
PIC

Function Description
The EMD block multiplies and divides analog input signals u1, u2, u3 and u4 with corresponding weights a, b, c and d. The output y is then given by

y = (au1 + a0)(bu2 + b0) (cu3 + c0)(du4 + d0). (4.1)

The output E is set to on in the case that the denominator in the equation (4.1) is equal to 0 and the output y is substituted by y = yerr.

Inputs

u1

First analog input of the block

double

u2

Second analog input of the block

double

u3

Third analog input of the block

double

u4

Fourth analog input of the block

double

Outputs

y

Analog output of the block

double

E

Error flag – division by zero

bool

Parameters

a

Weighting coefficient of the u1 input  1.0

double

a0

Additive constant for u1 input

double

b

Weighting coefficient of the u2 input  1.0

double

b0

Additive constant for u2 input

double

c

Weighting coefficient of the u3 input  1.0

double

c0

Additive constant for u3 input

double

d

Weighting coefficient of the u4 input  1.0

double

d0

Additive constant for u4 input

double

yerr

Substitute value for an error case  1.0

double