06-04-2007 09:28 AM
06-04-2007 11:16 AM
06-04-2007 11:17 AM - edited 06-04-2007 11:17 AM
Initialize a shift register with a size 10 array, then rotate and insert a new value at each iteration so you always have the 10 last values in it. You can do e.g. a standard deviation of the array contents and consider it stabilized when the stdev drops below a certain threshold.
You can keep track of all thermocouples at once by using a 2D array in a similar fashion.
See how far you get. 🙂
Message Edited by altenbach on 06-04-2007 09:19 AM
06-04-2007 11:38 AM
Here's a quick example (8.0). See if it makes sense (If you us the stdev, you don't need to rotate, just replace the oldest set.)
06-05-2007 04:26 AM
This forum with its quick responding and its help is unbelievable. Thanks to you who helped me. The problem is solved!
I will surely come back to you in future.
Thanks again and keep up!!