Jump to content

occurence events


Recommended Posts

I am struggeling to find the best way to deal with occurences. Especially the wait on occurence is a pain. It requires a while loop and only detects an occurence when waiting on one. Occurences seem to have something in common with.. event structures, and oh, wouldn't be nice if there was something like an "occurence event." I know I could register an occurence as a user event, but what's the use of that? What I would like to see, is an occurence event!

Link to comment
I am struggeling to find the best way to deal with occurences. Especially the wait on occurence is a pain. It requires a while loop and only detects an occurence when waiting on one. Occurences seem to have something in common with.. event structures, and oh, wouldn't be nice if there was something like an "occurence event." I know I could register an occurence as a user event, but what's the use of that? What I would like to see, is an occurence event!

Have you tried notifiers or queues? What is your opinion on that?

Link to comment
Have you tried notifiers or queues? What is your opinion on that?

occurences, notifiers and queues all have the global scope and are not tied to dataflow. For notifiers counts the same as occurences: why does the event structure not handle notifier events? It would be a great alternative for the wait on occurence/ notifier functions. I know the event structure is mostly meant for user (front panel) events, but NI has not been limiting it to just that.

It is not so much that I can't solve my coding problems, it just seems to me that implementation would become more eloquent and simple. Maybe they could develop a new structure for this; like a case structure that can process programmatic events of various kinds.

Link to comment
Can you add a link to the document you are referring to?

Start -> Programs -> National Instruments -> LabVIEW 7.1 -> LabVIEW -> Help -> VI, Function & How to Help ... -> Index -> (Type in the keyword to find) -> Generate Occurrence -> click "Generate Occurance" -> look in the right lower pane -> read :P

Link to comment

Okay, but what is your point? My suggestion in this thread is to have a notifier/occurence structure or a way to make an event structure act in stead of the wait on occurence function. Since they have a global scope, I do believe it is possible. Does this suggestion make any sense?

Link to comment
Okay, but what is your point? My suggestion in this thread is to have a notifier/occurence structure or a way to make an event structure act in stead of the wait on occurence function. Since they have a global scope, I do believe it is possible. Does this suggestion make any sense?

You can achieve the same functionality using user events. Create and register a user event to an event structure. Every time you'll invoke Generate User Event (instead of generate occurence) the event node will awake and receive the data. Indeed there could be a mechanism to register an occurence to an event structure but since occurences are rather obsolete and that user events do the job and are more versatile, I don't see the necessity of that feature.

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.