LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to input NaN in LV8.5

Solved!
Go to solution
I'm attempting to do the empty waveform trick to make a graph appear to have 2 different colors, but I can't seem to input NaN into my arrays.  I've tried using positive infinity, 1/0, and NaN in a numeric constant, but they all default to ~2.25E9.  How else can I do this?
0 Kudos
Message 1 of 3
(3,062 Views)
Solution
Accepted by topic author Jeanius
Are you sure the representation for the numeric is set for double?  2.25 e9 is close to the limits for an I32 integer.  I had no problem with LV 8.5.1.  If I have a constant set for I32 and enter NaN, it automatically converts the constant to DBL.  If it is part of an array, it does not convert automatically.
Message Edited by Ravens Fan on 11-02-2008 02:19 PM
Message 2 of 3
(3,055 Views)
Ah, thank you, the NaN itself was set for DBL but the array into which it was inserted was originally I32.
0 Kudos
Message 3 of 3
(3,049 Views)