01-13-2009 01:24 AM
01-13-2009 01:31 AM
Example attached:
Boolean 3 is pressed to set to true; 1st event is entered. Boolean 2 is set to True. It stays in the while loop indefinitely.
I try to press Boolean 4 to set Boolean 5 to True, but it does not let me.
01-13-2009 02:10 AM
Hi Henry A,
it's not a good idea to insert a while loop inside an event case. I recommend to only use one event strucutre. Can you please explain what you need? I'm sure we will find a solution for you.
Mike
01-13-2009 02:15 AM - edited 01-13-2009 02:18 AM
Herny,
you are running into caveats of the event structure. Esp. this caveat is the one you have implemented.
I recommend you not to use more than a single event structure in your whole project. That is, of course, not suitable for certain projects, but in general a very good advice since it reduces the chances to run into issues very much.
Furthermore, please note that events lock the frontpanel by default. See here for more information.
hope this helps,
Norbert
[EDIT] Taking a closer look into your right loop/event structure/loop - construct: your vi creates an infinite loop eating up 100% CPU load when pressing Boolean 3. Never ever do that!