LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

menu

hello,
I would like to do a menu. I did it with a structure sequence, I call an sub VI while pressing on a button and I would like that from sub VI one can return to the menu. How could I do? thank you
0 Kudos
Message 1 of 10
(4,403 Views)
You might want to try using a state machine instead of the sequence structure.  That way you dont have to move linearly as in the sequence structure, you can go to different points, aka jump back to the menu from the subVI.

Kenny
Kenny

0 Kudos
Message 2 of 10
(4,391 Views)
I would suggest looking at a standard event structure inside a while loop framework. Check the LabVIEW examples on doing events.
0 Kudos
Message 3 of 10
(4,386 Views)
thx, i made a mistake becuz i said a structure sequence whereas i did an event structure.
0 Kudos
Message 4 of 10
(4,381 Views)
Then your question is a bit unclear. It sounds like you're saying that when you select a menu item you respond to it by launching a subVI, and you want to keep that subVI running while being able to still respond in your main VI. Is this correct? If this is the case you need to use the VI Server to launch the subVI dynamically so it spins off on its own and you're returned to your main VI. If this is not the case please explain your problem more clearly, or better yet, post your VI or a simplified example.
0 Kudos
Message 5 of 10
(4,377 Views)
I repeat better my question. I did a menu with an event structure and when i press a button a sub vi appear. Then i would like to have on my sub vi a button to return to the main menu. i wish that it's enough comprehensible.
0 Kudos
Message 6 of 10
(4,372 Views)
OK...  Now it sounds like you just want to know how to make a suVI with a loop that acts like a popup. As for this, there are examples that ship with LabVIEW to show you how to do this. Attached is a simple example.
Download All
0 Kudos
Message 7 of 10
(4,360 Views)

Thx a lot smercurio…   🙂

It's nice, it's what I was searching for ....

0 Kudos
Message 8 of 10
(4,143 Views)
hey im using lab VIEW 7 so that i can able to see this sample... hey my problem is , how to make a vi call when we clic the menu. that is how to configure when click the menu item to open a corresponding vi, how i can implement in a event. because no contrl im using then how to select a particular vi for a particular menu item. plz explain as quick as possible
Thanks and regards
Jagan
0 Kudos
Message 9 of 10
(3,884 Views)
Open the example finder and go to the Search tab. Enter 'menu' as a keyword. There are a couple of example VIs - both with and without events.
0 Kudos
Message 10 of 10
(3,834 Views)