Overview
This VI will search an input 1D array for multiple instances of a single number and return an array containing the index values.
Description
The VI works by auto-indexing the searchable array into a for loop and single step comparing each value to the number you are searching for. If a match is found, load that index into an array. This is similar to the Search 1D Array VI built into LabVIEW which performs a linear search but only returns one value.
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Download and open the VI "Search Array for Multiple Instance_LV2012_NI Verified"
2. Enter the number you want to find
3. Click on the Boolean control to choose the search method
4. Run the VI
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Thanks for posting, I'm chaning the indices to int...