05-29-2009 12:35 AM
Hello Everyone i am beginer in Labview , i have developed one application in that i am facing one problem pls help me in sorting out . The problem is "How to Stop whole labview by pressing the stop button in the Sub VI "
Thanks & Regards
Nandisha
05-29-2009 01:02 AM
Hi Nandhisha,
There are different ways to do this. I am explaining two of them here,
1. Pass reference of boolean button which controls main vi's while loop in to the sub vi. When sub vi got stopped write a true value to the value property of the refnum that is being passed in. This will stop the main vi while the sub vi is being stopped.
2. Define a boolean global variable which can be written in the sub vi and can be read from main vi. So here also the main vi will be stopped when the sub vi is being stopped.
You can choose any one which is convenient for you.
MRK (CLAD)
05-29-2009 01:15 AM
05-29-2009 01:23 AM
05-29-2009 01:37 AM - edited 05-29-2009 01:40 AM
In Application pallete>>Exit Labview. Give true to exit LabVIEW to stop whole LabVIEW
05-29-2009 01:49 AM
Thanku Mr.Balaji but my requirement is something like these in calling vi i have not used while loop and when i press the stop button in the subvi's it should stop whole in the sense all the labview i,e. calling and called VI's
Thanks & Regards
Nandisha
05-29-2009 01:50 AM
Thanks & Regards
Nandisha
05-29-2009 01:54 AM
If it is the case and if my understanding is correct the scenario can be explained below,
The calling vi will automatically get stopped and come out of labview memory if it is not having while loop in it. And use the exit labview function in the sub vi to quit labview or otherwise pressing stop button itself will stop the sub vi..
05-29-2009 02:22 AM
05-29-2009 02:32 AM