Math.LinearTrans (Math.LT)

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

Math.LinearTrans (Math.LT)


 

Perform engineering value conversion.

 


syntax

Math.LinearTrans(

         bForward,

         val,

         min1,

         max1,

         min2,

         max2

         [,bLimitmin = FALSE]

         [,bLimitmax = FALSE]

         )

 


Parameters

 

bForward

 

Type:

Boolean

 

TRUE - Converts raw values to engineering values.

FALSE - Converts from engineering to raw values.

 

val

 

Type:

Number

 

Original price.

 

min1

 

Type:

Number

 

The minimum of the raw values.

 

max1

 

Type:

Number

 

The maximum raw value.

 

min2

 

Type:

Number

 

Minimum engineering value.

 

max2

 

Type:

Number

 

Maximum engineering value.

 

bLimitmin

 

Type:

Boolean

 

When TRUE, the value will not be set smaller than the minimum value.

 

bLimitmax

 

Type:

Boolean

 

When TRUE, the value will not exceed the maximum value.

 

Return Value

 

 

Type:

Number

 

The result value.

 


hmtoggle_plus1Explanation

 


Supported


Script Action

Browser script

Calculation formula syntax

 

 


reference