From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(2,685 Views)
Solution
Accepted by topic author 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
(2,682 Views)
Message 3 of 4
(2,674 Views)

thank you for the great advice.

that works!

Best regards,
Krispiekream
0 Kudos
Message 4 of 4
(2,664 Views)