Jump to content

Parallel Event Structures Missing Event


Recommended Posts

I'm creating an application which has a relatively small main screen and switches between recording, playback, and several monitoring modes. My approach was to create a sub panel and swap out the front panels of several sub vis running in parallel. I've got an event structure in the main vi that will pass user events to the sub vi event structures to let them know when they're being displayed. Every sub vi event structure uses the same user event registration.

This works well... 95% of the time. Once in a while (I haven't found any consistencies, yet) a user event does not get handled. For instance, when the user clicks on the "New Recording" button on the main panel, the main panel's event structure generates a user event that should inform the 'new recording' sub vi to pop up the recording wizard. Once in a while.. no wizard. Another example (a more serious one) is when the "Exit" button is pressed, one of the sub vis will not exit. The particular vi which does not exit is not consistent--sometimes its the 'new recording' sub vi, sometimes its the 'status monitor' sub vi, and so on.

I've dropped in debugging scenarios which should alert me if there is an error that could be being dropped, but I haven't found anything so far. Is there something that could cause the user event to not be handled?

Thanks

Link to comment

QUOTE (El_Frito @ May 30 2008, 12:46 PM)

I'm creating an application which has a relatively small main screen and switches between recording, playback, and several monitoring modes. My approach was to create a sub panel and swap out the front panels of several sub vis running in parallel. I've got an event structure in the main vi that will pass user events to the sub vi event structures to let them know when they're being displayed. Every sub vi event structure uses the same user event registration.

This works well... 95% of the time. Once in a while (I haven't found any consistencies, yet) a user event does not get handled. For instance, when the user clicks on the "New Recording" button on the main panel, the main panel's event structure generates a user event that should inform the 'new recording' sub vi to pop up the recording wizard. Once in a while.. no wizard. Another example (a more serious one) is when the "Exit" button is pressed, one of the sub vis will not exit. The particular vi which does not exit is not consistent--sometimes its the 'new recording' sub vi, sometimes its the 'status monitor' sub vi, and so on.

I've dropped in debugging scenarios which should alert me if there is an error that could be being dropped, but I haven't found anything so far. Is there something that could cause the user event to not be handled?

Thanks

Post example to get better advice.

If you are using Filter Events then an earlier executing filter event could discard the event and therefore the other events will not be fired. Event are handled in the same order in which they are decalred.

Just want cmoes to mind.

Ben

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.