12-21-2009 03:14 AM
HI, when i use the ButterworthLowPass function in VS 2005,
::CNiMath::ButterworthLowPass(originData,filteredData2,10000,100);
the first red line is the orgin value, the second red line is the filtered value, the filtered value is not matach the orgin, it is close to zero.
I have tested anoter filter, it has the same problem.
is it i set the wrong parameters?
12-23-2009 10:04 PM
Hi~
It seems that you got the correct syntax. But the performance is greatly related to characteristics of your input data and filter parameters. Also, the first few points of output should be incorrect due to filter delay.
There is an example installed with Measurement Studio, maybe it could help you.
C:\Documents and Settings\All Users\Documents\National Instruments\MStudioVS2005\VCNET\Examples\Math\Filter