LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interpolation between missing data

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

 

 

0 Kudos
Message 1 of 4
(4,016 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(4,010 Views)

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.

 

 

0 Kudos
Message 3 of 4
(3,997 Views)

Check this link.

 

 

0 Kudos
Message 4 of 4
(3,976 Views)