06-24-2010 02:55 PM
Hey folks,
We're seeing some weirdness with the Butterworth IIR filters. We give it an array of shorts (Int16) to filter, and if any of the values equal SHORT_MAX (32767) the filtered results can wrap around to -32768. We'd rather it not do that.
Has anyone else seen this, is it a known issue?
Solved! Go to Solution.
06-27-2010 05:26 PM
Hi Mojo Hand,
Do you have a small sample workspace that exhibits this behavior. I tried reproducing this on my end but was unable to do so. What version of CVI are you using? Also, what specific function are you using to filter and what inputs are you providing to it? If you could send me a sample workspace or a snippet of code, it would be helpful in exploring this further.
06-28-2010 07:05 PM
Oh, we found it! The problem was on our end, unsafely casting the doubles in the filtered results to shorts could cause 33645.4 to be cast to something like -31720. (not exactly that, just illustrating)
I appreciate you taking time on this.