Example Code

Programmatically Updating Waveform Graphs in Clusters and Arrays

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 shows two methods of displaying Multiple Waveform using Clusters and Arrays, as well as how to access and modify the properties of the Waveform Graphs. This example also highlights the differences between Arrays and Clusters of Waveform Graphs.


Description
This VI demonstrates how to access and modify the properties of a Waveform Graph within a Cluster as well as all Waveform Graphs within an array. This can be helpful for when users wish to display many similar Waveform Graphs within one GUI. Since clusters can have multiple element types, this allows for programmatically changing each element individually. Consequently, we need to access each element and use a Refnum for each specific element to alter that specific class (Waveform Graph).  However, within an array any programmatic changes are automatically applied to all elements. Thus, this reduces the amount of code needed, but also limits the flexibility.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open " Waveform Graphs In Cluster And Arrays 2012 NIVerified.vi"
  2. Run the program

 

Additional Information or References
VI Block Diagram

 5-210.png

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

Evan See
National Instruments

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