Example Code

Programmatically Updating a Control on a VI From Another VI

Code and Documents

Attachment

Overview
This code shows how to write to a control found on another VI. 


Description
In order to use this example create a VI with a string control named Serial Number and save it on your machine. Then open the VI attached and on the front panel choose the VI path you previously created. 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached file to your computer
  2. Open the VI "Updating A Control on A VI from Another VI 2012 NIVerified.vi"
  3. Run the program

 

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.** 

Shalini B
Applications Engineer
National Instruments UK & Ireland

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