10-20-2012 02:03 PM
I have two graphs and allow the user considerable flexiblity in what is being displayed. The plot Plot Visibility Checkbox in the Plot Legend is a very nice way to turn on and off temporarily one particular plot.
Is there any way other than polling the Plot Visible property to detect when one of those boxes is clicked? I want to change the visibility of the same plot on both graphs simultaneously.
Lynn
Solved! Go to Solution.
10-21-2012 01:08 AM
I never worked with these, but there does seem to be a trick which gets you most of the way there - the control has a Plot Attribute Changed event which is fired when one of these is clicked. The event itself doesn't seem to include data about this specific property, but it does include the index and reference of the plot, so you can then just read its property directly.
10-21-2012 08:36 AM
@tst wrote:
I never worked with these, but there does seem to be a trick which gets you most of the way there - the control has a Plot Attribute Changed event which is fired when one of these is clicked. The event itself doesn't seem to include data about this specific property, but it does include the index and reference of the plot, so you can then just read its property directly.
Works only in LV2012 (I came with this idea yesterday and checked it in 2011SP1 - didn't work).
10-21-2012 10:30 AM
tst,
That works great. It is exactly what I was looking for. I did not think to look through the event structure for possibilities.
Lynn
01-29-2018 05:19 PM
Hi!
I have the same problem. In my case, I have multiple 3D measurements (in particular 12 sensors) being each axis data represented in a different graph. I want to enable/disable the visibility of each sensor from the legend of only one graph. I know that i can use the plot.visibility? property but I can not select the sensor, since active plot is always the same....
Is there any way to export the plot visibility settings from one graph to the others?
Thanks in advance.
01-29-2018 06:22 PM
@bokeauss wrote:
but I can not select the sensor, since active plot is always the same.....
Property nodes execute top to bottom, so all you need is select the active plot and set it's visibility.
The code on the picture would iterate over an array of booleans and set the various plots accordingly.
01-29-2018 06:43 PM
Thanks!!!
I did a modification, instead of an array of bool I used one graph property to set the others.
02-01-2024 01:18 AM
Can you sent the block diagram
02-01-2024 01:19 AM
Can you sent this block diagram
02-01-2024 02:50 AM
I don't think you'll get an answer:
• a written request in bold and not even a "please"
• the thread is 6 years old
• as far as I can see, that was his last post