Jump to content

triggering an other vi's occurence


Recommended Posts

Hi,

in my main vi I open from a menu item an other vi (sort of dialog box (options)). If this vi closes a case structure should be executed.

I tried that with an occurence and a global occurence refnum, but the global occurence refnum in the main vi does'nt change if I change this refnum in the dialog box.

How could I do that?

post-2457-1122446552.jpg?width=400

post-2457-1122446562.jpg?width=400

post-2457-1122446574.jpg?width=400

Link to comment

I'm sure there are probably better ways than this suggestion--perhaps even your occurence might work if it was modified--this is just what comes to mind though.

You can obtain an event queue with a static name const. You can also obtain the same queue by using the same name in your second VI to queue events. The queue event handler would be in the main VI to handle the case for when your second VI closes.

Or you could use notifications. I believe they are the replacement for occurences.

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.