LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Baseline determination and subtraction

Solved!
Go to solution

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

 

Fit.png

0 Kudos
Message 11 of 13
(1,152 Views)

ok! will check my errors, will do.  thanks for looking at this.  -Frank  

0 Kudos
Message 12 of 13
(1,149 Views)

Could you help me with this, I am trying to apply it on a ppg signal.

 

Ahmedsoma_0-1680773360201.png

 

I want to have them on the same line as this.

 

Ahmedsoma_0-1680774257708.png

0 Kudos
Message 13 of 13
(140 Views)