04-02-2006 08:04 PM
@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.
04-02-2006 08:32 PM