Changeset 17395 for trunk


Ignore:
Timestamp:
11/27/13 16:18:24 (11 years ago)
Author:
tbretz
Message:
Finally updated the function for the Pt1000 to something which is almost exact within 5-25deg
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fscctrl.cc

    r17346 r17395  
    9393    double GetTempPT1000(double R) const
    9494    {
    95         const double R0 = 1000; // 1kOhm
    96 
    97         const double a = 3.893e-3;
    98 
    99         return (R/R0 - 1)/a;
     95        // This is precise within the range 5degC and 25degC
     96        // by 3e-3 degC. At 0degC and 30degC it overestimates the
     97        // temperature by 0.025 degC. At -10degC it is ~0.9degC
     98        // and at 40degC ~0.05degC.
     99        const double x = R/1000;
     100        return -193.804 + 96.0651*x + 134.673*x*x - 36.9091*x*x*x;
     101
     102        //const double R0 = 1000; // 1kOhm
     103        //const double a = 3.893e-3;
     104        //return (R/R0 - 1)/a;
    100105    }
    101106
Note: See TracChangeset for help on using the changeset viewer.