LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labels control

I want to Lable the two string Controls dynamically. I have used a menu ring control to Select label options. In case it is option 1 (X-Y Graph ) I want to labels the two string controls as X & Y respectively. and on selecting option 2(Y-T graph) i want to label the controls as Y & T respectively. How can this be done.???
0 Kudos
Message 1 of 6
(2,861 Views)
You can create a property node and manipulate the caption text. In front panel, you can make the string control label invisible and caption visible.

See attached VI
0 Kudos
Message 2 of 6
(2,859 Views)
Thx Ram but i do not have Labview 7
0 Kudos
Message 3 of 6
(2,859 Views)
This is Ram's example as 6.1

The important issue at play in this response is that the label can not be manipulated at run time.

The caption can!

Ben

Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(2,859 Views)
Thankx ben for your suggestion. However a i am green here in labview i fail to understand why have we used three cases for selection where the menu ring control have only two.??
0 Kudos
Message 5 of 6
(2,859 Views)
There has to be a Default case with non-boolean case structures, otherwise the VI won't run. In this case it'll never be selected as 0 and 1 are the only options, so it's output is unimportant. An alternative would have been to make the first case "0,Default" (without quotes), then there would be only 2.
0 Kudos
Message 6 of 6
(2,859 Views)