Example Code

Plot the Average of Nth Elements in an Array

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 example plots the mean value of N elements on a graph


Description
A possible use case of this example would be if you have a large data set and you would like to divide it in to small sets and plot the average of the small sets on a waveform graph.

The data that is being input to the Mean PtByPt.vi is averaged for 10 values and that average value is plotted on the waveform graph.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run 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.**

 

 

Arham H
Applications Engineer
National Instruments

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