Jump to content

How close Panel without "Save changes" dialog box?


Recommended Posts

I use VI template for reentrant execution. When a template VI is loaded, it creates a copy of itself in memory. When attempt I close loaded copy of vit file over clicking on right-top corner X appears Save changes dialog box. Is it possible to close running Vi without Save changes dialog box?

Thanks

Link to comment

I've done this by using an event structure to trigger on a "Panel Close?" (notice the "?") event and set the "Discard?" input to true. This allows you to stop the VI programmatically when the close button is clicked. I also use the attached piece of code to allow an instance of a template VI to close itself without the "Save Changes" dialog.

Hope this helps.

post-1591-1139500204.jpg?width=400

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
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.