キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

curve fitting function doesnt work

解決済み
解決策を見る

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

すべてをダウンロード
0 件の賞賛
メッセージ1/15
4,131件の閲覧回数

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.
メッセージ2/15
4,124件の閲覧回数

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

メッセージ3/15
4,112件の閲覧回数

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 件の賞賛
メッセージ4/15
4,088件の閲覧回数

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 件の賞賛
メッセージ5/15
4,082件の閲覧回数
解決策
トピック作成者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.

メッセージ6/15
4,074件の閲覧回数

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

thanks again

0 件の賞賛
メッセージ7/15
4,065件の閲覧回数

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 件の賞賛
メッセージ8/15
4,063件の閲覧回数

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 件の賞賛
メッセージ9/15
4,046件の閲覧回数

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 件の賞賛
メッセージ10/15
4,042件の閲覧回数