LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling VI from inside the Sub-Panel

I have a prog which is used as the Main prog and has a sub-panel in it,whenever an event is occured iam popping up an VI,which should be inside the sub-panel,when i press the stop button which is inside the sub-panel,the vi should stop
0 Kudos
Message 1 of 2
(2,533 Views)
And what is the problem....?;-)

Sub-Panels just show the front panel of the VI you choose to show. When the event that should show a certain VI fires just make your code so that it will run the VI in question...and then set the sub-panel to show that VI. In the VI you need a button and code that will make the VI run until the button is clicked.
That's it.

Now you may the VI or multiple VIs to run in parallell, or you may want to send a stop message to the main VI from the VI in the sub-panel when the button is hit...For the first problem, call the VIs using an invoke node and the wait until finished set to false. For the latter problem use e.g. a functional global, que, event, occurance or a notifier.

If there's a patricular part of this design that you h
ave a problem with, let us know. If you can upload example VIs we can edit to show the behaviour you need, include those.

Mads
0 Kudos
Message 2 of 2
(2,533 Views)