LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop ok button in dialog box

I am using Message dialog box to display message to the user. when I run software it will show Message box but after click on OK it should disappear but  it is still showing. How to close that message box after click on OK

0 Kudos
Message 1 of 13
(5,707 Views)

If you'd like some help, you should post some VI's.  We can't tell you how to fix something if you don't show us what is wrong.

0 Kudos
Message 2 of 13
(5,691 Views)

here is vi please find the attachment

 

0 Kudos
Message 3 of 13
(5,678 Views)

What about your other code that calls the Express VI?

I'm guessing you're either stuck in a loop or you're using the dreaded Run Continuously button.

0 Kudos
Message 4 of 13
(5,660 Views)

I can show this much only is there any way to close dialog after click on ok. by attcahing ok wire to stop or else?

0 Kudos
Message 5 of 13
(5,650 Views)

Hi kiwagh,

 

when you click OK the messagebox will be closed. You need to avoid calling the expressVI again and again in a loop!

 

When you don't show more you your code (or the whole VI) you need to debug on your own!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(5,642 Views)

Ok I got it. Then please tell me how to stop loop after click on OK?

0 Kudos
Message 7 of 13
(5,634 Views)

kiwagh105@gmail.com wrote:

I can show this much only is there any way to close dialog after click on ok. by attcahing ok wire to stop or else?


Yes. Without seeing it, I can't tell you much about how to do it. Wiring the ok wire to the stop terminal of your while loop will do it. It will probably also crash your program in ways you don't want it to.

 

The default behavior of your Express VI is to disappear when you click ok. If it is remaining, it is because you're launching it again.

 

EDIT: Gerd got in his reply while I was typing this one up.

0 Kudos
Message 8 of 13
(5,631 Views)

Hi kiwagh,

 

I guess the very basic LabVIEW examples for beginners also show how to stop a loop.

 

Did you take all those free courses?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13
(5,623 Views)

Sorry, here is whole data diagram

0 Kudos
Message 10 of 13
(5,618 Views)