tadk,
Since you would like to use a tolerance, this becomes a little more complex. Here is a possible solution. I check to see if the current value is within a range, and if so it passes a true to a shift register. I use two elements in the shift register so I can detect if I have two elements of 0.0025, and if so I check to see if the next value is in the 0.005 range. If this pattern is found I set a Boolean true and exit the program. You could expand the number of matches by increasing the number of shift registers and compound arithmetic. Please let me know if this is approximately what you were trying to do.
Andy F.
-----------------------------------------------------------------
National Instruments