Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the ButterworthLowPass,or other low pass filter?

HI, when i use the ButterworthLowPass function in VS 2005,

 ::CNiMath::ButterworthLowPass(originData,filteredData2,10000,100);

 

1.JPG 

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?

0 Kudos
Message 1 of 2
(6,502 Views)

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

0 Kudos
Message 2 of 2
(6,476 Views)