LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want my application to have a main menu(vi) and few sub.vi opened depending on

state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running uder windows 98I want my application to have a main menu(vi) and few sub menu(sub.vi) opened depending on state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running under windows 98
0 Kudos
Message 1 of 7
(3,053 Views)
state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running uder windows 98Well, there are several way of doing this.
One of the easiest way is
In your main vi,
make one case structure (true and false case). And Place your "sub vi" inside your case structure
(let say you put your sub vi inside true case).
Next step,
Develop your "sub vi" and modify your "sub vi" properties.
Under Properties: make your "sub vi"
"show front panel when called"
and "close afterward if originally closed"
you can do it under "vi properties" --> "window appearence" and "customize"
see attach and comments
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 2 of 7
(3,053 Views)
state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running uder windows 98Hello all,

This is a great example. However, I just wanted to emphasize that the front-panel booleans used for this purpose should be latch-action to avoid an endless loop. Just a bit of advice!

Happy coding,

Liz F.
National Instruments
0 Kudos
Message 3 of 7
(3,053 Views)
state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running uder windows 98Thanks for your advice, Liz F.
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 4 of 7
(3,053 Views)
state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running uder windows 98Dear Mr.Nayisoe,
Thanks for yor reply. The code you you have attached could not be opened as the error pops up to say the vi version(6.1) is newer than 6.0. But I myself tried as per your suggestion. But the front panel just pops and closes. Just flickers.

Actually I want a sub vi's front panel to open depending on the status of a switch in the main.vi. The sub vi should run and a boolean swtich like EXit in the front panel of the Sub Vi on being pressed should close the sub vi front panel and return to the main vi. In fact it is required to run the sub vi by the switch in the main vi and stop the sub vi by the switch in the sub vi's front panel. Pl comment
thanks
0 Kudos
Message 5 of 7
(3,053 Views)
state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running uder windows 98"Hello
(1)Place your "sub vi" inside your case structure inside your main vi
(2)The control for sub vi's is a switch in the main.vi
(3)Then in the main vi right click the mouse on sub vi and you will get an option for "Sub Vi node setup" Click it on and you will have a options to make, click this two option given below
"show front panel when called"
"close afterwards if orginally closed"
(4)Whenever the main vi switch becomes true it will go inside Sub vi and executes and comes out when execution is over
Check the main.vi which i am sending
Regards
mathews.j@consultant.com
0 Kudos
Message 6 of 7
(3,053 Views)
state of few controls in the main menu. After finishing execution of the sub.vi, an exit button in the front panel of the sub.vi should bring back to main menu and of course the sub.vi should disappear. How to do that in labview 6i running uder windows 98I re attached the file.
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 7 of 7
(3,053 Views)