LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

popup sub VI closing before user input

Solved!
Go to solution

Hello people,

 

I am developing a VI where it generates popups (sub VIs) depending on control values, to alert users. Normally these popups should stay on screen until the user dismisses them (press a button on the popup); however some of these popups only stay on screen for a fracture of second, and disappear without the user pushing the button, making them useless. And this is happening in a somewhat random fashion, the first popup (which ever come first depending on the situation) will function normally, however causing the other popups to just flash for milliseconds.

 

I am starting to notice this on LV 2010 development suite.

 

Appreciate any help.

 

0 Kudos
Message 1 of 17
(3,197 Views)

Hi Moobe,

can you post one of your popups or a picture of it? Are your popups modal?

 

Mike

0 Kudos
Message 2 of 17
(3,190 Views)

Hi MikeS,

Here is one popup. Basically once you press 'Ok' it goes away. But the problem as I said before is that sometimes it doesn't let me press ok, and disappears in a matter of ms.

 

I am not sure what modal popup is.

 

Thanks

0 Kudos
Message 3 of 17
(3,177 Views)
Are all popups the same vi, and if so, is it set to reentrant?
0 Kudos
Message 4 of 17
(3,170 Views)

Hey altenbach,

 

They are all basically the same, and no they are not set to reentrant. Should they be set to reentrant?

 

What does this option do?

 

Thank you.

0 Kudos
Message 5 of 17
(3,165 Views)
Also show us the code of the popup vi. The design of the front panel is irrelevant to the problem.
Message 6 of 17
(3,164 Views)

Here is the block diagram of the popup, nothing much to it.

 

The VI (1) is just a subVI that outputs a Beep sound.

0 Kudos
Message 7 of 17
(3,162 Views)

And here is a snapshot of the windows appearance and the execution properties

0 Kudos
Message 8 of 17
(3,146 Views)

 


@Moobe wrote:

They are all basically the same, and no they are not set to reentrant. Should they be set to reentrant?


 

"Basically" does not count. Either they are the same VI or they aren't. 😉

 

If they are the same, just called with different parameters (e.g. the display text), it should be set to reentrant so each instance gets it's own copy. It it is not reentrant, only one can execute at any given time. If each popup is a different subVI, the reentrant setting is irrelevant.

 

Why can't you attach your code instead of numerous pictures? How are the dialogs called?

0 Kudos
Message 9 of 17
(3,134 Views)

they are different subVIs.

However the Beep subvi, is the same called from all the different popup subvis.

Should this one be reentrant?

0 Kudos
Message 10 of 17
(3,127 Views)