Note If you build a VI that contains an Event structure using the LabVIEW Full or Professional Development Systems, you can run that VI in the LabVIEW Base Package, and LabVIEW retains the Event structure functionality. However, you cannot edit the Event structure in the LabVIEW Base Package.
Complete the following steps to configure an event.
Select the Event structure located on the Functions»Structures palette and drag out an area on the block diagram.
Right-click the Event structure border and select Edit Events Handled by This Case from the shortcut menu to display the Edit Events dialog box. By default, the Event Source and Event sections at the top of the dialog box contain <Application> and Timeout, respectively.
Click the + to add an event to the current case. Click the X to remove the selected event. When you click an item in the Event Source section, the Event Sources and Events sections update to highlight the selected items.
In the Event Sources section, select the class type, such as Application, VI, or Control. If you do not have any control terminals on the block diagram, the Controls section is dimmed.
Select the type of event you want to configure for the source you selected, such as Key Down, Timeout, or Value Changed. When you select or deselect items in the these sections, the Event Source section updates accordingly.
Note If you configure the same event, such as Key Press, on a control and a VI, the event occurs on the VI first and then occurs on the control.
Click the OK button.
Refer to the examples\general\uievents.llb for examples of using events.