LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Empty Values

Does LabView recognize an empty or null value in a numeric data set ?
Sometimes the result of a measurement is an invalid result, but it is desirable to record that a measurement was taken for that element in the data set. For example a typical probe data se sequence is

X Y VALUE
3 2 27.2
3 3
3 4 34.2

where the second line is a null or empty value. These values should contribute to the count of the toal number of items in a data set, but should not contribute to any of the statistics - such as the mean.

Thansk
0 Kudos
Message 1 of 5
(3,571 Views)
Try -Inf or +Inf

"JDAY" wrote in message news:5065000000080000006C1B0000-986697009000@quiq.com...
> Does LabView recognize an empty or null value in a numeric data set ?
> Sometimes the result of a measurement is an invalid result, but it is
> desirable to record that a measurement was taken for that element in
> the data set. For example a typical probe data se sequence is
>
> X Y VALUE
> 3 2 27.2
> 3 3
> 3 4 34.2
>
> where the second line is a null or empty value. These values should
> contribute to the count of the toal number of items in a data set, but
> should not contribute to any of the statistics - such as the mean.
>
> Thansk
Message 2 of 5
(3,571 Views)
The only way i have found to achieve this is to put a NaN (not a number) value where null data must be, and before making any calculations (as mean) take it out from the array locating this type of value.
Hope this helps
0 Kudos
Message 3 of 5
(3,571 Views)
In order to regconise a null/ empty value in numeric data set, you may wanna to try converting the null/empty VALUE to string, and check using the function if it's a "empty string".

Then, use the output of the function for appropriate actions.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 4 of 5
(3,571 Views)
In order to regconise a null/ empty value in numeric data set, you may wanna to try converting the null/empty VALUE to string, if necessary, and check using the function if it's a "empty string".

Then, use the output of the function for appropriate actions.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 5
(3,571 Views)