05-15-2009 04:51 AM
Dear all,
is there a way to use NaN(Not a Number) as an integer and not a Double?
Ritesh
05-15-2009 05:51 AM - edited 05-15-2009 05:54 AM
In LabVIEW, No.
Can you name a language that provides such a capability that is compliant with IEEE-754?
05-15-2009 06:00 AM
05-15-2009 06:49 AM
Exactly. I want to use it for plotting data on the Graph.
The data i am receiving from my H/W is of Integer32 type. But now for displaying it on the Graph i have to convert it to Double just because i need to use NaN to plot data.
and while storing i again have to convert it to I32 and while reloading from file i have to convert it from I32 to DBL.
and when converting BDL to I32, it'll change the value of NaN to 32768. so i thought when reloading data from file, after converting I32 to DBL, i'll search for 32768 and change it to NaN. but in my actual data also i can have this value(32768).
so, just looking for some way out to have some number which wont be displayed on graph and doesn't come in between my data range.
Ritesh
05-15-2009 07:03 AM
You could perhaps use one or more "In range and coerce" to insert a NaN before plotting. This way you may preserve the integer value until you plot