取消
显示结果 
搜索替代 
您的意思是: 

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

1 条消息(共 5 条)
5,805 次查看

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 项奖励
2 条消息(共 5 条)
5,785 次查看

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 项奖励
3 条消息(共 5 条)
5,762 次查看

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
4 条消息(共 5 条)
5,725 次查看

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 项奖励
5 条消息(共 5 条)
5,671 次查看