Jump to content

Handling menu and value change in a single event case


ianalis

Recommended Posts

Hi!

I want to have an event case triggered by a button click (via Value Change) and a menu item selection. I selected Menu Selection (User) to handle the menu selection and used Get Menu Selection to check the menu item selected. The event case is indeed triggered by Value Change and Menu Selection (User) when I ran it but the item tag and item path are both empty. The Get Menu Selection is wired to Current VI's menubar.

Any ideas?

Link to comment

QUOTE (ned @ Nov 9 2008, 09:36 AM)

In case anyone else takes this approach, I just learned something from experimenting with it a bit more - the user data type does not need to match the actual event data type exactly. The user event data cluster can contain only a subset of the elements in the real event data, in which case LabVIEW will only allow you to access the ones that overlap. In my example above I could leave out "CtlRef" in which case the value change event would no longer have access to the control reference but the rest of the data will still be available.

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.