07-31-2009 07:10 AM
I am reading a set of data points. I define a tolerance range. How can i say that the vale readings are now constant.
For example the data points are like
10.9
10.8
11.1
11.3
11.4
11.4
11.5
11.6
11.5
11.7
12.0
tolerance range = 0.1
So I should know the point at which temperature is constant. How can i find this one?
07-31-2009 07:34 AM
Hi Nghtcrwlr
Lets see if I understand you correctly:
1. You read a number of values
2. When the valuechange between values is less than the tolerance level you want to do something?
Is that correct? If so you compare the value with the previous one. If the difference is less than the tolerance for a certain number of comparisons it should be constant, right?
Best Regards
David
NISW
07-31-2009 07:39 AM
Nghtcrwlr wrote:I am reading a set of data points. I define a tolerance range. How can i say that the vale readings are now constant.
For example the data points are like
10.9
10.8
11.1
11.3
11.4
11.4
11.5
11.6
11.5
11.7
12.0
tolerance range = 0.1So I should know the point at which temperature is constant. How can i find this one?
If you thresholds are arranged in a increasing seq (sorted) yu hcan use the threshold 1d array and it returns the index.
YOu could alsow subtract your reading from each value in your array of thresholds and then use the array max min on the abosulte difference. The index of the min will give you the index of your threshold.
Ben
07-31-2009 08:03 AM
Hi Nghtcrwlr,
I used to collect a certain number of measurement values in an array (lets say 10 values), the taking max(array)-min(array), then comparing the difference with my tolerance value. If difference is smaller than threshhold, measurement value is considered constant...
07-31-2009 08:04 AM
Nghtcrwlr,
Do you consider any portion of the sample data you included in your original post to be stable? The two consecutive 11.4s or the 11.5, 11.6, 11.5 sequence?
The data you posted looks to me like it has a drift. Please post some data which contains a segment you consider to be stable and mark or indicate which parts are the stable segments.
If your concept of stability can be well defined mathematically, it is probably not very difficult to implement its detection in LV.
Lynn
07-31-2009 08:09 AM
08-01-2009 06:55 AM
Hello everyone.... Give me som time to get some actual readings. The readings are not in an order , i.e sometimes it is 11.3, 11.4 and then the next reading could be 11. 3 again. so I need to know where the reading is almost constant depending on the tolerance range.
I ll let u know if some progress is there.. thankss
Ngtcrwlr
08-01-2009 04:33 PM
08-02-2009 02:30 AM
Hello everyone.... Give me som time to get some actual readings. The readings are not in an order , i.e sometimes it is 11.3, 11.4 and then the next reading could be 11. 3 again. so I need to know where the reading is almost constant depending on the tolerance range.
I ll let u know if some progress is there.. thankss
Did you try my vi? Is it atleast close to what u want?
08-14-2009 05:19 AM
Hi muks
I could not open ur Vi since am having LV7. And moreover i changed the whole algorithm. Now i need not want to find the steady state.
But could you please convert it to LV7, so that i can have a look..
thanks