aart-jan Posted October 24, 2005 Report Share Posted October 24, 2005 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! Quote Link to comment
Michael Aivaliotis Posted October 25, 2005 Author Report Share Posted October 25, 2005 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? Quote Link to comment
aart-jan Posted October 25, 2005 Report Share Posted October 25, 2005 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. Quote Link to comment
Phillip Brooks Posted October 26, 2005 Report Share Posted October 26, 2005 See the online help: Generate Occurence Details Note National Instruments encourages you to use the Notifier Operations functions in place of occurrences for most operations. Quote Link to comment
aart-jan Posted October 27, 2005 Report Share Posted October 27, 2005 I know that NI prefers notifiers, but that is irrelevant to my posting. Can you add a link to the document you are referring to? Quote Link to comment
WMassey Posted October 27, 2005 Report Share Posted October 27, 2005 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 Quote Link to comment
aart-jan Posted October 28, 2005 Report Share Posted October 28, 2005 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? Quote Link to comment
jpdrolet Posted October 28, 2005 Report Share Posted October 28, 2005 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.