LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mehod to change the lablel of the progress bar at run time

Hi,
 
I am using LabView 7.1.I want to change the label text  of the progress bar at run time.Is there any method to do this??
 
Regards
Meenatchi
0 Kudos
Message 1 of 4
(2,957 Views)
Run time you should not change Labels, this works only in edit mode.  You can instead change the Caption of a control/indicator, see attached VI.

Was this what you were looking for? I hope so...

graziano
0 Kudos
Message 2 of 4
(2,953 Views)

Hi,

Thanks for ur reply.

Actually in my front panel i am having two buttons Run and Report.When Run is pressed the caption/Label  is "Executing" and when Report is pressed it has to change to "Generating Report"

How to achive this?

Regards

Meenatchi

0 Kudos
Message 3 of 4
(2,935 Views)
Hi!
   First note that "Caption" and "label" are two different things....

   To display caption, do the following:

  • select Progress bar on front panel and left click, select "visible items" --> "Caption" (you have to display caption before to be able to modify this)
  • go to Block diagram, select progress bar indicator, left click, and "create" --> "property node"
  • left click on the properety of property node, select "properties" --> "Caption" --> "Text"
  • select property of property node, and set "change to write"
  • Wire the string you want to set as caption.
   These are all the steps for doing this, let me know if there're further problems.  Or post your code....

   Have a nice day!

graziano
0 Kudos
Message 4 of 4
(2,925 Views)