LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Just want to cancel my programm !?



@Stefan22 wrote:
Ok thank you very much, it worked fine so far,
the main problem in my case was the set chekmark in my event
structure to prevent my frontpanel from responding...

No, you main problem was (and still is) the fact that you place "infinite" loops inside event structures, blocking all other events. New events cannot execute unless the current event finishes! For lack of a better word, your code suffers from severe constipation. 😉

You also duplicate the entire case code, if in fact the only difference is the "+1" vs. "-1". This is very inefficient, since it also forces the use of local variables.

The easiest solution is to use the outer loop only as I demonstrated in my second example. Here is a quick modification that also implements the down counting. (LabVIEW 7.0). Notice that all events immediately execute, event in you would set the count interval to minutes or hours.

There are other solutions, but they will be more complicated and would involve multiple independent while loops.

 

0 Kudos
Message 11 of 12
(584 Views)
Correction: In my above example I mislabeled the boolean text on the down button. Also, in the reset case, the timeout should be set to -1. Modify as needed.
0 Kudos
Message 12 of 12
(580 Views)