LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Split an array into subarrays programmatically

I still don't know what you actually want and I still don't know the purpose of the missing subVI.

 

As a simple exercise, here's one way to split the rows into subarray based on the count of nonzero elements. Maybe you can adapt it to your problem in some way.

 

altenbach_0-1712245897934.png

 

The sort&reverse sorts by descending count and the last loop trims once the count is zero. (Note that it is safer to convert to I32 before summing because an I16 sum can rollower for much larger arrays).

0 Kudos
Message 11 of 11
(92 Views)