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 - 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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
While loops3m 42s
-
(Locked)
For loops3m 6s
-
(Locked)
Build an array with a for loop2m 11s
-
(Locked)
Process an array with a for loop2m 22s
-
(Locked)
Loop timing2m 53s
-
(Locked)
Local variables6m 18s
-
(Locked)
Shift registers2m 26s
-
(Locked)
Stacked shift registers2m 24s
-
(Locked)
Challenge: Moving average52s
-
(Locked)
Solution: Moving average2m 25s
-
-
-
-
-
-