Example Code

Displaying Last N Data Points to XY Graph

Code and Documents

Attachment

Overview
This example code shows how to display the last N samples of data collected to an XY Graph.


Description
This allows you to display previously recorded data, much like a chart, while having the functionality of an XY Graph and without having to worry about memory usage because you control the number of points shown on the graph. 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached file to your computer.
  2. Open the VI “XY Graph Display N Samples 2012 NIVerified.vi”.
  3. Input the value of 'Data Points Per Iteration' and 'Max Data Points'.
  4. Run the VI.

 

Additional Information or References
VI Snippet

 VI Snippet.png

 

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

 

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