LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dialog box blocks all activities

Hi,

 

I have an application with two monitors. The monitors are not side by side. My application use the function “dialog box” to wait for an input from the operator. Sometimes I have the problem the dialog box pop up on the second monitor. So the operator is confused that the buttons on monitor one are without function. For example on monitor one I have a RESET-STOP button without function.

Did someone have an idea how can I solve this problem.

 

Thanks in advance

 

Andreas

0 Kudos
Message 1 of 5
(3,134 Views)

Dialogs are Modal, they are susposed to block all activity in the current thread of execution.  If you want to avoide this use a non-modal floating window made to look like a dialog box or multithread your application.  Remember that the purpose of a dialog is to block execution intil an input is satisfied.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(3,129 Views)
Do not use the Dialog box function. Create your own VI which pops up with the same message and button texts, but do not make it modal.

Lynn
0 Kudos
Message 3 of 5
(3,127 Views)
Andreas,

As others have said, develop your own dialog box VI.  You can use VI properties to ensure it always shows up on the desired monitor.  Under the Window Run-Tiem Position select Centered for Position and then select the proper Monitor.  This is assuming you're using LV8.0 or later.

If you're using a previous version of LV, you can use the WinAPI MoveWindow or lvwutil's Move Window VI to move the window to the proper location on the screen.
0 Kudos
Message 4 of 5
(3,112 Views)

Hi,

 

thanks everybody for the helpful replies. I have observed that the “dialog box” pop up on that monitor on which the frontpanel is in front. In case the operator clicks by mistake on monitor two and in the next time the dialog box pop up than the error occurs that the “dialog box” will pop up on monitor two.

 

For the future I will set just before the “dialog box” will be launched the property of the frontpanel on monitor one as “in front”.

 

Best regards,

 

Andreas

0 Kudos
Message 5 of 5
(3,084 Views)