09-11-2006 04:27 PM
09-11-2006 05:31 PM
09-11-2006 05:44 PM
09-12-2006 03:21 PM
09-12-2006 04:21 PM
09-13-2006 04:23 PM
09-13-2006 05:00 PM
I get a delay at the beginning of my signal after filtering. How do I get rid of that?I noted this delay and didn't like it. It causes problems in my downstream algorythms. I'm not sure if the add waveform processing VI affords the same functionality. Nor am I sure that revising the setting as advised will take care of the problem for all instances (data frequency, sample rate, etc.)
This usually arises when the filter order is high. The solution is to set the init/cont input of the filter to TRUE. Setting init/cont to TRUE means that you want to use continuous filtering, which only makes sense if you feed multiple portions of a continuous signal to subsequent filtering operations (simulating real-time filtering).
09-14-2006 12:43 PM
Hello Paul,
When performing filtering you will always have a couple samples at the
beginning of your data that are not valid. For example with FIR filters,
the higher the number of Taps (or filter order) the more initial points you
have that are invalid. There is no way to fix this, it is just part of
the math involved in filtering.
Now, by selecting continuous mode, you have simulated a continuous stream of
data and you do not have these incorrect samples every time you run the VI.
To answer your last questions, you need to use both the property node and add
waveform processing VI to get the scope driver to filter your data. If
you just use the add waveform processing VI (with no property node), you will filter
but you use the default values of the filter. If you just use a property
node (no add waveform processing VI), you do not add filtering to list of
processing events and no filtering takes place.
Finally, if the data going into a filter is synchronized the data coming out
will be synchronized as long as you filter both channels with the same digital
filter properties.
Regards,
Jesse O.
Applications Engineering
National Instruments
09-14-2006 12:49 PM
09-14-2006 02:44 PM
Hello Paul,
I'm not sure I exactly understand you question. If you look at the
digital filter example I mentioned before you have the option of selecting an
FIR filter, Chebyshev IIR, Bessel IIR etc. Each of these filters will
have properties. If you look at the code, you configure the property node
then you filter. The property node is configured then you specify what filter
type you want.
Each of these filter types have their advantages and disadvantages. For
example a FIR filter will have a linear phase response; however you would
require a large filter order for the roll off typically found with an IIR
filter.
I hope this answers your questions. If not can you please explain a
little more about what you are looking for?
Regards,
Jesse O.
Applications Engineering
National Instruments