Example Code

Controlling Clusters via References using Functional Global Variables

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

Download All

Overview
To demonstrate how to control cluster using FGV

Description:
By utilizing Functional Global Values, we can store all references to objects in an array then use these at other parts and layers of our program to change indicators, the functional global helps ensure we don't see any race conditions throughout our program.

Instructions:
To implement this example:

  1. Run VI
  2. Modify the Get reference and change the cluster value
  3. The change will reflect on the Tab control on the right

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

2017-11-01_20-40-35.jpg2017-11-01_20-38-35.jpg

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

Applications Engineer

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