From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resample Array - Interpolate and Decimate

Hi,

 

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 ?

 

 

 

Amitai

Message 1 of 5
(5,114 Views)

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,
GerdW


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

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
(5,071 Views)

Hi a²,

 

try something like this:

check.png

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,
GerdW


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

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
(4,980 Views)