10-05-2007 05:17 PM
Hi,
I developed an application based on an event structure. Almost all the events are fired when their corresponding controls are modified. I’d like now to alternatively fire an event by selecting an item in the run-time menu.
In the ‘Menu Selection with Events.vi’ example the selection of any item in the run-time menu fires the event 0 (specifier menu selection (user)). Inside that event 0 according to the item a function is executed.
Is is possible to point out to another event instead? Or is possible to add the selection a menu item (or sub menu item) to fire an event that is usually fired when a the value of a control changes?
I enclose a VI and its .rtm file (LabVIEW 8.0)
Thanks,
Charly
10-08-2007 04:40 AM
10-08-2007 07:30 AM - edited 10-08-2007 07:30 AM
Message Edited by Gabi1 on 10-08-2007 02:31 PM
10-08-2007 08:10 AM
10-08-2007 12:31 PM
Hi Wiebe and Gabi1,
It's nice to read your posts.
I updated my code as you guys advised me. I defined one case (into a case selector) per menu item. Each case reads the value of the corresponding control and writes the same value as previously. You are right Wiebe it doesn't do anything but it is clever and it triggers the control.
That trick doesn't work with latch booleans so it's necessary to change the mechanical action of the control for a swichting boolean. Then it needs to reset the switching boolean value to get the behaviour of a latch boolean.
It works great thanks!
Charly