12-09-2020 02:21 PM
I'm trying to figure out how to take a boolean array and determine what percentage of that array is true. So far I can only really find the AND Array Elements Function as far as evaluating the array goes, and my Google searches haven't come up with anything helpful. Is there a way to do this on Labview?
12-09-2020 02:32 PM - edited 12-09-2020 02:33 PM
Something like this should work.
mcduff
EDIT: Do the summation after the division, otherwise you can have an overflow error.
12-09-2020 02:42 PM
gonna go ahead and try that. Thank you so much!
12-09-2020 11:25 PM
Count the number of True elements in the array.
Use that number and the array size to calculate the percentage that is true.