LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

legend customization howto....

hi everybody,
i have the need for a project i'm involved in, to customize the legend items of a plot with significative names retrived from a configuration file. I've thought to use property node but no method is defined to do that. Does anybody holds a solution or an alternate way to achive this goal?
Thanks a lot for your answer

Max (Rome/ITALY)
0 Kudos
Message 1 of 4
(2,693 Views)
Hi Max

If you are talking about Plot Legend, Scale Legend and Cursor Legend. Then all of these can be cutomized by using Property Nodes.

For eg If you want to change the name of the Plot, Right click on the terminal in the Block Diagram and drop a Property Node. Right Click on the Property and Choose Properties->Plot->Plot Name. By writing to this property you can change the name.
Good Luck!

Mache
0 Kudos
Message 2 of 4
(2,688 Views)
thanks for response.
OK yes i know that i can customize plot name or chart name using property node. But i have a different problem, i need to customize plot legend i mean if i have 2 graphs on the same chart how can i assign to the legend with the graphs line style and graphs names on the top right of the chart different name (e.g. ambient temp. and relative humidity) to those graphs? I think that these properties couldn't be accessed with a property node, so if someone have suggestions please reply.
Have a nice day
Max (Rome/ITALY)
0 Kudos
Message 3 of 4
(2,673 Views)
Max,

I think Mache's advice is still the correct advice. See attached image of block diagram demonstrating how to programmatically modify the plot name (the one in the legend) and the plot line style of two plots on a graph. The technique here relies on the fact that property nodes are executed top-to-bottom in LabVIEW, so first the properties of Plot 0 are set, then the properties of Plot 1.

If you feed "Relative Humidity" to one of those Plot.Name inputs on the property node, you'll see that the plot legend updates accordingly.

Take care,
John
Message 4 of 4
(2,667 Views)