02-08-2012 07:51 AM
I'm working with someone else's code so this is not a discussion about whether it was designed properly. The code contains a bunch of VIs with the modal setting and if one of them is either unaccessable or if I accidentally have one of them open when I run the program, the entire labview locks up and does not even give me access to the block diagrams in the background. I then have to kill labview from the task manager. Is there a way to unlock labview instead of having to ctrl-alt-del if an inaccessable prompt is locking it up?
02-08-2012 07:56 AM
This is a question that comes up often. Do a search for "abort VI". See, e.g.,
02-08-2012 08:21 AM
We made this VI to keep this from happining. Add it to the main loop of your program.
02-08-2012 08:39 AM
Need the typedef for that VI.
That seems like an expensive VI to be using at the top-level. Have you benchmarked the operation of this VI?
02-08-2012 08:53 AM
Here is the type def.
You would only exicute this one time. When you start your porgram it looks to see if modal windows are open and tells you. Then you say continue or not and it is done. Not expensive at all.
02-08-2012 09:10 AM
Ah, that makes more sense. I thought that VI was meant to be running all the time in the main loop.
02-08-2012 09:13 AM
No it was just made to stop (warn you) LabVIEW if you have modal windows open.