LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to assort the aquired data?

Hi,
 
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.
 
 
0 Kudos
Message 1 of 3
(2,813 Views)
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.
 
Here's a quick draft (labVIEW 8.0).
 
 

 Repeat for each value of your data.

Message Edited by altenbach on 09-27-2007 02:35 PM

Download All
0 Kudos
Message 2 of 3
(2,813 Views)
thanks! it works.
0 Kudos
Message 3 of 3
(2,784 Views)