08-25-2014 11:05 AM - edited 08-25-2014 11:07 AM
I have ~90 indicators that I need to change the runtime menu of. Is there an easy way to do this all at once? I can't think of one, but figured I'd ask.
Thanks,
-M
Edit: To clarify, they are all being changed to the exact same menu.
08-25-2014 02:33 PM
I actually expected this to be quite easy with LabVIEW Scripting, but I couldn't find the functions needed. Here is a post a while ago that basically said you can't.
http://forums.ni.com/t5/LabVIEW/scripting-control-run-time-menu-file/td-p/1257590
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-25-2014 03:09 PM
Thanks for the response. I played around with it (taking me longer to do than it would have if I had just sucked it up and set the menu 90 times...) and didn't find anything in scripting either. About the only way I could do it was: make one control a "strict type def". Duplicate it. Change the typedef in to normal so that you can do things like change indicator color... The shortcut menu was saved. Kind of a roundabout way to do it.
08-25-2014 03:31 PM
Are all these controls on the same Front Panel? You could have them all handled in the same event case with "Shortcut Activation?" and then make the menu based on which control was modified. You could even do this dynamically by registering for the Shortcut Activation menu for all controls on the front panel, or all controls that match a regular expression for the label name.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord