Example Code

User Event Example

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview
This example shows an introduction to user events.
Description
This example also shows that events can be registered for more than once and that the data stream for each registration is queued. 

One of the advantages of the User Event feature over the Queue Operations feature is that events that are generated can be handled by multiple event handlers/listeners.

The disadvantage of the User Event feature compared to the Queue Operations feature is that there is no way (that I could find) to determine how many events are still in the event queue waiting to be processed. 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open " Event Demo Two Event Processors 2012 NIVerified.vi"
  2. Run the program

 

Additional Information or References
VI Block Diagram

 5-206.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Petru.T
NI Employee (retired)
on

Very useful and well written. Thank you