10-08-2016 11:18 AM
Hello all,
I want to create a VI for nonlinear curve fitting for a plot with datas of x and y values.
Function to be use for fit is attached. In that i want to fit the plot by only controlling the value of beta (using dial knobs in control panel). other parameters are constant.
can anyone please give me idea to start.
Thanks in advance
10-08-2016 12:09 PM
If you want to hire someone with LabVIEW expertise to do your work for you, you are in the wrong Forum (see LabVIEW Developers Seeking Employment. If you want help for something you are trying to do yourself, attach the VI that is giving you problems and ask for specific help.
If you are not sure where to look for Non-linear Curve Fitting functions, they are listed in the Mathematics Sub-Palette under "Fitting". One, in fact, is called "Non-linear Curve Fit.vi" -- this might be a good place to start.
Bob Schor
10-08-2016 12:27 PM
Thanks for your reply.
I will try and contact you further for clarifications.
10-08-2016 02:52 PM - edited 10-08-2016 02:55 PM
Your formula "picture" is completely useless, because it contains neither x nor y and it does not say what symbols are constants and what are the fitting parameters.
What is the theory behind it all? Is there a web site that explain the theory and experiment?
This is definitely not a nice function (square roots, logarithms, divisions, integrals) so you might need to protect from negative or zero terms and divergent integrals, etc.
See how far you get.... 😄
11-04-2016 01:40 AM
Dear altenbach,
Thank you for your reply.
This is the theory for z-scan experiment (non-linear optics).
here, beta is the fitting parameter. It may be in the order of e-12.
lambda (532 e-9), omega0 (1e-6), E (20e-6), A , t (10e-9), l (1e-3) are constants.
I'm new to labview. please suggest me how to start with this and to fit the experiment data (z vs T) using the above mentioned equations.
11-04-2016 03:11 PM
Do you have a set of real data?
11-05-2016 09:30 AM
Yes sir, I have experimental data of x and y axis values ( z vs T)
11-05-2016 12:22 PM - edited 11-05-2016 12:23 PM
Well, I was wondering if you could attach some real data so we get an idea how it looks.
In any case, all you need to do is place a "nonlinear curve fit" on the diagram, create a model VI according to the template mentioned in the help so it calculates an array of y as a function of an array of x, given the parameters. Then feed it your data and rough parameter estimates and it will return the parameter set that best describes the data and the function calculated from it.
Have a look here for some examples.
11-06-2016 02:37 AM
Thank you sir for your suggestions
As you asked and for your reference, the experimental data to be fit is attached herewith. I have to fit the obtained experiment data. Please see the attachment.
11-06-2016 04:24 AM
That's just a picture of data and pretty useless for us. Don't you have a data file?