Example Code

Waveform Plot Color Change 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 displays a random waveform that continually displays 10 seconds of data at a time and changes the color of the main plot if the waveform crosses a threshold.

 

Description

The VI generates a random waveform and show the plot on the waveform chart. In the meantime, it checks if the waveform reaches the upper or lower limits, and changes the color of the plot if it happens.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. See how the color of plot 0 change when it hit the upper or lower limit.

 

Additional Information or References

 VI Snippet of Block Diagram

sni.png

 

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

 

Joel I.
Applications Engineer
National Instruments

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