Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Dynamically Modifying Event Registration

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit