LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use drop-down menu to control plot visibility

Hello everyone,

 

I have simple data reading program that loads and parses a text file containing tab-delimited data. Currently, they are parsed and plotted in 7 separate graphs. I am trying to reduce this to 3 graphs where the user can select from a drop-down menu what they would like to be displayed. 

 

Eg. Graph 1 would have choices data A, B and C; Graph 2 would have data D, E, F and etc

 

The user would select on the drop-down box data A on graph 1 and data F on graph 2. 

 

Is there an easy way to this? I have read some ideas about plot visibility.

 

Thanks

Thomas

0 Kudos
Message 1 of 2
(2,534 Views)

Each plot on a chart has its own Plot Visible property. One easy solution is to graph all the data, then set the visibility property for each line based on the selection from the drop-down menu. To set visibility for an individual plot, first set the Active Plot property to the plot that you want, then set the Visible property. You can do this in a single property node; make sure that the Active Plot property is at the top (property nodes execute in top-to-bottom order, and can be mixed read and write).

0 Kudos
Message 2 of 2
(2,516 Views)