Example Code

Wait on All Notifiers in LabVIEW

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 to implement waiting for notifications from multiple processes. 

 

Description

There is a function inbuilt which allows the developer to wait for multiple notifiers, however this will return when just one notification from the array is received. We can adapt this as follows to make a "wait on all".

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the program.
  2. Note how the iteration counts for both blocking and non-blocking implementations increase.
  3. Click the Send Notifications button.
  4. Note that both loops exit when all notifiers have been sent.

 

Additional Information or References

capture.JPG

 

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

 

Ian S
Applications Engineer CLA
National Instruments UK&Ireland

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