A global variable will work. You could also use an occurrence or one of the
other synchronization functions. If you start the sub-vi with VI Server,
you can also stop it by passing a value via VI Server.
"greg" wrote:
>>I do not believe that a local variable connected to a boolean in the main>program
can be used inside the sub-vi. What I have is my sub-vi running inside>a
while loop, and the sub-vi's output is a true or false and it only outputs>the
true or false when it is done executing. So, i have had trouble stopping>it.
>>"Nico Zalbertus" wrote:>>>Can you use a
local variable of the boolean switch or are there any reasons>that>you can't
use them?>>"greg" wrote:>>>Hello,>>How
can I>stop a sub-vi
from running with a boolean switch, located>in my>main program