01-25-2017 04:07 PM
I am trying to make a drop down menu that will display a list of values. The menu will be updated based on the parameters of another array.
Solved! Go to Solution.
01-25-2017 06:50 PM
Im not totally sure what youre trying to do, but i believe one option is an enum and you can update the values using property nodes.
01-25-2017 10:07 PM
Not an enum which has all of its items defined during edit time because the strings are compiled into the definition of the control.
You want either a menu ring or a text ring. There you use property nodes to define the strings and values programmatically during the operation of the VI.
01-25-2017 11:12 PM
Thanks for the correction ravensfan. After posting that I did question if that was right. I should've checked up on it.
01-26-2017 08:13 AM
If you are referring to a shortcut menu, you can right click a control -> Advanced -> Runtime Shortcut Menu -> Edit...
Change it to a custom menu and save it to the control. And then in an event structure, you can create a filter event (the ones with the question mark) for "Shortcut Menu Activation?" (note the question mark).
And then within that event, you will get a reference to the menu, which you can use to update the values and tags before the menu is displayed to the user.