Example Code

Average Groups of Data (Simple Moving Average)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This code will average groups of a user defined quantity of numeric values.


Description
This will be useful if you do not need every value from what you are recording. you can take an average of every 100 values for example


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. input the number of "Ground size to average"
  2. Run the vi.

 

Additional Information or References

VI Block Diagram

 Block Diagram.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Nathan
Applications Engineer
National Instruments UK & Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.