02-23-2013 09:28 PM
If you look at the error out from the General Polynomial Fit.vi you get -20068. The explanation for that error code is that an input contains NaN (among other possibilities).
A check of your data shows that the Y array has an NaN element at index 73000.
It also seems unlikely that a second order polynomial would fit that big discontinuity near that same index. When I remove the data after the NaN, it works well.
The Fit VI does not have standard error clusters but the error code it produces was still key to finding your problem. Always check the errors.
Lynn
02-23-2013 09:34 PM
ok! will check my errors, will do. thanks for looking at this. -Frank
04-06-2023 07:22 AM
Could you help me with this, I am trying to apply it on a ppg signal.
I want to have them on the same line as this.