06-27-2016 05:59 AM
Hello,
I'm trying to fit a parabola using a polynomial fit of order 2.
I have 11 data points that represent the shape of a parabola. Unfortunately, the X data have values very highly (about 10E6) and I think that it's causing problems in the data fitting. How can I solve this problem?
I have attached the Vi where I'm trying the fitting. As you can see, the fitting isn't done properly.
Any help will be appreciated.
Thank you.
06-27-2016 07:10 AM
I do not have one subVI what you used in your code, but anyway, it is not needed. You can play with some settings of the fit VI, it can give usable results:
06-27-2016 09:50 AM
Thank you for your fast response.
Now the parabola fitting works properly.
However, I want that the fitting curve has more than 11 points because I need a low resolution. I'm trying to evaluating the polynomial (with the coefficients provided by the fit Vi) at different points (between the X limits) but it doesn't work. Is this due to the highly values of X data?
06-27-2016 10:11 AM
06-27-2016 10:13 AM
06-27-2016 11:48 AM
Have you looked at the Help for General Polynomial Fit? In particular, have you looked at the Default Values for all of the parameters? Do you know the difference between the three Methods and seven Algorithms? I believe a problem like yours has a "logically best" choice of settings which I don't think have been selected yet in this discussion.
It is always a good idea to understand Algorithms before applying them.
Bob Schor