How to Create a Programmatically Changed Text Label In LabVIEW

By Ralph - Last updated: Wednesday, February 10, 2010 - Save & Share - Leave a Comment

In LabWindows/CVI, we can create a free label text control on the front panel and change its text and appearance in program as we wish. But, this can not be realized in LabVIEW,  because the free text label in LabVIEW can only be changed in edit mode, there is no way to change it in our LabVIEW VIs programmatically. So, if we want to have a text label that can be changed programmatically in our LabVIEW program, we have to find a way to work around it, and I use following method to make it happen.

First, create a classic text indicator on the front panel by Controls>>Classic Controls>>Classic String & Path>>Simple String;

Second, pick the coloring tool and set the foreground and background of this indicator to transparent, and left click the  indicator border to make it transparent too;

Third, right click the indicator and make the label of it invisible through the pop-up menu;

Then, you get a free text label. And you can use property node to change its text and appearance in your LabVIEW programs.

Related posts:

  1. How to Get the Text of Enum’s Item Name in LabVIEW In LabVIEW, if we want to get the text of...
  2. A Better Way to Access Variables in Complex Programs in LabVIEW In some LabVIEW programs, we need to access the value...
  3. How to Change Combo Box at Run Time in LabVIEW It will be very useful if we can change the...

Posted in LabVIEW, VI Software • Tags: , , , Top Of Page

Write a comment