Example Code

Change Properties of All Controls and Indicators in a Cluster with 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 shows how to access the properties of the controls and indicators in a cluster.

 

Description

Create a property node from the cluster by right-clicking the Cluster on the Block Diagram and select Create»Property Node»Controls [].  This gives you an array of references to the Controls.  You can then cast them to the specific class of control and access the properties from the reference.

 

Requirements

  • LabVIEW 2012 SP1 (or compatible)

Steps to implement

  • Download and unzip "Plotting geometric shapes in LabVIEW - LV2012 NIVerified.zip" and and save the content in the same folder.
  • Run the .vi

Change Properties of All Controls and Indicators in a Cluster with LabVIEW - LV2012 NIVerified.PNG

 

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

Bryan H.

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