LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search 1D array-searching numbers in a range-

I want to search in a 1D array, a range of numbers, for example numbers between 10,005 and 11,005... The only thing here is I cauldnot find a way to search numbers in a range instead of a specific number. Anyone that has an idea about this situation please help me...
0 Kudos
Message 1 of 2
(3,469 Views)
The simples solution when you only have 1 area of interrest is using the "In Range?" vi.

If you have more area's you can use following method:
Use the Threshold 1D array vi.
Build a range array with 0, 9.005, 10.005, 11.005, 100.
Now wire your array via a loop to the "threshold y" (enable indexing).
Wire the range array to the "array of number of points" input (disable indexing).
The output-array is the index of what area each value is in.
0 Kudos
Message 2 of 2
(3,468 Views)