LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing labels of indicators and controls programatically

Hi all
 
I am working on a project which we need to release in different languages. I want to know do we have any facility to change the labels of controls and indicators programatically with a single button press. When i press the English button, all labels must be in English, When i press French button, all labels must be displayed in French.
 
Thanks
Anil
0 Kudos
Message 1 of 6
(3,276 Views)
Hello,

You can use the caption instead of the labels.
Right on the controls and choose visible items, caption.
And then use a property node caption.text to change it.
See attached vi.

Hope this helps,
Paulo
0 Kudos
Message 2 of 6
(3,270 Views)

Hi

Basically - changing the label is not possible. The only thing you could change is the control-caption.

But I don't know of an easy way to change the language on a button click. The topic itself was already discussed in the forums - just search for localization and/or language and you might find some threads on this topic.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 6
(3,270 Views)
You can get a reference to all front panel controls. It will be an array of references. Wire this into a for loop. Then use property nodes inside the for loop. Search the forums, it has been done before.
0 Kudos
Message 4 of 6
(3,264 Views)
0 Kudos
Message 5 of 6
(3,254 Views)
Thank you all for your quick response.
 
I am working on the problem now with your suggestions. I have so many sub VIs(around 100) i need to change the Caption for all kinds of controls with a single click on main screen(main function). so i am just checking with global variables. it i slike before opening the SUB VI, it will check the global variable number and change the captions according to the option selected on main screen. these global varibale gets updated when we select different languages. I feel i am going in a right direction, please inform if am going in wrong path.
 
 
Thanks
 
Anil
0 Kudos
Message 6 of 6
(3,250 Views)