LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

double displays NaN

Solved!
Go to solution

Hi,

I have 2 systems running. 1 of which has temperature reading, while the other does not.

Using the same software with the one with temperature, it display the current temperature. 

While the other does not have one displays "NaN"

I am using "double" for the temperature constants. Is there a way for me to represent NaN as "0.00"?

sorry if my explaination is not clear. 

Best regards,
Krispiekream
0 Kudos
Message 1 of 4
(1,842 Views)
Solution
Accepted by krispiekream
Yes, the comparison palette contains a "not a number? " primitive. Use it on your orange wire then use a select node where you pick between 0 (if NaN) or the original value (if not NaN).
Message Edited by altenbach on 01-26-2010 11:22 AM
Message 2 of 4
(1,839 Views)
Message 3 of 4
(1,831 Views)

thank you for the great advice.

that works!

Best regards,
Krispiekream
0 Kudos
Message 4 of 4
(1,821 Views)