Jump to content

Handle Exitted under VI properly


Recommended Posts

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.

Link to comment

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.

  • Like 1
Link to comment

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.