09-12-2013 11:29 AM - edited 09-12-2013 11:30 AM
sammir wrote:
Where can I find your proposed solution..
The one you already marked as the solution. Here's a link to it:http://forums.ni.com/t5/LabVIEW/Moving-Average-Filter/m-p/2550589#M771776
You will need to add some logic to make the array size variable, but the basis is there.
12-18-2018 11:26 AM - edited 12-18-2018 11:28 AM
@WillD 已寫:
This should work, although it is untested. You can duplicate the Z-n blocks for more delay(sample size). If you use powers of 2 for sample size you can use a bit shift to do the division and save space. The average won't be valid for the first n samples.
Edit: Had the subtract inputs swapped.
This solution looks fantastic.
I am just wondering if the Z-n block outputs correct delayed sample each cycle.
If yes, it means Z-n block has internal array intrinsically.
Have you ever validated the delayed samples are correctly aligned?