Least square linear-phase FIR filter

I need to geta second order derivative of an array based on 2 stage filtering with a least square linear phase FIR "differentiator " filter. Previously this was done using the matlab routine firls using the "differentiator" tag. Any ideas how this can be done in LabView?
Thanks in advance.

I don't believe that LabVIEW has any differentiation functions that use this algorithm. The only derivative function is located in the analyze, signal processing, time domain. You would probably have to build your own.

Similar Messages

  • Linear Least-Squares Fit

    Im farely new to programming and I got stuck with a linear least-squares fit problem. I am supposed to develop a method that will calculate slope and intercept of the least-squares line that best fits an input data set.
    Ive been trying to figure out just how to write this program for a couple of days, but with no luck.
    Can anyone give me some tips on how to write this program and what the finished program should look like?
    Any help would be greatly appreciated

    Atleast I believe that I am needed to return a graph. The assignment says
    "Test your method usin a test driver program that calculates the least-squares fit to the following 20-point input data set, and plots both the original input data and the resulting least-squares fit line"
    And then itgives me a chart of the x and y values

  • What kind of FIR filter in Labview SignalExpress Tektronix Edition?

    I am using FIR filter in Labview SignalExpress Tektronix Edition to process signal acquired from the TDS3032B.But i dont know what kind of this filter(Window,least-squares,or equiripple...).Does any one know about this?

    Check out some of NIs links:
    Virtual Instrumentation Empowers Digital Signal Processing Design
    http://zone.ni.com/devzone/cda/tut/p/id/4759
    Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit
    http://zone.ni.com/devzone/cda/tut/p/id/3237
    lots of information about different FIR can be found by searching on google as well.
    National Instruments

  • I need to plot the Least Squares Regression Line (not just calculate it with the LINEST function).  How?

    I need to plot the Least Squares Regression Line (not just calculate its values with the LINEST function).  Can anyone advise me on how to graph this line?

      Grapher.app in OS X Utilities is excellent for that : entering data from Numbers Excel etc. into a Grapher "Point Set", plotting all your data, computing and plotting a regression curve linear or exponential or polynomial.
      Unfortunately there is not a single word about point sets and regression in the Grapher Help.
    So, suggest you download (free) "Instruction for Use - Grapher on web site
    http://y.barois.free.fr/grapher/Documentation.html
    and go to page 31 to 37, "Initiation > Lesson 6 : Treating a point set (Regression curve), and also page 68, "Appendix 1. Points sets : from speadsheets to Grapher".
      If you try Grapher's regression curves, please tell us about the manual above : useful or not, too easy or difficult, readable or not etc.
      Thank you.
    YB24
    PS. Documentation about Grapher is also here : Google "Apple Grapher" > http://en.wikipedia.org/wiki/Grapher > Article > Talk > Grapher 1.1 to 2.3 (French and English) (11th september 2012)

  • Design a Filter using the Digital FIR Filter.vi

    Hello,
    I was working with Digital FIR Filter.vi to create a bandstand filter.
    The problem I faced is regarding the FIR Filter Specification, the Frequencies given for the Upper and Lower Pass and Stop band.
    For a low pass Filter, the upper Stop Band frequency is set at 0. While the Lower Stop band frequency is set at 200.
    And the Lower pass band is set at 100 while the upper pass band is set at 0.
    What the lower and upper frequencies actually means? As for a low pass filter, the upper cutoff frequency must be greater than lower. 
    So plus tell me how does it works and what frequencies should I specify for a Bandstand Filter.
    Thanks v.much

    Hi,
    Have a look at the following example: [LabVIEW Folder]\examples\Digital Filter Design\Floating-Point Filters\Conventional\Classical Filter Design.vi .This example demonstrates how to use the DFD Classical Design VI to design a lowpass, highpass, bandpass, or bandstop filter with classical design methods.
    Complete the following steps to use this VI.
    1) Run the VI.
    2) Change the specifications.
    3) Observe the magnitude response and phase response. Notice that the magnitude response approximates the frequency specification and the phase response is nonlinear for IIR filters (Butterworth, Chebyshev, Inverse Chebyshev, and Elliptic).
    4) Change the Design Method to view the ripples in the passband and stopband.
    5) Observe the filter order that the VI returns automatically.
    6) Click the STOP button to stop this VI.
    Sev K.
    Applications Engineering Specialist | CLA
    National Instruments

  • FIR filter delay for multistage multirate filter

    I know that a FIR filter with N taps has a delay of (N -1 ) / 2 samples.
    If this filter decimates of a M factor, the decimated signal has a delay of (N - 1) / (2 * M) samples.
    I used this approach several times to calculate the exact delay of a FIR filter, when I know the number of taps.
    How can I calculate this delay if I design my filter using the vi "DFD NStage MRate Filter Design"?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    if I'm right, this is what is called "group delay" or "phase delay" of the filter.
    Is there a LV function to get this info?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

  • Least square circle calculation on a series of data points

    I am taking a series of (x,y) part measurements that describe a circle  (radius & rotation angle). The center of the part and center of rotation are offset. Looking for code to do a least square circle calculation on this data set so diameter and out-of-roundness can be estimated. Platform LabView 8.2.

    Here is my simple solution from the above mentione thread:
    (Is it not exaclty "least squares" in the classical sense but the sphere fit works typically very well..)
    LabVIEW Champion . Do more with less code and in less time .

  • Least squares from file

    hi i have a final project i have to write least squares best fit vi,vi should read the datas from a txt file and draw best fit line according to least squares method calculations and also it should show the datas in point form pls help to me i tried a lot but i got nothing...thx

    Hey siktigit ys,
    There are built in Least Square Fit functions in LabVIEW. Here is some information about them. If you are having trouble reading the data from the file, here is an example showing how to use the read and write VIs. In order to show your data in a graph, I'd just read the data from the text files into an array and display that array on an XY graph. That should be enough to get you started. If you need more help, just let me know and have a great weekend!
    John B.
    Embedded Networks R&D
    National Instruments
    Certified LabVIEW Developer

  • Least squares method from file

    hi i have a final project i have to write least squares best fit vi,vi should read the datas from a txt file and draw best fit line according to least squares method calculations and also it should show the datas in point form pls help to me i tried a lot but i got nothing...thx

    Hi,
    I recommend that you search the following websites for assistance:
    www.ni.com
    www.ni.com/community
    Kareem W.
    National Instruments
    Web Product Manager

  • Multi variate damping least square solver

    Hello all,
    I am hoping to get some advice and a starting point for a challenging problem I am working on.
    I have a 33x37 matrix that i need to minimize using a damping least square approach.  in order to achieve the minimization I need to use a set of 50 Matrices (33x37, representing adjustment impacts) that are grouped in 12 separate catagories with different starting points and degrees of freedom, and none of the adjustment matrices are truly independent of each other (they all interact with each other to some extent.)
    For the output I need the minimized matrix and the amount of each vector applied to achieve the minimized solution.
    To hopefully clarify the inputs and outputs I have included an example vi with a dummy set of data.
    I am hoping that someone can give me an idea of where to start, can this be accomplished using the labview libraries or will this have to use scripting via a mathscript node, or matlab?  If it can be done in different ways which method is the most efficient?
    I hope this is enough information, but if you need more details please let me know, although giving exact details can be difficult in this case due to IP considerations.
    As always thank you in advance for any help/suggestions you may be able to offer.
    Chris
    Attachments:
    example2.vi ‏25 KB

    Other then using a least square method I dont have a function defined yet (trying to figure out what function to use), but essentially I am trying to find out how much of each of the adjustment matrices need to be applied to minimize the original matrices..
    I hope that explains what i am trying to do a little better

  • ADjusting the sampling rate on a FIR filter?

    How do I adjust the sampling rate on a digital FIR filter? Thanks in advance.
    -David

    You should really start a new thread instead of posting to one that is 5 years old.
    To answer your question, it depends on your data. I don't use the DFD but with the filter functions in LabVIEW, if you pass a waveform data type to the function, then the waveform data type contains a dt value. So, set the DAQmx Read to return waveform data. If you are using low level filter functions where the input is a 1D DBL array, then the filter has to be configured. With the low level functions in LabVIEW, you use the various coefficients functions that have a sampling frequency input.

  • Taps in digital FIR filter.vi

    I'm trying to use the digital fir filter.vi and while most things seem to behave in a reasonable fashion, the number of taps does not. Using the FIR filter help  I implemented the vis shown in the help section  with the digital FIR filter.vi and the results (magntidue) agree very well with what is asked for in terms of cut-offs and drop off rate. However, given that I'm using a unit impulse function as the input waveform, the output of the filter vi should be the coefficients of the filter. When I graph those, it is immediately apparent that it is using way more coefficients than I asked for. It quickly became apparent that it is completely ignnoring whatever number you put in for # of taps. Now to a certain extent I understand that. In order to get ever sharper cut-offs you should need more and more points. The question is, why is the number of taps an input if it is ignored or am I missing something?
    The other somewhat worrying question has to do with the convolution process. If the filter is using a very large number of taps, there should be a massive delay at the start. I don't think I'm seeing that.

    Hello Russo,
    Your code looks like it is set up effectively. I spoke with our development team about your question regarding the Digital Filter VI.  They confirmed that when Topology is FIR by Specification, the VI reads the filter specification and estimates an order. Then, it calls Parks-McClellan VI to design the filter. That is to say, #Taps is actually not used in this case. When Topology is Equi-ripple FIR or Windowed FIR, the #Taps is used for filter design. You can verify it by checking the order which is equal to #Taps - 1 in filter information output.
    If you are interested in a more advanced filter design application, I would suggest you consider checking out the LabVIEW Digital Filter Design Toolkit.
    Here is a link to an informative article comparing the LabVIEW Development VIs and the Toolkit VIs:
    http://www.ni.com/white-paper/4851/en/#toc2
    Warm Regards,
    Josh

  • Logic's Linear Phase EQ vs. Waves Renaissance EQ

    Hi all, I was wondering what your opinions were in regard to these two EQ's. Which one seems to be the way to go, and what are the differences between the two?
    Are there some things that one would be god for over another, or is one just flat out better than the other for all things?

    I have never used renaissance so im not sure about the two, but in theory any linear phase eq is better than one that is not due to the mathematical algorithms that it use to process the audio.
    The way it works is that most eq's are made to be processor friendly so they have a few downfalls which is a slight phase distortion , this can be heard most when moving a peak notch along the spectrum. Most of the time this won't really be noticed but linear phase eq's resolve this problem but will consume alot more CPU, as the maths is considerably larger.
    My recommendations though are to use 2 eq's which i love by PSP. NEON (linear phase) NITRO (normal), plus another great plug is Vintage Warmer2. As me my friends say: if it moves Vintage warmer. Well there u are, a short answer to ur question.LOL Thanks Stu.

  • Linear Phase EQ

    Not hearing the difference at all to be honest.. ::: What is the use of this in Lemans terms?

    You'll hear, and notice the difference immediately if you are trying to EQ a stereo recorded sound, say, like a stereo mic's acoustic guitar.
    If one side of the stereo signal needs EQ's, such as if the two mics weren't the same make and model, and you try and add channel EQ to that track, the signal will become heavily out of phase. You'll hear the image shift drastically, and the timing will be off as well.
    The Linear Phase EQ will keep the signal in phase, using this example.

  • Linear Phase EQ and Latency?

    So after reading up on all the positive tidbits of the Linear Phase EQ vs. the good old fashioned Channel EQ, I decided to start giving it a shot. I like the subtle nuances LPEQ has over CEQ and have been enjoying it.
    Tonight, however, I ran into a major issue. Every instance of the LPEQ introduced some nasty latency onto the track it was put into. I tried to EQ a kick drum and the thing became so far off that I couldn't believe it. Bypassing the plug immediately sent everything back to normal.
    Why does the LPEQ introduce so much latency when used? Is there any sort of workaround to lessen the effect? I bumped my buffer settings up to 512 and there wasn't a bit of difference. What's going on in the LPEQ that would make that drastic of a change? Am I missing something?

    Thanks for the input, noeq.
    You're weclome Brent
    For the record, the latency issue started before
    changing any settings. There's also no recorded
    audio in the session file, all of it is soft-synths
    and samplers.
    I am devising a test for the synths only...without any audio in the session.I'll keep you posted on what I find.
    Are you suggesting that PDC should be off to avoid
    the latency issue?
    At this point I am not suggesting ANYTHING.so please don't change your setup until you can find out exactly why the latency happens.By Sunday I'll have results of my tests for you to look at.
    I don't think it's just my issue or a myth,
    especially since tbird, iS and X all posted as having
    the exact same issue with the LPEQ.
    I'll be looking into this.So far with my only test,to determine default latency of Logic Plugins only,I have found it to be the case that the GuitarAmp Pro and the Space designer reverb DO have different latencies,after all other latencies have been accounted for.The Linear Phase EQ in this particular test,came out to have no latency.
    Perhaps it will be a different result when I do the synth-only test.
    But until I do the test,I cannot know.
    Here is one of my favorite quotes,from aristotle:
    "We suppose ourselves to possess unqualified scientific knowledge of a thing, as opposed to knowing it in the accidental way in which the sophist knows, when we think that we know the cause on which the fact depends, as the cause of that fact and of no other, and, further, that the fact could not be other than it is. Now that scientific knowing is something of this sort is evident-witness both those who falsely claim it and those who actually possess it, since the former merely imagine themselves to be, while the latter are also actually, in the condition described. Consequently the proper object of unqualified scientific knowledge is something which cannot be other than it is.”
    — Aristotle, Posterior Analytics (Book 1 Part 2)
    Cheers

Maybe you are looking for