From the course: Learning LabVIEW

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Challenge: Moving average

Challenge: Moving average - LabVIEW Tutorial

From the course: Learning LabVIEW

Challenge: Moving average

(upbeat music) - [Instructor] It's time for another challenge. Your goal this time is to implement a VI that continuously computes the moving average of five values for a sequence of randomly generated numbers. Moving average is a common statistical calculation used to analyze data by creating a series of averages for sequential subsets of data elements. I've included this program in the exercise files for you to use as a starting point. It uses a while loop to continuously generate a new random number each iteration. Your program should calculate the arithmetic average of the currently generated number combined with the previous four random values, and display it on the moving average indicator.

Contents