LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

curve fitting function doesnt work

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 15
(3,384 Views)

Step 1:  Post the code. We can't troubleshoot a picture - especially one that doesn't show the really interesting bits.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 15
(3,377 Views)

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:

 

Fit.png

 

Lynn

 

Edit: Noticed that the input data graphs are different. I missed a 0 on one element.  Here is the corrected image.

 

FIT2.png

Message 3 of 15
(3,365 Views)

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? 

0 Kudos
Message 4 of 15
(3,341 Views)

What are the numbers in the X-axis array? The statement "is like a graph" doesn't convey anything useful.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 15
(3,335 Views)
Solution
Accepted by alican

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.

Message 6 of 15
(3,327 Views)

right, pc is at work now, i dont have datas now, when i get them, i will share here. 

thanks again

0 Kudos
Message 7 of 15
(3,318 Views)

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.

0 Kudos
Message 8 of 15
(3,316 Views)

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?

0 Kudos
Message 9 of 15
(3,299 Views)

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

0 Kudos
Message 10 of 15
(3,295 Views)