Caption Property for a Control in LabVIEW NXG

Updated Jun 15, 2018

Reported In

Software

  • LabVIEW NXG

Issue Details

  • I can't find the Caption property in a LabVIEW NXG control.
  • Working with LabVIEW NXG, and in the control properties, I only find the label option, but not the caption option. In LabVIEW NXG is the caption option still available?

Solution

LabVIEW NXG controls do not have the Caption property anymore. In LabVIEW NXG, the control's Label property does not represent the "Name" of the control itself. Therefore, it gives us the option to change its label during Runtime execution without having to use a second property as the Caption.

 

If you intent to use this method to localize your application (this is, displaying different labels for the controls/indicators depending on the language selected for your application), we recommend a different approach, as outlined in the following Help document: Creating Localized String Dictionaries

Additional Information

To modify the Label programmatically using property nodes, follow the next steps:
 

  1. Right click in the control and select Create reference
  2. Place the reference in the block diagram
  3. Use a Property Node to get the control's Label reference
  4. Wire the Label reference to a second Property Node and select the Text property
  5. If the property is set to read, you can right click it and select Change to write
  6. Wire the string with the new label to the property

 

WAS THIS ARTICLE HELPFUL?

Not Helpful