11-02-2000 08:00 AM
11-02-2000 08:38 AM
11-02-2000 09:16 AM
05-03-2003 02:55 AM
04-11-2013 03:24 PM
I am trying to measure continous temp measurements from a thermocouple and I need to designate a steady state point. I have done the two index arrays and subtracted them but I need a way to separate the two values by at least a couple seconds. I need the change of temp to be less than .2 degrees in a time span of around ten seconds in order to be steady state. Any ideas of how I can do this?
Daniel
04-11-2013 09:37 PM
Daniel,
Tagging onto the end of a 10-year old thread may not be the best way to get an answer.
It appears that you have your data in an array. The most recent data is probably the last element in the array. To find the temperature from 10 seconds earlier, you calculate the index of that data from the reciprocal of the sampling rate. For example suppose that you are sampling at fs = 20 Hz (Samples per second). Then the time increment, dt, between samples is dt = 1/fs = 50 ms. Then the sample 10 seconds earlier has an index difference of 10 s/50 ms = 200. If the last element in the array has index (last) = 499, then the index (-10 s) = 499 - 200 = 299.
If your array is T, then the temperature difference at two times 10 seconds apart is T[last] - T[last-200].
If the temperature is fluctuating or there is noise on the measurement, you might be better off averaging several samples and looking at the differences of the averages.
Lynn