LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D array conditional data binning

Solved!
Go to solution

Hi,

 

I am currently having problems figuring out how to bin some data. Right now I have data in a 2D array that needs binning under certain conditions. Such as for any value in column 4 that is equal or smaller than 0 the entire row should be binned. This binned data should eventually be inserted into another array. I have write something but it doesn't seem to work properly as some data gets binned and some not and I can't seem to get my head around it why it is not working maybe anybody will have an idea how to make this work.

 

Thanks for any help!

0 Kudos
Message 1 of 4
(3,074 Views)
Solution
Accepted by topic author Nanoparticles

Here's a brute force method:

brute force.png

 

Message 2 of 4
(3,056 Views)

With a conditional tunnel (LabVIEW 2012 or later) the code fits on a postage stamp.

1!.PNG


"Should be" isn't "Is" -Jay
Message 3 of 4
(3,047 Views)

Thanks for the solutions guys! both work great!

 

Cheers!

 

David

0 Kudos
Message 4 of 4
(3,032 Views)