There are so many things wrong with your VI....
- The way you have structured your VI, the event structure will only happen once and then your application will exit. Almost 100% of the time you will want a while loop around the event structure so it will execute multiple times.
- Look at some LabVIEW examples about how to use the event structure properly.
- LabVIEW will lock the front panel while the event structure is executing - you shouldn't put long-running tasks inside an event structure for this reason.
- I think there are some caveats/issues around registering for the same static event in multiple event cases (only one of them will receive the event).
- Tidy up your VI - you have wire bends everywhere, hidden wires, wires going backwards.
- Your VI is probably prone to lots of race conditions. Learn about DATAFLOW!
LabVIEW Champion, CLA, CLED, CTD
(blog)