I've attached one way. The subVI has a while loop with a stop button. The stop button is wired to the connector pane. When a true is wired to the subVI, it will execute once. If a false is wired (or no constant connected), the subVI will run until the user clicks the stop button. In the main VI, I set the subVI Node Setup (right click on subVI) to Show Front Panel When Called and Close afterwards ir originally closed so that the subVI's front panel will show only when the user clicks on the Open subVI button.