LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linear Fit not run with NaN

Solved!
Go to solution

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?

Icaro Kossmann
LabVIEW 8.6 Newbie.
Brazil
0 Kudos
Message 1 of 7
(3,679 Views)

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.)

0 Kudos
Message 2 of 7
(3,673 Views)

I try remove using the examples which i found, but i dont have sucess.

Icaro Kossmann
LabVIEW 8.6 Newbie.
Brazil
0 Kudos
Message 3 of 7
(3,667 Views)

Then show us your code.

0 Kudos
Message 4 of 7
(3,661 Views)

Follow my VI.

Icaro Kossmann
LabVIEW 8.6 Newbie.
Brazil
0 Kudos
Message 5 of 7
(3,658 Views)
Solution
Accepted by topic author Kossmann

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.

Message 6 of 7
(3,647 Views)

Thank you 

Icaro Kossmann
LabVIEW 8.6 Newbie.
Brazil
0 Kudos
Message 7 of 7
(3,588 Views)