LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to alter XY graph label according to property node?

I have tried to alter the XY graph label (title) programmatically by making a property node of the XY graph and going to label/text. Then I created a constant to rename the graph, ran the VI but it refused to rename the graph. I have consulted the manual and have searched the forums trying to find an answer. All of the other properties seem alterable, the font of the title, color, etc. but it will not rename the title with the text. Does it have something to do with the owned labels and free labels? If so, is there a way to get around this so I can enter the title through a property node? I am using version 6.1 and would appreciate any help that can be provided. My complements to the forum surfers who ans
wer labview questions, most are extremely useful and have accelerated my labview learning greatly.

Thanks,
CYung
0 Kudos
Message 1 of 7
(4,024 Views)
Additionally to your problem, I�m trying to programmatically change the displayed names of the plots using a property node. It works only for the first plot. The remaining plots are named �plot1, plot2� etc. Any idea? Thanks.
0 Kudos
Message 2 of 7
(4,024 Views)
The help for label>>text property, states that it is not available when the VI is running.
If the text string is a free label or a caption, this property is settable when the VI is running and is available in the run-time engine. However, if this text string is an owned label, this property is not settable when the VI is running and is not available in the run-time engine.
Attached is an example how to chnage the title/caption of the graph.

Zvezdana S.
National Instruments
Message 3 of 7
(4,024 Views)
For the each plot you want to change the name of, you will first need to set it to be active. Use the "Active Plot" property.
Please find the attached VI.

Zvezdana S.
0 Kudos
Message 4 of 7
(4,024 Views)
> can enter the title through a property node? I am using version 6.1
> and would appreciate any help that can be provided. My complements to
> the forum surfers who answer labview questions, most are extremely
> useful and have accelerated my labview learning greatly.

The title becomes part of the datatype, allowing named clusters and
other named data access to work better. This means that changing the
name at runtime is also changing the datatype.

Instead of changing the title, show the Caption. It is intended to be
used as a changeable control title, often used for localization.

Greg McKaskle
0 Kudos
Message 5 of 7
(4,024 Views)
> for the first plot. The remaining plots are named ?plot1, plot2? etc.
> Any idea? Thanks.

Use the Active Plot property node to select which is being accessed.
The propety node executes from top to bottom, so you can affect several
cursors with one node.

Greg McKaskle
0 Kudos
Message 6 of 7
(4,024 Views)
Thank you very much! it works!
0 Kudos
Message 7 of 7
(4,024 Views)