Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated

Wait on Notification from Multiple Function has Unexpected Behavior when Ignoring the Previous Input



Primary Software:
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I'm receiving additional notification from Wait on Notification from Multiple function. It looks like the ignored notifications get caught again. Why is this happening?

Solution:
The Wait on Notification from Multiple function differs from the Wait on Notification function primarily in that the Wait on Notification from Multiple function takes in an array of notifier references. Therefore, a single function can be used to wait for any number of notifiers.

There is another more peculiar difference. The Wait on Notification from Multiple function behaves differently than the Wait on Notification function when the ignore previous input is set to TRUE. If you call a Wait on Notification from Multiple in a loop and you set the ignore previous input to TRUE, the Wait on Notification from Multiple function will not catch any notifications that were sent between the creation of the notifier and when the Wait on Notification from Multiple function was called. If in the second iteration of the loop, the ignore previous input is toggled to be FALSE, the "ignored" notification will get caught once again, which is an unexpected additional notification.



Note: If you want to achieve the Wait on Notification behavior with the Wait on Notification from Multiple primitive, one possibility is to save a millisecond tick every time you set notifications and then use the same tick to confirm the Wait on Notification from Multiple Function VI is returning a fresh notification.

Related Links:
LabVIEW 2009 Help: Wait on Notification from Multiple Function


Attachments:






Report Date: 06/14/2010
Last Updated: 11/01/2010
Document ID: 5ADB14PJ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit