From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

How to plot a moving average?

Now I want to have a moving average of 10 values.
How can I do this? Please find attached *.VI, and change to implement this function

By the way, I am using LabView 7.0.
0 Kudos
Message 1 of 3
(2,803 Views)
There's a shipping example called Calculate Running Average that you should look at.
0 Kudos
Message 2 of 3
(2,803 Views)
You would calculate a moving average in your program in the same manner as the shipping example, Calculate Running Average. The example calculates a moving average of four values, so the only difference would be that you would need to add six additional shift registers to the ones that already exist. Historical shift registers are added by dragging the bottom boundary of a preexisting shift register to the size desired.

Eric Sulzer
Applications Engineer
National Instruments
http://www.ni.com/ask
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,803 Views)