Example Code

Programmatically creating events.

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 how this can be implemented to send data from the consumer loop back up to the producer.


Description: It is possible to create and name your own events to carry user defined data. Similar to queues and notifiers, user events allow different parts of an application to communicate asynchronously. The following example shows how this can be implemented to send data from the consumer loop back up to the producer.


Requirements: LabVIEW 2012 (or compatible). Hardware: none.


Steps to Implement or Execute Code:

1. Run the VI.
2. Click Go.
3. Look how it is.


Additional Information or References: 

 

Programmatically creating events FP.png

 

Programmatically creating events BD.png


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

 

Ben L
Field Engineer
National Instruments

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