LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check for NaN?

Unlike robust statistical software programs, many of the LabVIEW stat functions
and other data manipulation (e.g., 1-D array sort) do not handle missing
values (NaN, for example) correctly. I found a tech support article that
referred to a "primitive IsNaN VI" that can be used to check whether an input
is NaN. Where is this VI? I can't find it in any of the libraries, but since
I don't know how to easily search all the libraries I may be missing it.
0 Kudos
Message 1 of 2
(4,457 Views)
Jim,

Right click on the diagram and point at 'comparison' sub-palette. On this
palette you will see 'Not a number / Path / Refnum' primitive.

Jared

"Jim Rathman" wrote:
>>Unlike robust statistical software programs, many of the LabVIEW stat functions>and
other data manipulation (e.g., 1-D array sort) do not handle missing>values
(NaN, for example) correctly. I found a tech support article that>referred
to a "primitive IsNaN VI" that can be used to check whether an input>is NaN.
Where is this VI? I can't find it in any of the libraries, but since>I don't
know how to easily search all the libraries I may be missing it.
Message 2 of 2
(4,457 Views)