03-29-2013 08:43 AM
I have a problem with a modal dialog when running in my developer environment. The problem occurs if the dialog front panel is already open (I'm editing the code) when I run my program. Clicking the button that opens my modal dialog, presents the dialog and allows me to enter my data. Clicking OK on the dialog does not close the dialog, nor does it return control to the window that called the modal dialog. User input to my application is now denied. I have a timer displayed on the main window, and it continues to count up. If I take care to close the modal dialog window before running my application, it works fine.
My window appearance properties are:
Show front panel when called
Close afterwards if originally closed
Do not allow user to close window
Do not show menu bar
Do not show toolbar when running
Do not show abort button
Show run button
Of course behavior is Modal
How do I fix this?
03-29-2013 08:51 AM
AFAIK this is the expected behaviour - something that every LV developer is going to hit sooner or later - and you can't help without aborting the execution of the program.
03-29-2013 08:55 AM - edited 03-29-2013 08:59 AM
did you connect the OK bool to a stop? if it is in a while loop
03-29-2013 09:40 AM
could also mean that you are not transitioning out of that dialog vi, once you have pressed "ok" from the main vi.