LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure: Multiple Events ??

All

I have a project where I have an event structure handling about 10 individual events. Would it be possible to fire multiple events at the same time ? For instance, if my event 3 is triggered and the corresponding process is running, can I trigger an event 7 to have it's process running ?



Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 5
(3,616 Views)
Yes you can do that all you have to do is have a qued state machine type architecture. And using the event structure.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 5
(3,606 Views)
If the events need to be able to fire truly independently, even while one long event is already executing, you need to make multiple event structures and place them in their own independent while loops.
0 Kudos
Message 3 of 5
(3,598 Views)
If possible could you post a simple example ? I tried to have two while independent while loops, each containing an event structure. For some reason, I was not able to fire events at the same time.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 4 of 5
(3,587 Views)
Edit your event and make sure to uncheck "Lock front panel until the event case for this event completes", else you won't be able to do much.
 
Attached is a simple example using two event structures. (All that said, maybe there is a better solution than using two events, just re-think your code). 🙂
Message 5 of 5
(3,580 Views)