Example Code

Update a Calling VI's Front Panel Without a Reference to the VI 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 shows you how to update a calling VI's front panel from within the subVI without using references to the controls, indicators, or the VI.


Description
In LabVIEW you are able to use the call chain of a single VI to find the name and path of calling VIs. That information can be used to programmatically call controls and indicators without the explicit use of a reference to the top-level VI.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Update VI's Front Panel from subVI LV2012 NI Verified.vi"
  3. Run the program
  4. Observe the graph being updated from the subVI
  5. Click STOP to stop the VI

 

Additional Information or References

VI Block Diagram

Update VI's Front Panel from subVI LV2012 NI Verified.png

 

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

Jared S.
Applications Engineering
National Instruments

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