NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

2^N Point Moving Average

VERSION 4

Created on: Oct 6, 2007 6:34 AM by BetaCommunityContent - Last Modified:  Oct 6, 2007 6:43 AM by BetaCommunityContent


REQUIREMENTS:
Application Software: LabVIEW FPGA Module
Driver Software: NI-RIO

 

This LabVIEW FPGA IP produces a moving average of the last 2^N points.

     

This LabVIEW FPGA IP produces a moving average of the last 2N points.  It is a point-by-point streaming calculation that uses local FIFOs to store the past 2N points.  The FIFO size should be set to accomodate the window size.There is also a data valid output that goes high after 2^N iterations. This subVI will work inside a single-cycle timed loop.A version of this with a reset input is coming soon.

 

 

Downloads:
Average User Rating
(1 rating)




BetaCommunityContent BetaCommunityContent  says:

bug

 

the test case that I ran on this code shows that the results are not correct.  it appears thst the initial condition of the feedback node for count should be 0 and not 1.  Also the summed value can overflow.  The intermediate value should be I32 assuming the n is less las 15            &nbsp ;  

More Like This

  • Retrieving data ...