I am attempting to search a 1D array for a certain value... the problem is that the value appears more than once in the array and i need it to find all those values... unfortunately the 1D array search template stops after finding the first item... anyone know a solution to this?
You might want to put your 1d search arry vi into a loop structure with shift reagisters. Use the index of the first found item, add "1" to it and loop it back into the vi as the new "start" address via the shift register.
1) Use a loop to iterate through every element in the array. 2) Compare the value of each element to what you are searching for. 3) If they are equal, store the value of the loop counter to an array.
Yes, you can use a while loop and the search array vi, but this is just as easy and much more intuitive. See the attached for details. Cheers.