04-09-2016 11:58 AM
In my esperiments I obtain some values such as inf and Nan, and I want to eliminate this values before to save my array in a file because then I would take the average of these values that are saved in a file
How can I do this?
Thanks
Solved! Go to Solution.
04-09-2016 12:02 PM
Use autoindexing on a FOR loop and a conditional output terminal. Feed the conditional terminal with the output of the various comparison operations.
04-09-2016 12:10 PM - edited 04-09-2016 12:19 PM
Here's a quick example:
Make sure that you use Not A Number/Path/Refnum? Function, because direct comparisons with e.g. a NaN diagram constant might give surprising (to some) results. For example of you think you could add a NaN to the array diagram constant and eliminate some code, it will not work right.
(Of course if you have an ancient LabVIEW version, you might not have the conditional tunnel. In that case, it would require a little bit mode code)
04-09-2016 12:43 PM
It might be better to find the root cause of the bad data instead. Better to fix the problem than treat the symptoms. Besides, depending on what you find, it might be that you are actually missing real data!