LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to activate programatically inserted standard menu items in zScale context menu?

Hi,

 

I want to have a different context menu for an intensity graph and its Z scale. This work fine if the standard menu is keept but problems appears as soon as the context menu is customized.

 

If the context menu of an intensity graph is customized, this menu is taken also for its Z scale. I work around this feature, and programmatically modifiy the context menu when user click on Z scale. So far so good. BUT I introduce for this programmatically customized context menu some standard items such as APP_SC_ADD_MARKER, and when user select those standard items, nothing appends. I mean, that the item is readed, but in that example no marker is added on the Z scale from the run time engine. Where is my error?

 

Please find the test VI enclosed.

 

Thank you for tips!

0 Kudos
Message 1 of 5
(3,414 Views)

Hi aleveque,

 

once you modify the run-time menu, you have to handle the events in your program:

 

From the LabVIEW Help:

"After you customize a run-time shortcut menu statically or programmatically, you must configure an Event structure to handle each menu item in the custom menu."

 Regards,

 

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 2 of 5
(3,380 Views)

Hi Andreas,

 

It ist right, but it means, that standard event such as ADD_MARKER should have to be programated "per hand". I expected that LV perform standard tasks without new programation of developer. I am agree, I should configure my Event structure to handle user customized menu items, but if I programmatically introduced STANDARD items, I am surprised, I should also handle these events!

 

Regards,

 

Adelina

0 Kudos
Message 3 of 5
(3,374 Views)

Hi Adelina,

 

from my perspective you shouldn't have to program these functions manually, but unfurtunately thats the way it is right now.

 

Here is the link to the product suggestion center:

http://digital.ni.com/applications/psc.nsf/default?openform

 

Please leave a request there. The more people put in a request the more likely it gets it will be implemented in an upcoming LabVIEW version.

 

Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 4 of 5
(3,371 Views)

Hi Andeas,

 

I will do it. 

 

Thanks.

 

Adelina

0 Kudos
Message 5 of 5
(3,365 Views)