04-24-2015 03:00 AM
Hi,
I have trouble understanding interpolation between data. I know there are few functions in labview and examples but they didn't worked for me. I am trying to fill the missing values with linear interpolation. In the attachment is the VI that shows an example of what i am trying to do. Thanks for all the help.
Božidar
04-24-2015 03:10 AM - edited 04-24-2015 03:11 AM
Hi Bozidar,
you need to find your "missing" data (are they always zero?), then fill them with interpolated values…
- Do you want to interpolate linear between two known values or do you want to interpolate using all known values?
- I assume your values are evenly spaced (on X axis) as you don't provide any X axis values…
- Is it possible your array starts or ends with "missing" data? How will you interpolate in such cases?
04-24-2015 03:49 AM
I read the txt files from web server and create 2d array of values and date/time. But some data are lost in the process of measuring. So my input array is in fact array of strings with "values" and "dates", but when converted in the number,missing values become zeros.
- I would like to interpolate using all known values (first i wanted to interpolate using two values, but if i think again, it is better to interpolate using all known values)
- yes, they are evenly spaced on axis
- It is possible. i don't know yet.. probably rewrite last known number or leave it empty.
in the attachment is the excel file of my data with empty values.
04-24-2015 04:49 AM