LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

turn on and off multiple plots in charts

Hi,

I would like to be able to turn on and off certain plots when I chart the data that I collect.

Right now I use case structures, and if I want the plot turned on, the data for that particular plot gets added to an array, and it does this for each channel of data that I collect.

The problem is that when I turn off certain plots, the colors of each plot don't stay the same, and when I turn off a plot, the plot dissapears from the chart legend. I want the colors to stay the same and the chart legend to stay the same.

Does anyone know how to do this? Or can someone point me in the direction of an example like this?

Thanks a lot for your help!

Sunny
0 Kudos
Message 1 of 4
(2,781 Views)
You can use property nodes to set which plots you want visible/invisible. The colour remains current with each plot. Note that the "convert to dynamic data" type uses rows as channels in the vi below, but it will depend on how you've stored your data arrays.
0 Kudos
Message 2 of 4
(2,774 Views)

How would you do this if you do not know how many plots will be shown (I am reading from a .csv file)

0 Kudos
Message 3 of 4
(1,094 Views)

Hi crouxel,

 


@crouxel wrote:

How would you do this if you do not know how many plots will be shown (I am reading from a .csv file)


Once you read your CSV you KNOW the number of plots!

So you can use a loop to iterate over all available plots…

Best regards,
GerdW


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