01-25-2013 08:12 AM
Hi all,
I am trying to do curve fitting, of a graphic. but curve fitting function doesnt work. i dont get any output from curve fitting.
what would u suggest me to do.
Thanks
Solved! Go to Solution.
01-25-2013 09:37 AM
Step 1: Post the code. We can't troubleshoot a picture - especially one that doesn't show the really interesting bits.
Mike...
01-25-2013 10:15 AM - edited 01-25-2013 10:17 AM
What is in your X-array? Do you get any errors?
When I create an X-array containing 0..5 like the x-axis of your graph, I get this:
Lynn
Edit: Noticed that the input data graphs are different. I missed a 0 on one element. Here is the corrected image.
01-25-2013 12:39 PM
thanks a lot.
i dont get any errors, just curve fitting doesnt give any output.
x array is like on graph, nothing more.
where i made mistake about curve fitting, can u share your code with me?
01-25-2013 12:52 PM
What are the numbers in the X-axis array? The statement "is like a graph" doesn't convey anything useful.
Mike...
01-25-2013 12:58 PM - edited 01-25-2013 01:04 PM
You have been asked to post the code. We cannot troubleshoot pictures.
Are the X and Y arrays the same lenght? Is any value NaN? What does the error output tell you?
(Also note that in this case, it would be convenient if we don't need to wire X. have a look at this idea!)
This discussion is useless until you attach an actual VI and some data, so please do.
01-25-2013 01:03 PM
right, pc is at work now, i dont have datas now, when i get them, i will share here.
thanks again
01-25-2013 01:04 PM
hmm, i didnt know length of x and y should be, same, i will check it.
i dont get any error, just curve fitting fonktion doesnt give any output. nothing.
01-25-2013 01:52 PM
And do NOT post any more bmp images disguised as jpg files. There is a good reason for the ban on bmp files. It is just cheating on your part to simply rename the files. You don't think that really changes the file format do you?
01-25-2013 01:53 PM
How are you sure that you do not get any error? You do not have the erro output wired to anything.
Here is the VI I used, saved to version 10.
With your very small dataset, the choice of algorithm does not seem to make any difference.
Lynn