10-24-2019 07:37 AM
Thank you 🙂 It works
Kind regards,
Anna
10-24-2019 07:40 AM
In one 1 D array I have approximately 2000 elements.
Is that ok?
Kind regards,
Anna
10-24-2019 07:45 AM
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
10-24-2019 08:00 AM
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.
10-25-2019 03:50 AM
@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