LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cubic Spline Interpolation for Missing Kinematic Data

Hi,

 

I'm currently collecting kinematic data samples and for some reason, I've noticed that I'm missing part of the data here and there. 

 

I want to use a cubic spline interpolation function to "estimate" the missing part and make the data into a smooth line however, I couldn't figure out how to do that in LabView. 

 

The data uploaded is a part of the data and as you can see, there are some parts that are just empty. 

 

The VI that I attached, I got from one of the forum posts. (Link) But it only does linear interpolation.

 

I would be so grateful if anyone could help me with this one!

 

Thank you and have a great rest of your day 🙂 

Download All
0 Kudos
Message 1 of 5
(211 Views)

Can you do a "save for previous, 2020 or below" and attach again. Many here cannot open VIs saved in 2024.

 

(You should also give your VI a more unique name, because a Vi with that names has already been posted before in your linked thread)

0 Kudos
Message 2 of 5
(185 Views)

Absolutely! 

 

I saved it for 2020 and 2019. But if you need something before that, I will reupload them!

 

Thank you

 

Download All
0 Kudos
Message 3 of 5
(170 Views)

I am not sure if spline is the correct method, because the discontinuities near the gaps seem to create peaks that might be fake.

 

Here's how it would look like. (I took the liberty of simplifying things a bit since you only have one column. Note that I zoomed the x-axis to some interesting sections

 

altenbach_0-1732172063348.png

 

Message 4 of 5
(165 Views)

That is awesome!! Thank you so much!!

 

You mentioned that spline might not be the optimal choice since it might create unintended peaks. Do you have any other suggestions??

 

Best,

 

0 Kudos
Message 5 of 5
(142 Views)