LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find the corresponding element in 2D Table

Solved!
Go to solution

Hello everybody,


I have probleme that I can't fix,

In my VI I have a table of two column of 5000 element in each column.
In the column A, I manage to find the min and the max, What I want to do it to find the corresponding value of this minimum in the column B.
For example:

A            B

1             5
25           0.87
3             2
4             1
4             98
5             2
0.2          55
9            0.1

 

The min of A is 0.2 and what I want it to obtain B=55 in this case.

 

Thank you in advance for your help.

0 Kudos
Message 1 of 4
(2,439 Views)
Solution
Accepted by topic author sf1

Use index array to get column A. Use the "Array Min & Max" function to get the minimum value in column A, and it will also return the corresponding index at which that minimum is found. Then, retrieve that same index from column B.

0 Kudos
Message 2 of 4
(2,434 Views)

Here's a visual representation of Nathan's example:

 

Example.png

0 Kudos
Message 3 of 4
(2,419 Views)

Thank you all for your fast answer.

 

Thanks to you my VI works perfectly Smiley Very Happy

0 Kudos
Message 4 of 4
(2,416 Views)