LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get index of checked plots in a multiplot

Solved!
Go to solution

Hello Labview application engineers,

 

I would like to know how to get index of checked plots in a multiplot graph. The sample vi (attached) has three plots in a graph, I want to pass a Boolean array  containing status of checked plots for subsequent data process. e.g. Plots 0 and 2 are checked.

 

edmonton_0-1617576139924.png

I looked at the graph properties, however, I could not find a proper property to read/write for such a use under both legend and plot. Available properties under legend is shown below.

 

edmonton_1-1617576395333.png

 

Thanks,

Gu

 

0 Kudos
Message 1 of 4
(48,638 Views)
Solution
Accepted by topic author edmonton

This should work:

 

MIG_0-1617579000796.png

Not sure if there is an easier way.

 

Message 2 of 4
(48,620 Views)

Hi MIG,

Thanks.

Gu

0 Kudos
Message 3 of 4
(48,599 Views)
Solution
Accepted by topic author edmonton

You have three plots, 0, 1, and 2.  Create a Property Node for the Chart, and make the first element of the Property Node "Active Plot".  This selects the Plot on which you want to work.  Let's say you wire "1".  Now pull down another Property Node entry (did you know you could have one Property Node with multiple options?).  Click on it and it will expand to allow you to select any of the appropriate Properties.  Scroll down to find "Plot", and expand this and select the "Visible" property.  It will show as Plot.Visible?.  If you leave it as "Read", you can find out if that Plot is Visible.  If you change it to Write, you can set it True (to make it Visible) or False (to make it not Visible).

 

Individual Plot properties (like Visibility, or Line color or style) require that you set Active Plot to select the Plot, then adjust the individual property.

 

Bob Schor

Message 4 of 4
(48,594 Views)