Jump to content

User Definable Events


Recommended Posts

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.

Link to comment

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

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.