08-27-2006 07:54 PM
08-27-2006 10:29 PM
The FIR filter with low pass function, filters the input data using the set of FIR filter coefficients that are specified by window, sampling freq, low and high cutoff frequency and number of taps. The result will be an array of filtered samples
Where as in the decimate.vi, From the input array, just those samples corresponding to the decimating factor set are selected and given as the output
For Ex: if you input an array of 100 samples and specify decimation factor as 2, only the 50 even samples at following array indices {0,2,4,6......,98} will be presented as the output.
Hope this helps
Regards
Dev
08-28-2006 01:58 AM
Hello,
With the low pass filter, you'll keep the same number of points, but variation greater than the cut frequency will be remove.
With the resample vi, you'll change the sampling... The number of point will change (more or less) but the band with of your signal will be the same. The time step is changed. The value of each point is recalculate using interoplation.
The decimate vi will transform your array in n subarray. If the decimate vi size is 2, you'll obtain 2 subarray. In the first one you'll find all the points with an odd index and in the other all the points with an even index. Each subarray is equivalent to a particular resampling. The signal is the same, with a time step multiplied by the decimate vi size.
by!
08-28-2006 05:12 AM