An Event Structure is useful for User Interface focused VIs which expect interaction from the Operator on a Front Panel. Dynamic User Events, which are covered in the LabVIEW Core 3 course, are able to generate user events programmatically, and are often a good way to get data back into the Event Structure.
With this example, we can see how to generate a Dynamic User Event from any VI on the same PC as the main VI with the Event Structure. This is achieved by Registering and Generating Events from within a Functional Global Variable (FGV) called in all the relevant VIs. Screenshots of the code within the FGV are below:
Attached is a ZIP file which contains the FGV as a Sub VI, as well as a complete Example Project with two VIs. To operate the example:
Unzip the files to a preferred location.
Open the LabVIEW project file.
Open and run the 'Main VI' first.
Then open and run the 'Other VI'.
Notice that three methods of causing an event of are possible (via the Main VI, the Dynamic Event in the consumer loop, and the FGV from the Other VI.