08-06-2015 07:50 AM
Hi all,
This is the situation, i have an Indicator to display Acceleration, Velocity & Displacement. I am using it a local variable in the 2 case structures.
Here is what i want to achieve:
I want to update the Indicator label for the respective Radio Button control. If the click on Acceration button, the label should be updated to Acceleration during Run time. Correspondingly for Velocity and Displacement button.
Can anyone help me how to go about this.
Excuse me if i am not clear about anything.
Thanks in advance
Solved! Go to Solution.
08-06-2015 08:03 AM
Generally you should not change the label of a control, because this is often how the control is referred to from elsewhere in the program and it causes confusion.
Instead there is a Caption property. If you right click the control and select Visible Items->Caption, the label is hidden and the caption is displayed instead (with the same text).
In your block diagram, right click on the chart terminal and select Create->Property Node->Caption->Text. This creates a property node for the caption property. You will need to click on it to change it to 'Write' rather than 'Read' - you can then wire whatever text string you like and it will update on the front panel.
08-06-2015 08:03 AM - edited 08-06-2015 08:03 AM
You can't do this with labels but you can do it with captions.
On your graph, change the Visible Items to be Caption instead of Label.
Then use a property node to change the caption depending on the radio button selection.
EDIT: Stuart beat me to it.