LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to value signal a menu selection(user) event

Solved!
Go to solution

Hi

1.I want to value signal a menu selection(user) event in the first frame of sequence structure,a vi and its run time menu is attached.kindly solve my problem.

2.can we use set menu item info function in an event other then menu selection(user).

Thanks

0 Kudos
Message 1 of 3
(3,091 Views)

You can't programmatically trigger menu selection event, they can only be triggered by menu selections. If you want something to happen in response to a data input you need to use a user event. Now if that operation happen to be the same thing as a menu selection, you have two options. You can either duplicate the code in both the menu selection and the user event (not a good idea) or have the code that performs the action in the user event and have the menu selection also fire the user event.

 

Mike...

 

PS: You mention sequence structures. I haven't looked at you code but I can tell you that well-designed code never needs a sequence structure. In fact sequence structures add unnecessary complication and increase the liklihood of errors and inefficiency.

Message Edited by mikeporter on 12-22-2008 08:07 AM

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(3,083 Views)
Solution
Accepted by topic author tanzeel10@gmail.com

If you want to execute that code unconditionally as a first step, you don't need an event structure. That would make no sense at all, just do the following:

 

 

Just use plain old dataflow instead of a sequence. Use the error out to enforce execution order (not shown).

 

 

 

(btw: your file question.zip is not a zip file. To open it, we need to rename it to question.rar first. Is there a reason why you changed the extension???)

Message Edited by altenbach on 12-22-2008 05:29 AM
0 Kudos
Message 3 of 3
(3,075 Views)