LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EXITING A SUB VI

I HAVE MANY SUB VS IN MY MAIN VI, AND I WANT TO BE ABLED TO CLICK ON A BUTTON ON MY MAIN VI FRONT PANEL AND OPEN THE FRONT PANEL OF THE CHOSEN SUB VI.  WITHIN MY SUB VIS I HAVE WHILE LOOPS SO WHENEVER I AM DONE WITH MY SUB VI AND IS READY TO CLOSE IT DOESN'T.  I ATTACHED ANOTHER WHILE LOOP AROUND MY WHOLE SUBVI AND ATTACHED A STOP BUTTON TO IT, BUT WHEN I PRESS IT WHENEVER MY SUB VI IS RUNNING IT DON'T STOP, IT JUST KEEP RUNNING.  WHAT ELSE CAN I DO TO CLOSE MY SUB VI WHEN I AM DONE USING IT AND RETURN BACK TO MY MAIN VI FRONT PANEL WHILE KEEPING MY MAIN VI RUNNING?  I ALSO TRIED GOING TO VI PROPERTIES AND SELECTING OPEN SUB VI WHEN CALLED, AND CLOSE AFTER EXECUTION BUT IT STILL DOESN'T CLOSE.   WHAT ELSE CAN I DO?
 
0 Kudos
Message 1 of 2
(2,122 Views)

Post one of your subVIs. A subVI with a while loop will stop whenever the conditional terminal receives the correct Boolean value. If you have a stop button in the subVI, make sure it's inside the while loop or you have the correct event to handle it.

AND STOP SHOUTING.

Message 2 of 2
(2,114 Views)