Jump to content

Possible design for stateless notifiers


Recommended Posts

Inspired by these two threads:

http://lavag.org/topic/18657-notifiers-not-working-when-use-consecutive-create-notifier-vis-without-delay/

http://lavag.org/topic/4028-notifier-signals-missed/

 

I was wondering if I could create my own notifier that could switch between references without the history management. Here's what I came up with. I'm not expecting this to be very fast. I thought it was an interesting use case for occurrences.

 

Test Case:

cxAGkPS.png

Obtain Notifier

5EQjiKp.png

Wait on notification

SkiiaC6.png

I probably need a mechanism to check and retry if the "Latest Message Is Valid" flag is false after the "Wait on occurrence".

 

Send Notification

t8zpBrP.png

Edited by infinitenothing
Link to comment

I don’t think you an avoid a history recorded somewhere.  Your solution above won’t get notifications that occur between calls to “Wait on Notificationâ€.  Though if you were to keep a history of listeners in the Notifier structure (in contrast to the current LabVIEW Notifier that keeps a history of Notifiers in the Wait node), then this might be better, as the list of Wait nodes should be finite, in contrast to the potentially limitless number of Notifiers.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.