01-10-2006 09:41 AM
01-10-2006 10:13 AM
Index off the column you wnat to seach and feed it into the attached code. This will give you the indexes where the conditions are true. Use the index result to index the data from the original array.
If you just want the minimum values just use Array Min and Max. It will give you the values and the index to where they are located.
Matt
01-10-2006 10:16 AM
01-10-2006
10:17 AM
- last edited on
11-16-2025
02:33 PM
by
Content Cleaner
Is there only one number which fits this criteria or are you only searching for a specific number (the smallest, the first instance, etc.)?
Since your array is not very big, the easiest way would probably be going over each element of the array in an auto-indexed while or for loop and checking each element until you find what you want. Other options include sorting the array and using other array functions (like threshold or Max & Min) to find the value, but that depends on what you want to do and is probably not necessary in your case, since your array is small.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
01-10-2006 10:28 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-10-2006 11:33 AM
Thanks all.
The Thershold 1D array is what I was looking for 🙂 No wonder it didn't take you long to answer it :0
thanks a bunch