Skip navigation


Currently Being Moderated

Generate Dynamic User Event from another VI

VERSION 2  Click to view document history
Created on: Feb 24, 2012 6:51 AM by gt3000 - Last Modified:  Oct 8, 2012 9:53 AM by gt3000

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:

Register Event.png

Fire Event.png

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:

  1. Unzip the files to a preferred location.
  2. Open the LabVIEW project file.
  3. Open and run the 'Main VI' first.
  4. Then open and run the 'Other VI'.
  5. 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.
Comments (5)