ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically enabling/disabling items in a custom run-time menu

Hi, is it possible to disable certain items within a customized run-time menu? For instance if I had a daq application with a run-time menu:
File>>Start logging
>>Stop logging
>>Save Test

Whilst the application was logging can I disable the 'Save Test' and 'Start Logging' menu items in the run-time menu but still have the 'Stop Logging' menu item enabled and active?

If this is possible can you tell me how?

Cheers
Bruce
0 Kudos
Message 1 of 3
(3,044 Views)

Hi Bruce,

you can use the "Set Menu Item Info" function to do it. If you set the "activate" input to false then the entry is disabled.

Mike

0 Kudos
Message 2 of 3
(3,043 Views)
Right, that was easy... 

Thanks Mike!

Cheers
Bruce
0 Kudos
Message 3 of 3
(3,040 Views)