Example Code

Searching a 2D Array for Multiple Matches

Code and Documents

Attachment

This example shows how to search for a specified value in a 2D array. The VI uses a For Loop to iterate through each element of the 2D array. Whenever LabVIEW finds an element that equals the search value, LabVIEW adds the indices of the element to a separate array and then stores these indices in a shift register for the remaining iterations of the loop. This VI finds every element in the array that matches the search value.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors