Example Code

Modify Chart Update Rate

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

LabVIEW code that shows a simple solution on how to update the rate in which a chart is being updated.

 

Description

The intention of this example is to control the rate in which the chart is being updated. We are accomplishing this by storing data in an array and displaying the data every amount of loops. The value on how many loops to update is specified by the user.


Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Open the "Modify Chart's Update Rate LV2012 - NI Verified.vi"
2. Select the Run button.
3. Change the value on the Update Rate Control.
4. Visualize how the chart's rate changes.

 

Additional Information or References

Snippet.png

Tanya Visser
National Instruments
LabVIEW Group Manager

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