I gathered the sensor data. now I want to process the data like this: there are several ranges of data, if the sensor data is close to some data, the output will be this data. for example, there are 15-20-30-35-50, if the sensor's output is 28, then the indicator will show 30. I wonder whether LabView has this kind VI examples.
Just threshold the value into an array containing a sorted list of values, round the fractional index to the nearest interger, and use that to index back into the list.