Showing results for 
Search instead for 
Did you mean: 

resample Array - Interpolate and Decimate



LabVIEW 2013 SP1.


I would like to resample an array - (Interpolate and then Decimate) without applying any FIR filtering.

(for some reason you must configure FIR filtering in the signal processing palette)


I have created the attached VI, but it seems to have easier options in LabVIEW.

Do you have any other solution ? anything availabe in LabVIEW that I did not find ?





Message 1 of 5

Hi a²,


you can do this whole interpolate&decimate within your FOR loop by change the iteration count and the divisor for "i"…

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5

Hi GerdW,


The input array that I created as a simulation is just an example.

I would like the VI to work for every input array

0 Kudos
Message 3 of 5

Hi a²,


try something like this:


I simulate some data with Random(), then I create a ramp from zero to max_elements of array. The "#samples" determines your interpolation/decimation factor.

In the FOR loop I determine the two samples of the data I need to interpolate between them…


This is just a rough sketch and not bug free, but should give you an idea of what you can do!

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5

Thanks GerdW,


But I think that the vi i posted is with the same complixity 🙂

Just interpolate and then decimate.


I was looking for a vi that interpolate and array to a new array with a factor just like the decimate one.

and even maybe a vi that resample (interpolate and then decimate) with a factor.


Maybe I will download and use the modulation toolkit.... maybe it has some more related vi's

0 Kudos
Message 5 of 5