NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
Anthony_L

Need a Way to Exit LabVIEW Code if a MODAL Window is Accidentally Open(ed)

Status: New
by Member Anthony_L on ‎09-06-2010 07:05 PM

 

If code is running and one happens to leave a modal VI open, or opens a modal VI in the middle of a running piece of code, then the LabVIEW environment freezes-up and dis-allows any interaction with the code. It will be great to have a set of Key Strokes to re-set the code if this happens. The only way that I know of now is to hit [ALT + CTL + DEL] and killing the LabVIEW process. This ends up loosing unsaved work and requires a restart of LabVIEW.

 

Regards

 

Anthony L.

Comments
by Knight of NI on ‎09-06-2010 07:42 PM

This is directly related to this idea. See the discussion for a solution.

 

(I would file this idea as duplicate)

by Member Matthias_H on ‎09-09-2010 09:58 AM

If the window is an error dialog or something like that, you can try to press "Ctrl + . " (abort VI) and then press "return".

Maybe you have to repeat this.

 

In many cases the dialog will close and the Shortcut will then be sent to LabVIEW.

 

But this is only a workaround.

by Active Participant Broken_Arrow on ‎09-10-2010 07:55 AM

I don't think it's a duplicate. It may be a pared down, more specific version of that other idea.

by Member Anthony_L on ‎09-10-2010 09:50 AM

Hi:

 

I appreciate the comments and suggested work-arounds. Ideally I think the LabVIEW environment itself should provide developers with full control during design and development, or debug run-time, to recover from such a situation --whose cause is fully known. The frustration that this modal window issue causes is unecessary.

 

Anthony L.

 

 

by Member M_Peeker ‎09-16-2010 08:17 AM - edited ‎09-16-2010 08:20 AM

Darren posted a work-around once that is pretty neat.

http://forums.ni.com/t5/LabVIEW/Darren-s-Occasional-Nugget-08-11-2008/m-p/760429

 

The code is p/w-protected for some reason, maybe it has something to do with scripting or private properties that wasn't available to the public in 2008.

 

The problem with modal windows are that they are... modal. And should be, even in the development environment. Darrens solution is to open something "even more" modal that can stop the now slightly less modal window.

 

//Martin

 

Edit: Sorry Altenbach, realised that i duplicated your comment.

by Member inversion on ‎03-03-2011 05:27 AM

I feel for you all in this situation! Just happend to me again.

 

this post is also related:

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Abort-all-VIs-Button-in-Taskbar-Modal-Windows-Problem/...

Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
126
86
76
66
64
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page