LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

active window selection while executing the labview test program using pause option?

Solved!
Go to solution

Hi,

 

I have a question about how to activate the window to first front window.

I am using LV8.6.

 

Question?

I made a labview program such that it will pause the program using "one button dialog" box

if it see the test failure and while this "one buttone box" is active, I need to switch back

to main window, but at the moment I can not switch back to main window unless I close

the "one button dialog" box.

How do I switch the window to active while I don't close the "one buttone diaglog" box?

 

Can someone answer my question?

 

Thank you in advance.

0 Kudos
Message 1 of 11
(4,400 Views)

The one button dialog is Modal.

 

"Modal—Keeps the front panel on top of all other LabVIEW windows until you close the window or open another modal window. You cannot interact with other windows while a modal window is open. Most dialog boxes in LabVIEW are modal windows..."

 

You have no choice :  you must close the one button dialog.

 

Jean-Marc

Message Edited by J-M on 10-20-2009 08:45 PM
0 Kudos
Message 2 of 11
(4,393 Views)

Hi, Thanks for the reply.

Do you know any alternative I can use instead of "one button dialogue" box?

 

 

0 Kudos
Message 3 of 11
(4,367 Views)
Solution
Accepted by horanyee

Create your own one button dialog (modify the template):

 

Create new dialog.jpg

 

 

 

Select Default instead of Modal.

 

Modal.jpg

 

 

Start your new "one button dialog":

 

http://forums.ni.com/ni/board/message?board.id=170&thread.id=436924

 

Jean-Marc

Message Edited by J-M on 10-21-2009 12:21 PM
Message 4 of 11
(4,364 Views)

Thank you very much for your detail informations!!!

I will try this.

0 Kudos
Message 5 of 11
(4,356 Views)

Hi, one more question regarding this.

I see this customized one button window works fine to bring back and forward

as an active window, however at the end it doesn't go away even if I press O.K. button.

What am I doing wrong? Do I need to set some option to do that?

 

Thank you.

0 Kudos
Message 6 of 11
(4,342 Views)
Oh, by the way I am using dialogue using event!!!
0 Kudos
Message 7 of 11
(4,339 Views)
0 Kudos
Message 8 of 11
(4,331 Views)

JM,

 

Thanks for reply.

I try your example it works, but if I put this into my program, it is not work.

So I have attached a VI whiich I simplied a lot.

Could you take a look at it?

Basically I want to pop the window and press O.K to close the window.

This way I can put this VI under my Case block to pause the test program if the condition is met.

 

Thanks,

 

DK

0 Kudos
Message 9 of 11
(4,323 Views)

I am not sure that I understand what you really want.  Could you post your main VI?

 

 

Jean-Marc

0 Kudos
Message 10 of 11
(4,299 Views)