LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get notifier status vs. wait on notification functions

Solved!
Go to solution

 Hi there,

 

I have just this doubt about receiving notifiers. In most of the examples I found, they used wait on notification for receiving the sent notifier, but I also found that get notifier status function gives you the last receivied notifier(same as wait on function) . In this last case,  I presume it only shows which notifier was received but will not received any notifier. is it so?

 

I compared using both and I can say it looks like that's the difference.

 

I just want to clear that doubt, and get any further details if you have.....thanks

0 Kudos
Message 1 of 2
(4,583 Views)
Solution
Accepted by topic author Stavrosyt

@Stavrosyt wrote:

 Hi there,

 

I have just this doubt about receiving notifiers. In most of the examples I found, they used wait on notification for receiving the sent notifier, but I also found that get notifier status function gives you the last receivied notifier(same as wait on function) . In this last case,  I presume it only shows which notifier was received but will not received any notifier. is it so?

 

I compared using both and I can say it looks like that's the difference.

 

I just want to clear that doubt, and get any further details if you have.....thanks


From the help of the Get Notifier Status: "latest notification is the most recent uncancelled notification sent to the notifier. If no notification is available, the function returns the zero value for the element data type you wired in the Obtain Notifier function."

 

So it shows the "last sent notification", and not the "last received" one to be precise. So it does receive the notification.

 

 

edit: and be very careful when using Notifiers in LabVIEW. They have a good place to use in certain conditions, usually when you only care about the latest notification/information, and if it is not a problem if some commands are lost. This is a single-to-many communication.

If you need to send commands/data where it is very important that every single one will arrive where it should, use Queues or User Events.

 

edit2: also some readings here: http://forums.ni.com/t5/LabVIEW/User-Events-vs-Queues-vs-Notifiers/m-p/2395160/highlight/true#M74227...

0 Kudos
Message 2 of 2
(4,569 Views)