Example Code

Return Value of Control to Default When Not Visible on Front Panel

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 how to overwrite the values of controls contained within a cluster inside of an array.


Description
Each cluster of controls is one element inside of the array. In this program, the user can decide how many clusters of controls they would like to see on the Front Panel. When the user reduces the number of clusters visible, this code returns the value of these controls to a specified constant value. i.e. when a cluster is not visible on the Front Panel, the values it contained are overwritten by default values specified by the programmer.


Requirements

  • LabVIEW 2013 (or compatible)


Steps to Implement or Execute Code

  1. Configure the Input
  1. Run VI

 

Additional Information or References
VI Block Diagram

 Block Diagram.png

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

 

 

Gabby
National Instruments Applications Engineer

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