Example Code

Flickering of elements in the Plot Area of the Graph Using 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

 

Overview
This example VI Eliminates the blinking of the Graph Plot Area.


Description
Frequent updating of data on the graph (XY Graph, Waveform Graph) leads to flickering of elements in the Plot Area.

Any of the available settings can not help get rid of this flicker. However, purely by chance, it was found that flickering disappears if you put any graphic element at least a few pixels over the Plot Area of the Graph.

Tip: Any graphic element should be placed in front of the plotting area to eliminate flicker. A few pixels covering is enough to see fine result.

 
Requirements

  • LabVIEW 2013 (or compatible)


Steps to Implement or Execute Code

  1. Run the attached example. You will see a flicker in the Plot Area.
  2. Press STOP. Move the text label "Eliminating the blinking of the Graph" on the Front panel of this VI so that it partially covers the plot area of the Graph.
  1. Run the program again. Now there is no flicker. 

 

Additional Information or References
Front Panel

1.PNG

VI Block Diagram

 2.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.