LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Testing of different polynomial fits

Solved!
Go to solution

Thank you 🙂 It works Smiley Very Happy

 

Kind regards,

 

Anna

0 Kudos
Message 11 of 15
(627 Views)

In one 1 D array I have approximately 2000 elements.

 

Is that ok?

 

Kind regards,

 

Anna

0 Kudos
Message 12 of 15
(627 Views)

Yes, I am. One part is clear for me now, but I still do not know how to combine two loops in order to test polynomial fits of different order, without introducing a new loop each time when I change the order.

I am not experienced in LV, and then usually I create too complicated codes.

 

Kind regards,

 

Anna

0 Kudos
Message 13 of 15
(623 Views)

It is really difficult to make any "reasoned" judgement about "Are my 2000 points of data OK" without seeing them.  What does "OK" mean to you?  Certainly if you should me a "cloud of points" that looks like the surface of a sphere with lots of points on it and ask "Can I fit a straight line through these points", I'd probably say "No", but if you show me the high daily temperatures measured at an airport over a 30 year period and ask "Does it seem to be getting warmer?", I might (looking at the data) say "Yes".  But without looking at the data, what does "OK" really mean?

 

Bob Schor

 

P.S. -- you also say that you are "not experienced in LabVIEW  an"d then usually I create too complicated codes."  We can help you there.  Are all of your VIs contained in a single Folder?  If so, compress this folder and attach the resulting ZIP file to your reply.  We'll look at your code and make suggestions to teach you how to write better LabVIEW code.  As a hint, sub-VIs are very helpful things to learn about and use.

0 Kudos
Message 14 of 15
(617 Views)

@User002 wrote:

In one 1 D array I have approximately 2000 elements.

 

Is that ok?


If the curve is somewhat normal, like an exponential or x^2 you don't need that many, 20 would probably give as good result, but "if you have them, use them".

It's always helpful to add a graph in which you plot your data and the result of the fitted curves. Are you satisfied with such a result (and can you show us)?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 15 of 15
(582 Views)