Hi everyone,
I have very little experience with LabVIEW and I'm trying for the first time to do some NonLinear Curve fit for some data I have.
I've searched in forums for almost a day and couldn't find what I need. The problems are:
1) I need to fit a function of the following type: P = Po/2 - Po/2*erf(sqrt(2)*(x-xo)/w) , where Po, xo and w are my parameters.
But in my error2.vi I cannot link my y=sqrt(2)*(x-xo)/w variable of the erf function to the input, because the erf.vi does not accept 1D array as input and doesn't give that as output as well. The output thing is another problem, since the input of F(x,a) needs to be a 1D array.
2) I read about the Lev-Mar NonLinear CurveFit VI and I think I got what needs to be done. However, a I was having problems in wiring my Static VI Reference to the F(x,a) input in the Lev-Mar VI and it didn't give me a broken wire only when I made de Reference a "Strictly Typed VI Reference". What does that mean? Why did it only work with that?
I know these are some pretty basic doubts, but I've been trying to understand it for quite some time and couldn't get this done.
Thanks.
PS* The fitting function (subvi) is the error2.vi file.