02-11-2014 09:05 AM
Hello,
attached is the screenshot of notifier communication. A NotifierSend.vi sends a boolean notifier (True), A receiver traps it in two loops.
I am getting the notifier indication properly in receive vi, but if I insert a "release notifier" after sending the notifier in NotifierSend.vi the receiver sometimes flashes error 1122, indication the notifier referance was destroyed when it was waiting.
I just want to confirm if this is the right way of using notifiers. do we have to release the referance to notifier anytime?
I am going to use it to execute two blocks in the receiver when ever the notifier is received.
02-11-2014 10:29 AM
Hello,
Here is an example for using notifiers...
> Master loop : send notifications
> 2 slave loops : receive notifications ; each slave loop exits on error when notifier is destroyed (when you stop application)
J.
02-11-2014 10:39 AM
[...] do we have to release the referance to notifier anytime?
When you're all done with it; typically as the application gets shut down.
02-11-2014 11:57 AM
I just want to confirm if this is the right way of using notifiers.
I would really hesitate to confirm that is the right way. I fact, I would say that that way shows that you missed something basic about using functions on the synchronization pallatte.
Go back through the shipping examples on queues and notifiers.
As an aside- You really should use the error chain to enforce dataflow rhater than those Flat Sequence Structures- Trust me you'll eventually thank me for telling you that.
02-11-2014 08:45 PM
Hi Julien,
I am using version 8.6. Could not open your file. caould you post a version 8.6 vi or a screenshot? thanks a lot. I have moved the obtain notifier from inside the loop.
02-11-2014 08:47 PM
Hi Jeff,
I have moved the obtain notifier from inside the loop. thanks.
the name was intended for labview forum. I do use more meaningful names in my code, like any other sensible programmer.
02-11-2014 08:57 PM
Also,
what exactly is 'ignore previous' in "wait on notification" vi?
02-11-2014 08:57 PM
Also,
what exactly is 'ignore previous' in "wait on notification" vi?
02-12-2014 02:29 AM
Here is the example for LV 8.6.
About "ignore previous" option, I strongly recommend having a quick look at function help. If I had to explain it, I could not do better than copying it... 😉 (unfortunately my LV is in french, so it will not help you ^^ )