MATH.LinearTrafo (FB)

(CAA_Mathematics.library)

This function will calculate the linear transformation  of  according to

 with and and . In case of one of the three conditions not being fulfilled for the input values, the output xOutOfLimits will be set to FALSE.

Input:

lrInputValue

LREAL

value to be transformated  

lrInput1

LREAL

coefficient

lrInput2

LREAL

coefficient

lrOutput1

LREAL

coefficient

lrOutput2

LREAL

coefficient

Output:

lrOutputValue

LREAL

linear transformation  of  

xOutOfLimits

BOOL

error flag; will be set, if or