LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY-Graph / Plot legend: How to detect changes in 2nd/3rd/4th ... legend position

Solved!
Go to solution

Hello,

 

I have an XY-Graph with 4 plots. How can I detect, for example, the color change of the second plot in the legend. The active plot, using a property node, is always plot 0. So I am not able to detect changes in the 2nd/3rd ... plot.

 

Any ideas?

 

Thanks a lot.

 

Best regards,

Michael

 

0 Kudos
Message 1 of 7
(2,952 Views)

Hi Michael,

 

you might write into the ActivePlot property to select which plot you're accessing...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,943 Views)

Hi GerdW,

 

thank you. But I want to detect the active plot by clicking on the coresponding icon in the plot legend. If I read the active plot via property node, the value is always 0. Regardless which icon in the plot legend was clicked.

 

Best regards,

Michael
 

0 Kudos
Message 3 of 7
(2,939 Views)

Clicking the plot legend doesn't change the active plot. You have to set that property programmatically...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,937 Views)

Ok. Thanks a lot.

 

Is there a work around or trick to get the information which position on the plot legend was clicked to set the active plot programmatically?

 

Best regards,

Michael

 

0 Kudos
Message 5 of 7
(2,928 Views)
Solution
Accepted by topic author MichaGue_01

You can do it with an event sturcture.

 

Message 6 of 7
(2,918 Views)

Hello MStewart,

 

Could you please upload plot detect VI in 2011 labview Code please. 

 

Many thanks 

Lazer

 

 

0 Kudos
Message 7 of 7
(2,855 Views)