Control Changes Made in SubVI Not Reflected on Main VI in LabVIEW

Updated Oct 21, 2023

Reported In

Software

  • LabVIEW

Issue Details

  • I made changes to the color of the text and the text boxes using Property Nodes in a SubVI in LabVIEW. When I passed the information to the Main VI, the values get passed, but lose all changes to the color. How do I get the color changes to pass through?
  • I have a numeric control in my Main VI that references one of the connector pane's inputs of a SubVI in LabVIEW. I modified the Data Entry Limits of the control inside the SubVI, however, I am seeing these changes are not reflected in the Main VI controls. How can these changes be reflected?

Solution

Any changes made to controls inside the SubVI either Manually or via Property Nodes will not be reflected in the Main VI. If you would like to change any property for a control in a Main VI you will need to apply the changes to that control directly from the Main VI using the same methods.

If you still would want to change the property of the Control from the Main VI with code written inside a SubVI, you will need to pass a Reference, the steps are detailed below:
  • Right-click the control in your Main VI and then select Create>>Reference.
  • Connect that reference into an input of the SubVI.
  • This reference in the SubVI can then be connected to a Property Node to apply the changes. Any changes made in the SubVI with the Property Nodes will immediately reflect on the Main VI.