10-17-2013 02:32 PM
I have a general question on using HPF in labview.
If I apply a hpf on 10 sets of data, 20 points each, is the results the same as applying the filter on all 200 points(the same values of course) at once?
I tried it and the results seem to be differenet....
10-17-2013 07:47 PM
No. In general it will not be the same. All filters have an initial transient response (although in many applications it is not noticeable). With ten sets of data you will see the transient response on each set. And with only 20 points of data, the transient may not even be complete at the end of the data set. It depends on the type of filter, the order, the sampling rate and other things. With the combined 200 point data set you would have only one transient.
What is it that you are trying to do? Can you post your VI along with some typical data?
Lynn
10-17-2013 10:23 PM
10-17-2013 11:02 PM
Look for Butterworh filter point by point. That maintains the state between calls.
Also look at the detailed help for the regular Butterworth filter. You'll see there is an input that if you wire a True to it, it will maintain the state between calls.
10-18-2013 12:29 PM
Your question about how many points cannot be answered without the specifications of the filter and a look at the data.
Lynn
10-18-2013 01:10 PM - edited 10-18-2013 01:11 PM
Thanks! Part of my problem is solved.
How could I acheive the following code using labview? This is what I am ultimately trying to do. I have it in a mathscript node for now:
Wn=high_cutoff*2/20;
[fb fa]=butter(3,Wn,'high');
HPF = filtfilt(fb,fa,data);
Where high_cutoff value is provided
I dont think there is an exact equivalent for filtfilt() in labview, is there?
10-18-2013 01:19 PM
I do not know what filtfilt() does.
You can create almost any kind of filter you want in LV, but there may not be a ready-to-use VI. What are the actual filter specifications?
Lynn
10-18-2013 01:21 PM
Here is a link to the description:
10-21-2013 03:08 AM - edited 10-21-2013 03:10 AM
Have a look at this post:
to provide more help, please post some sample data, the result you expect, and your vi ..