It is always nice to have true event-driven architecture:
Top Level VI -> Event-Driven Global.vi
Simple concept, couple caveats:
Global VI need to have front panel opened -> no problem let's hide it
Upon exit we need to bring it back from hidden place
All the rest should be clear.
-Artur
P.S. Any errors problems, let me know.
For more advanced users:
Add VI Server programming and you getting true "Global" variable (over network) with Event-Driven architecture...