LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically formatting the active plot and plot legend

I am monitoring 6 production sequences on an XY graph. A ring control selects which sequence I show on the graph. For each sequence I have tag data showing the "actuals" and tag data showing the "averages" and a boolean toggle switch controls which of these plots I show on the graph. I am having trouble controlling the formatting of the plots (both actuals and averages are currently shown in white) and the plot legend is wrong. I have tried programming my vi to format my plots using a property node from the XY graph and writing to the correct plot inputs, however it doesn’t seem to be working. I would also like the plot legend to show ONLY the active plot on the XY graph.

I would like a red continuous line for the averages and blue square scatter points for my actuals. I can’t seem to get this at all. I have attached my vi if anyone can help?

Many thanks for taking the time to help,

Best regards,

Stuart

0 Kudos
Message 1 of 6
(3,124 Views)
OOPS!
 
Please ignore that last attachment, this is the attachment i refer to...
 
thx
 
Stuart
0 Kudos
Message 2 of 6
(3,118 Views)
It is very easy all you have to do is set the active plot first then set all the plot attributes ie name color and so on like you are doing now. After you do that it should work just fine.
 
 
 



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 6
(3,114 Views)
Thanks jhoskins, how do I "set" the active plot? What number do i use? Also, how do i show only the active plot on the plot legend? Do i write the same number to legend plots shown as i do for active plot? I am a little unclear on what steps i should take to achieve your suggestion. Any further help is greatly appreciated. Thanks again, Stuart
0 Kudos
Message 4 of 6
(3,103 Views)

Hi Stuart

Maybe this helps you.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 5 of 6
(3,096 Views)
Hi Stuart,
  The information you need is covere in the LabVIEW Basics II manual, chapter 3 which discusses in detail the Graphs and Chart properties.
 
Thanks
 
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 6 of 6
(3,082 Views)