About the continuous execution: scaling equation
- Last UpdatedJul 18, 2024
- 1 minute read
For linear scaling, the following equation is used:
-
ScaledValue = ((RawValue-RawMin)/(RawMax-RawMin) *(EngUnitsMax-EngUnitsMin)) + EngUnitsMin
For square root scaling, the following equation is used:
-
ScaledValue = sqrt( (RawValue-RawMin)/(RawMax-RawMin)) * (EngUnitsMax-EngUnitsMin)) + EngUnitsMin
The time stamp of the resulting ScaledValue is the time stamp of the RawValue, if it has associated time stamp. Otherwise, the current time is used as the ScaledValue time stamp.