LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting specific clusters from 2D array

Hi all

 

I'm running in LV 8.6 and through a series of tests on my system, have generated an array of clusters. Each cluster contains the results (several fields) for each test.

 

I want to be able to pull out specific elements (clusters) from the array based on one value within each cluster.  In otherwords, in each cluster containing the results of one test (of several performed on one test subject) there is one code that defines which group the test belongs to.  There will be more than one cluster (element) wtih the same group ID.

 

Tried searching on this and couldn'd find anything applicable and I have run into a roadblock.  I have added a pdf file that visually shows what I am trying to accomplish.

 

Any help is appreciated

 

Doug

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 1 of 4
(3,124 Views)

Hi,

        It may be useful to u. Do u need exactly 2D array at the end or 1D array is enough? If u need 2D array, some problem is there.

In case the available data is 2 in first row and the available data is 1 in second row means u get the empty data in second row second column...  

 

Thanks,

Sivabalan.V 

Message 2 of 4
(3,109 Views)

Doug, you could try something like the attached VI.

Run the array of clusters through a loop, and compare whichever element you are interested in to the users input.

If it matches, add it to an array.

Cory K
0 Kudos
Message 3 of 4
(3,078 Views)

Indeed it was useful.  While that code itself really didn't solve my problem, it did lead me to the answer and it ended up being simpler than I thought it would be.  I can post that pc of code if anyone is interested.

 

Thanks for the input

 

Doug

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 4 of 4
(3,071 Views)