From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lost Notifications waiting for multiple notifications

Solved!
Go to solution

Dear Community,

I have the following problem:

I obtain a dynamic number of notifications and send the reference to different queues and then wating with the "wait for multiple notifications" function of the notifications. The queues handle data and put them back to the calling vi with the notifier reference. When I activate the highlight function in the calling vi, that obtain and waiting for the multiple notifications the "wait for multiple notifications" collect all notifications and return an array of the notifications.

 

Now the problem:

When the program executes with deactivated highlight function the "wait for multiple..." VI only return one of the notifications.

 

The Important Points of my question is that I create a dynamic number of notifications and that I need all notifications and after execution the vi should stop execution.

 

With kind regards

Sönke

0 Kudos
Message 1 of 5
(2,818 Views)

Soenke,

 

you are seeing expected behavior. Please read the help for "Wait on Notifications from Multiple":

Waits until at least one of the notifiers you specify receives a message.
When one of the notifiers receives a message, this function continues to execute.

 

The reason why it seems to work in highlight mode is because it greatly slows down execution speed for the highlighted code. That way (when all the send notifications are NOT highlighted) you have all these threads sending their notification before the slowed down code "collects" them.

 

EDIT: From the sounds, you are more likely looking for Rendezvous....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 5
(2,788 Views)

If you need all notifications to be acted on, you really should just use a single queue.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(2,780 Views)

Dear Crossrulz,

Your Idea was the way to the solution.

Thank you very much for your support

0 Kudos
Message 4 of 5
(2,753 Views)
Solution
Accepted by topic author Soenke

The solution was to obtain a queue and get the reference to the queues, that produces the data. The queue that produces the data check the number of counts and if all data are collected the queue fire an event to kill the vi and get the data back to the calling vi

0 Kudos
Message 5 of 5
(2,751 Views)