LMartin Posted March 23, 2011 Report Share Posted March 23, 2011 Hy guys, I just noticed one thing in my program, when a VI call an other VIs (Under-VIs). The calling VI runs when I quit by the stop button, then the calling VI continue his program. But when I stop by clicking on the red button (cross) on the title bar to stop my VI, It's not running anymore (Like it's still waiting for the called vi response) I've checked on window apearence, I whish I could keep it Modal in a first time, But How can I handled this kind of exiting an under-VI ? Thanks to all. Quote Link to comment
Rolf Kalbermatter Posted March 23, 2011 Report Share Posted March 23, 2011 Hy guys, I just noticed one thing in my program, when a VI call an other VIs (Under-VIs). The calling VI runs when I quit by the stop button, then the calling VI continue his program. But when I stop by clicking on the red button (cross) on the title bar to stop my VI, It's not running anymore (Like it's still waiting for the called vi response) I've checked on window apearence, I whish I could keep it Modal in a first time, But How can I handled this kind of exiting an under-VI ? Thanks to all. Simple: Disable the "Allow user to Close" setting in the VI settings dialog. More Involved: Add the VI->Panel Close? filter event to your event structure and pass TRUE to discard, but terminate your event handling loop anyhow to return to the caller. 1 Quote Link to comment
LMartin Posted March 29, 2011 Author Report Share Posted March 29, 2011 Simple: Disable the "Allow user to Close" setting in the VI settings dialog. More Involved: Add the VI->Panel Close? filter event to your event structure and pass TRUE to discard, but terminate your event handling loop anyhow to return to the caller. Thanks, It behaves as I expected. Hope It won't bring me unsought behaviour, which depends on how I program my needs. Thanks again. 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.