Is there a simple vi or function that does the following? If the new value of a variable is greater or equal to a specific maximum value it substitutes the previous value instead, otherwise it passes the new value. Basically, I want to use it as a filter of incoming data to remove spikes.
Thank you Randall and t06afre. Yes, I had looked at the clip and coerce functions and unfortunately both substitute the limit values as opposed to a value closer previous data samples. I think the pt by pt median filter is closer to what I am looking for. I will report back after tests.