ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating in a String array

Dear
 
My string array will be transformed to a floating type array.
Some element of the string array has no value(just "Empty").
In this case, I believe I have to treat the special case (for example, in average calculation).
 
In earlier LV version, NaN (0 / 0) is useful technique.
But what is the technique in LV8 for my purpose?
 
Lee
 
0 Kudos
Message 1 of 5
(3,144 Views)
If NaN was fine in earlier LabVIEW versions, do the same in LabVIEW 8.0.
0 Kudos
Message 2 of 5
(3,139 Views)
Thanks,
 
NaN technique is not proper in calculating standard deviation or average, which can take an array as a inut.
 
The result is NaN if the array include one NaN.
 
Therefore I have to exclude NaN elements by a temporary array in my calculating.
 
Am I right?
0 Kudos
Message 3 of 5
(3,119 Views)
Yes, it all depends on the problem.
 
Only you can decide if omitting all values containing NaN will be a valid and reasonable operation. Usually the presence of NaN means something. What if all values are NaN? Do you know why some values are NaN?
0 Kudos
Message 4 of 5
(3,108 Views)

In my case, I used NaN as an invalid measurement result by assigning to an "empty" string element in array.

Therefore, I didn't include them to my calculating some mathematics as well as the total number of index of the array.

Thank you so much.

0 Kudos
Message 5 of 5
(3,096 Views)