Example Code

True Event-Driven Global Variable Example

Code and Documents

Attachment

It is always nice to have true event-driven architecture:

Event-Driven Global.png

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...

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors