LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Previous Event(s) in the Event Structure

I have a an event structure with 5 events doing different function. I want to create another event which would run 3 of the previous events with one click. Can anyone help me do that?
0 Kudos
Message 1 of 4
(2,501 Views)
Hi AshishMah...,
depending on the other events you can use the value(signaling) property, but i recommend to use the timeout case, or a parallel state machine.
Mike
0 Kudos
Message 2 of 4
(2,497 Views)
The timeout event has the draback that it is not garanteed to execute. The value signalling is, but you will have to be aware of loopback, when events will continue to trigger events in a deadlock (never stopping). Create  a sequence diagram (UML) to get an overview with lots of value signals. Think of a recursive function that also needs to end sometime.
Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 4
(2,489 Views)
If you did go the route of a parallel State Machine to the Event Structure (loop), then you should consider using an Action Engine that keeps track of the current state and the past history.  The Action Engine may have enough intelligence to determine if it is appropriate to roll back and how far..
 
As Andre mentionned, you do have to make sure the software is well designed in order to avoid any deadlock conditions.
 
RayR
Message 4 of 4
(2,482 Views)