LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript/Matlab fir1 function vs. LabVIEW FIR coefficient?

I'd like to convert some Matlab/LabVIEW Mathscript function into LabVIEW block functions, because it's faster.
One of the function I'm not sure is the FIR function: I have a Mathscrip function fir1(n,W), is "FIR windowed coefficients" its LabVIEW equivalent?  If yes, how should I match the parameters (e.g. is W the high or low curoff frequency? is Order n the same as the number of taps)? If no, which LabVIEW function should I use?
Thanks.
0 Kudos
Message 1 of 2
(3,642 Views)
Hi pji,

I don't have LabVIEW, but I found some really useful resources in LabVIEW Help (open labVIEW>>Help>>search the LabVIEW Help>>search)
Search for fir1 and it contains the syntax, paramter definition and some example codes which you can simply copy and paste and run

b = fir1(n, w)

n: Specifies the filter order. n is a nonnegative integer. n must be even for filters with a non-zero gain at the Nyquist frequency. If n does not meet this condition, LabVIEW increases n by 1.

w: Specifies the cutoff frequency of the filter. w is real number between 0 and 1. 1 represents the Nyquist frequency.

LabVIEW Help has abundant information, check it out!!!
Van L
NI Applications Engineer
0 Kudos
Message 2 of 2
(3,613 Views)