__Karol Posted September 28, 2012 Report Share Posted September 28, 2012 How to prevent to start asynchonously sub.vi each time I push Boolean Button. In case when I push Button and sub.vi is working nothings happend, but when I close sub.vi next sub.vi opens. main.vi Sub.vi Quote Link to comment
egraham Posted October 1, 2012 Report Share Posted October 1, 2012 Karol, Are you wanting to open the subVI front panel if it's already running? If so, you need to use the reference to the subVI to check its state so that you don't try to start it asynchronously if you've already started it. Rather, you would just open the front panel of an already running VI. When you use the stop button on the subVI you can start it again from your main VI, but closing the front panel of the subVI leaves it running... so you can't start it again since it's already running. You can override the panel close of the subVI using an event structure (see attached). Or you can leave it running if that's the desired behavior and just open the front panel. Like I said, you have to check its state before you decide if it needs to be started or if you just need to open it's front panel. Regards, Eric Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.