From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,070 Views)
Solution
Accepted by topic author Nanoparticles

Here's a brute force method:

brute force.png

 

Message 2 of 4
(3,052 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,043 Views)

Thanks for the solutions guys! both work great!

 

Cheers!

 

David

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