LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NaN as integer

Dear all,

is there a way to use NaN(Not a Number) as an integer and not a Double?

 

 

Ritesh 

 

0 Kudos
Message 1 of 5
(3,438 Views)

In LabVIEW, No.

 

Can you name a language that provides such a capability that is compliant with IEEE-754?

Message Edited by Phillip Brooks on 05-15-2009 06:54 AM

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 2 of 5
(3,419 Views)
Why do you want to do it. I am just curious. I sometimes use NaN then plotting chart/graphs. A NaN value will not be plotted as a point. But otherwise  NaNs are not wanted. The mess up most calculations. 


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 5
(3,411 Views)

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 

0 Kudos
Message 4 of 5
(3,404 Views)

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

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 5 of 5
(3,397 Views)