12-19-2012 01:09 PM
IS there any function that allows you to stop the mainvi's execution via the subvi i.e. stop the running of the program entirely?
Thanks
12-19-2012 01:57 PM
Yes, it can be done. There are various ways to do it (pass a control refereence to the subvi, use a Functional Global, etc.) Please give us some more details about your specific situation.
12-19-2012 02:06 PM
There is no generic function for doing that, except the Quit LabVIEW node and it shutsdown LabVIEW completely. That will work, but like a friend of mine once said:
"You can sucessfully stop you car by running it into a tree -- but there can be unintended consequences..."
The problem is that if you quit LV in a subVI there is no orderly shutdown, execution stops immediately. And depending upon what your code is doing this can be a Very Bad Thing.
What exactly is it that you are wanting to accomplish? How is the program in question structured?
Mike...