03-09-2016 06:42 AM
Hi All,
I'm using nonlinear curve fitting vi (LM) and it works for parameters, howerver covariance matrix is not compatible with other softwares (ORIGIN, GNUPLOT) as I have Y and X variables errors on input data and really don't know how to enter with it in LabVIEW.
Regards,
Marcio
03-14-2016 12:43 PM
Mr. Bottaro,
Can you give more details about your problem? Are you generating the data on LabVIEW and using on the other software(ORIGIN,GNUPLOT) or generating the data on the others software and using
on LabVIEW?
Best Regards,
César Teixeira
03-14-2016 03:37 PM - edited 03-14-2016 03:51 PM
Hello, I think the OP would like something like this:
Edit1:
Once I also needed this feature, I looked at LabVIEW, no. I checked my Numerical Recepies C functions, no. I ended up doing "manual" calcs using Origin (which I really hate, the worst soft ever in my opinion)---
edit2: If i understood well, the "Weight" input array might define the uncertainity of the values in the Y input array. But I am not really sure if this is exactly correct?
" weight=(1/std. dev.)^2 " ???
Edit3: I strongly beleive, LabVIEW has still PLANTY of room to improve in fitting functions. I wonder what is the reason why LV still not able to provide algorithms what many other products can do...?
03-14-2016 03:57 PM - edited 03-14-2016 03:58 PM
Error in both X and Y is not supported in LV. Check my comment in this thread.
While it appears relatively straightforward to implement the Numerical Recipe approach for a linear function, it is less trivial to do so for a general non-linear function.
Slightly out of topic but in answer to the previous comment, Origin has improved significantly in terms of stability notably.
LV doesn't even compare in terms of data analysis and representation.
The good news is that it is very easy to export data directly from LabVIEW to Origin.
03-14-2016 04:01 PM
Ok, I have experience with Origin dated back many years ago, just to be fair, so no idea how it works nowadays. Good to know they improved! 🙂
Actually I have found something I did not know about:
http://www.originlab.com/doc/LabVIEW
Interesting...
03-14-2016 04:04 PM
" weight=(1/std. dev.)^2 "
I know this is true, but you should normalize it such that the sum is equal to 1; that is, sum all the values first and then divide by this value. This only matters when using the "Goodness of Fit" vi. The output parameters are not correct when the weights do not add to unity.
Lastly, LabVIEW has no method of inputting x-errors natively, only y-errors. Typically these errors are small, but it would be nice to have this feature.
I strongly beleive, LabVIEW has still PLANTY of room to improve in fitting functions. I wonder what is the reason why LV still not able to provide algorithms what many other products can do...?
Agree wholeheartedly!!
Cheers,
mcduff
03-18-2016 06:47 AM
Dear Teixeira, I'm not sharing data within softwares, only using Gnu and Origin as references to validate process. Those software alow me to input X and Y errors, LabView unfotunately not.
Thank you.
Marcio
03-21-2016 02:39 PM
Dear Mr. Bottaro,
Can you share the code with me?
I will take a look and try to undestand what is happening.
Best regards,
César Teixeira
03-21-2016 02:46 PM
03-22-2016 05:49 AM
Dear Teixeira, there's no code, I only would like to know how to enter x and y errors for data fitting, then I'll work in the code! The choise until now is to share data with other software. I have a table (2D array) with x, xerrors, y and y errors.
Is there an integrated or gateway for GNUPLOT you know? Than I do not need to make separate operations and would integrate process.
Thanks,
Marcio