| Algorithm 1 Linearization |
|
Input: Measured RTD resistance, R_T, floating-point type Output: Calculated temperature, Temperature, floating-point type |
| Initialization: defining the coordinates of the points bounding each interval Ra_1, Ra_2... Ra_End and Ta_1, Ta_2... Ta_End |
| 1: Determine the interval (n) in which the measured resistance is located, and whether it is in the respective temperature range |
| If ((R_T > Ra_n) and (R_T ≤ Ra_(n + 1))) |
| 2: Calculate the temperature according to the formula |
| Temperature = (R_T − Ra_n) ∗ ((Ta_(n + 1) − Ta_n)/(Ra_(n + 1) − Ra_n)) + Ta_n; |
| 3: Return Temperature |