multiple "generate user event" in event loop

multiple "generate user event" in event loop

Post by charlie » Fri, 30 Sep 2005 04:10:52


Hello.
 
1.)  I am wondering if you can user a "generate user event" into an event loop to create a quasi-state machine.
For example create an event loop with the events "event a", "event b," "event c," and so on.   The in "event a" put in a function to generate a user event to call "event b".  Then "event b" will call "event c" and so on.
 
2.)  If this is possible, then can u put multiple generate user events into a single event loop and have it queue the generate user events up.  For example have the "event 1" case use the "generate user event" 3 times (generating "event 7" "event 8" and "event 9.") to call the next three future event cases in that order?
 
Thanks
Charlie C.
 
 
 

multiple "generate user event" in event loop

Post by altenbac » Fri, 30 Sep 2005 05:41:02

Of course it is possible, easiest with simply writing signaling properties. (See attached examples, LabVIEW 7.1).
 
You have to be very careful that you don't create trigger loops, e.g. event A triggers Event B, which triggers Event A ... ad infinitum! :0
 
Example "Multievents": event 1 triggers event 2, which triggers event 3.
 
Example Multievents2": event 1 triggers events 2-3-2-stop in sequence.
 
 Message Edited by altenbach on 09-28-2005 01:26 PM


MultiEvents.vi:
http://www.yqcomputer.com/


MultiEvents2.vi:
http://www.yqcomputer.com/