LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search Indices in 2D Array in a Range

Solved!
Go to solution

Probably I am doing something wrong...

 

 

question2.jpg

0 Kudos
Message 11 of 16
(1,158 Views)

Another option would be to reshapae to a 1D array and use search-1D-array in the boolean output of the "in range and coerce" function. Here's an old example.

 

 

Message 12 of 16
(1,154 Views)

@Ivan899 wrote:

Probably I am doing something wrong...

 

 

question2.jpg


The outer for loop tunnel should be concatenating instead of indexing.  I would move the IR&C function inside the for loops and autoindex the original array.  No need to create the intermediate boolean array.

Message 13 of 16
(1,148 Views)

Hi Ivan,

 

as others noted you have to change the output tunnel mode.

 

- You also placed the Abs() function in the wrong place.

- You didn't use the snippet I provided…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 16
(1,137 Views)
Solution
Accepted by topic author Ivan899

I have been thinking that the row and column indexes are the i values of the two loops, so why not present it that way?  And Thanks to Darin for pointing out that moving IR&C inside the loop simplifies things. So now I create an array of cluster of row, column indexes.

 

Lynn

Message 15 of 16
(1,130 Views)

Thanks to you all!  You`ve helped me so much!

0 Kudos
Message 16 of 16
(1,119 Views)