LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enable/disable multiple plots on graph

Hello,  I have a two part question

 

I was wondering if someone could help me figure out why I am getting stuck in my event case when I remove the timeout, or set the timeout value to -1? I've tried removing my booleans from inside the event case but still get stuck...

 

What I'm trying to do is enable/disable various plots on a chart and I'm using an event case to do this... is this a good way to do it? I'm about to implement this method for a graph that will have over 40 plots on it, and was wondering if this is the best way to go about it.... my code is just going to get big inside my event case when I put my 40+ boolean indicators in there. 

 

I appreciate any suggestions/thoughts on this,

Thanks!

 

- code is attached -

0 Kudos
Message 1 of 2
(2,156 Views)
If you remove the timeout event or set to never timeout, the code outside the event structure never executes except when the VI first starts. Instead or removing the timeout event, put your code for writing to the graph inside it. Set the timeout to be equal to whatever update rate you want. Remove the Wait (ms) function and put the stop button inside it's own event.
0 Kudos
Message 2 of 2
(2,151 Views)