Virus scan in progress. Please wait to download attachments.
This example demonstrates how to change the label of a control/indicator in another VI programmatically.
To change the label, you need to open a reference to the VI with the control you would like to change the label of. You can then get a reference to the front panel. From the front panel you can get an array of references to the controls. Index the array to the desired control and use a property node to set the label text.
LabVIEW Base Development System 2012 (or compatible)
No hardware is necessary to use this example VI
Steps to Implement or Execute Code
Download and open the attached ZIP-file
Open the Simple VI and the Change Label Text VI
Run the Change Label Text VI
Additional Information or References
Note: The VI that contains the control you want to change the label of cannot be running. Changing the label is editing the VI and cannot be done while it is running.
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.