04-17-2014 11:31 AM
Hi guys.
I am trying use Linear Fit to made the best fit of temperature acquisition, but during the acquisition i acquire some NaN data.
I can plot the temperature graph, but i cant plot or receivo soma data from Linear Fit.
My code is below, in LV2010.
Can anyone help me?
Solved! Go to Solution.
04-17-2014 11:50 AM
You simply need to remove all nan's from the data. There are plenty of examples in the forum.
(If you could upgrade to a newer version, the conditional tunnel would make things even easier.)
04-17-2014 12:01 PM
I try remove using the examples which i found, but i dont have sucess.
04-17-2014 12:09 PM
Then show us your code.
04-17-2014 12:21 PM
Follow my VI.
04-17-2014 12:47 PM
You are almost there. Remember you also need to remove the matching X values to keep both input arrays the same lenght and aligned. Simply process the X array in the same loop using the same case structure, just using a second shift register.
04-23-2014 08:53 AM
Thank you altenbach. Now the VI run perfectly 😉