M
Martin Brown
Guest
On 05/10/2019 22:56, Clifford Heath wrote:
I'm not quite sure how they determine these tables but they must
ultimately be referenced back to a handful of reliable triple point
references. I did check the fit using Chebeshev polynomials on the range
-270 to 0 and the results are suggestive that the published polynomials
were derived as Chebeshev fits and converted to divergent polynomials!
--
Regards,
Martin Brown
On 6/10/19 4:28 am, Phil Hobbs wrote:
On 2019-10-05 02:05, Clifford Heath wrote:
On 5/10/19 5:32 am, Phil Hobbs wrote:
On 10/2/19 12:37 PM, Martin Brown wrote:
On 02/10/2019 17:04, Peter wrote:
 Martin Brown <'''newspam'''@nezumi.demon.co.uk> wrote:
Most likely these days just store the coefficients.
I can find the polynomial coefficients for EJKRST here
https://paginas.fe.up.pt/saic/Docencia/ci_lem/Ficheiros/an043.pdf
for both directions. I just need them for B and N.
Depending on the range of temperatures your sensor is expected to
encounter then you can choose the right coefficients. How many
you need
depends on how accurate you want the calibration to be.
I am trying to support the full documented temp range for each type.
However I have had no luck yet finding a *single* resistance to
temperature equation for the RTD.
It won't hurt much if you use the high range polynomial for
temperatures a little below zero or the low range one for room
temperatures. It really matters which you use when you get to very
hot or very cold. The two range calibration methods should agree
pretty well in their overlap.
Providing a bit of hysteresis so you only swap to high range at
+30C and to low range at -10C would be a reasonable compromise. I
haven't checked what maximum error that would incur (you ought to
though).
Tables can be found for all these so one could generate a lookup
table.
I know that in principle one can generate a polynomial for almost any
curve, and these curves being monotonic, it is even easier. If you
want to fit 10 points exactly, you need a polynomial with 10 (11?)
terms. How to do this, I don't know, but clearly it is well known.
That is an unfortunate tendency of engineers to overfit their
calibration data and get a polynomial that fits all their
calibration points exactly and oscillates wildly at all points in
between.
Cubic splines are the bomb for this sort of job.
Exactly what I said two days ago.
Pure chronological snobbery.
Use interpolated splines however, since they pass through the control
points, not B-splines (despite their advantages of smooth derivatives)
CH
You want to use least-squares cubic splines to fit data,
Yes, when fitting measured data. But we were talking about
manufacturer's theoretical curves. By definition they are not noisy
data, they're supposed to be definitive. If you're not going to
calibrate to a better standard, your curves should hit all the points.
I'm not quite sure how they determine these tables but they must
ultimately be referenced back to a handful of reliable triple point
references. I did check the fit using Chebeshev polynomials on the range
-270 to 0 and the results are suggestive that the published polynomials
were derived as Chebeshev fits and converted to divergent polynomials!
--
Regards,
Martin Brown