10-11-2013 07:07 AM
Hi,
I am trying to do some non linear curve fitting (data attached).
I have been doing it quite successfully in the past using a similar structure, the only new thing now is my fitting function (Polarisation function . vi ), for which I get an error message when trying to wire it to f(x,a) in the Nonlinear Curve Fit.vi
i am not sure what the issue is really, first time I am facing it, maybe data type is wrong somewhere.
10-11-2013 08:05 AM
Hi,
I think that you have forgotten to attach your file... 🙂
10-11-2013 08:06 AM
Indeed...
10-11-2013 08:23 AM
I don't know what was wrong (you disconnected some terminals in the subVI, so it did not work any more...I tried to reconnect them but the issue was not fixed, there was probably something else).
I retried the "procedure" from the beginning (from the template VI, as explained in function help). And now it seems to be OK.
10-11-2013 09:30 AM
Cheers,
Any chance you got it to perform any decent fit ;)? It doesn't quite seem to fit properly (but that's a rather different issue)
10-11-2013 03:08 PM
Yes indeed. I have noticed this bug while trying to run the VI... ^^
Anyway, you'll find it now ! 😉
10-11-2013 03:53 PM
When I run the VI I get error -20041, singular matrix.
Looking at the detailed help, it specifies that the Initial parameters array must be the same length as the "a" array in the function VI. The Initial parameters array has six elements (Rohmic, Q, n, Rcharge, Td, Rd) while a has five elements (Eo, Rohm, b, m, n). They also need to be in the same order.
I am surprised the Spreadsheet String to Array function works with an empty format string. An empty string is not a valid format specifier. You should probably use %f as the format string.
Lynn