Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.
If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.
01-31-2017 03:33 PM
I have a 1D array of data. I would like to search the array for the first time it exceeds a threshold value.
I have tried using the "Threshold 1D Array" VI but not getting the results. It looks like that VI searches for 2 consecutive values, which occurs much later in my array.
How can I search for the first occurance of a singl point that excedds a threshold I set?
Solved! Go to Solution.
01-31-2017 03:55 PM
You could use "Greater?" to see when your array exceeds the threshold. Then use "Search 1D Array" to get the index of the first value which crosses the threshold, like this:
01-31-2017 04:04 PM
I am following you for th most part, but how / where do I connect my array data?
Thanks
01-31-2017 04:07 PM
You would replace the for loop with your data, so instead of the for loop you would have something like: