From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Link the "plot legend" checkboxes to individual booleans

Solved!
Go to solution

Hi all,

 

I'm saving DAQ data from a waveform graph (where different channels are displayed as differently-colored plots on the same chart) and I want "unchecked" plots in the legend to go unsaved.

 

Ideally there would be some kind of boolean value associated with each checkbox which I could then use to say "yes, record" or "no, don't record."

 

Is there any way to do this? Or is there a better solution than this?

Message 1 of 5
(3,517 Views)
Solution
Accepted by topic author AlecSt

I presume you are referring to the "Plot Visibility Checkboxes." You can use two property nodes for the graph: Active Plot and Plot Visible. Together those should get you the information you want.

 

Lynn

0 Kudos
Message 2 of 5
(3,505 Views)

I don't think those property nodes give the results I want -- those refer to the visibility of the checkboxes as a group. What I'm looking for is the boolean value associated with each checkbox.

0 Kudos
Message 3 of 5
(3,457 Views)
Solution
Accepted by topic author AlecSt

It works for me. I am using LV 2014. I happened to have a VI with a graph with the checkboxes used so I added the property nodes as a test. The values in the boolean array follow the visibility checkboxes checked exactly.

 

Note: The array of clusters wired to the autoindexing tunnel is the data going to the graph. This tells the for loop how many plots exist.

 

Lynn

 

Plot visibility FP.png          Plot Vis BD.png

Message 4 of 5
(3,449 Views)

Thanks, Lynn. I came back to tell you that I was mistaking and that I got it working, but your additional answer clarified things still futher.

0 Kudos
Message 5 of 5
(3,440 Views)