CraigGraham Posted March 16, 2004 Report Share Posted March 16, 2004 I'm in the habit of using queues and occurrences to communicate between different parts of an app- typically just using a handful of occurrences for simple things such as shutdown (since if a VI reads an occurrence for this it's much more portable than if it reads a global). One advantage of events is that they are non-polling. I've always assumed this has always applied to occurrences and queues. Does anyone know for sure that these are non-polling? If not, user defined events may now be a better option. Quote Link to comment
Jim Kring Posted March 16, 2004 Report Share Posted March 16, 2004 Craig, Queus, Notifiers, and occurrences are all non-polling, unless you set the timeout to something other than "-1". Same thing with the event structure, which also has a timeout. The trick is to make the consumer of your event non-polling (with an infinite timeout) and then destroy the queue/notifier or send a user-defined "exit" event to the event structure get it to return/execute so that you can shutdown. Regards, -Jim Kring 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.