Example Code

Clear all Graphs and Charts in LabVIEW

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

1. Overview:

This subVI uses VI Server to clear the data from all standard graphs and charts. 


2. Description: 

Getting the graphs blank at the beginning of the exuction is a common feature that needs to be implemented. With this subVI, all the graphs in the VI that is set as reference are programatically detected and blanked. Just input a reference to the VI in which you want to perform the operation and execute and all the graphs and charts will become blank. 

   

3. Requirements

  • LabVIEW 2012 (or compatible)

4. Steps to Implement or Execute Code

  1. Set the VI as subVI
  2. Set the reference of the VI which graphs are needed to set blank

5. Additional Information or References

VI Snippet

Snippet.png

 

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

 

Regards,
Dan King

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