Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Creating User Events

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

You can create and name your own events, called user events, programmatically to carry user-defined data. Like queues and notifiers, user events allow different parts of an application to communicate asynchronously. You can handle both user interface and programmatically generated user events in the same Event structure.

Complete the following steps to create a user event.

  1. Place the Create User Event function on the block diagram.
  2. Wire a cluster to the user event data type input.
Note  LabVIEW uses owned labels to identify data the user event carries, so label each element of the input with a descriptive owned label.
  1. Dynamically register the user event.

Use the Generate User Event function to broadcast the user event and the Destroy User Event function to destroy a user event reference.

Refer to the Programmatically Fire Events VI in the labview\examples\general\dynamicevents.llb for an example of using user events.


Resources


 

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