Dynamically Modifying Event Registration

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2014 Help
LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help

If you register for events dynamically, you can modify the registration information to change when LabVIEW registers events and the objects for which LabVIEW generates events. For example, you can dynamically register for a Mouse Move event on a front panel control, and you can modify the registration so that LabVIEW generates this event only if the user clicks a certain button first.

Note Note  You cannot modify statically registered events at run time.

Complete the following steps to modify registration information:

  1. Create a placeholder for the event you want to occur only under certain circumstances.
  2. Design an event case to specify when you want LabVIEW to register for the event.
  3. Unregister for the event before you unregister for all events.

Examples

Refer to the labview\examples\Dialog and User Interface\Events\Events.lvproj for examples of dynamically registering events.

WAS THIS ARTICLE HELPFUL?

Not Helpful